$(document).ready( function () { } ); var phpsessid = '25d0792c4da3db122fea9ed65a9ce2c3'; function serialize(ser) { serial = $.SortSerialize(ser); $.post('admin.pageOrder.php?PHPSESSID=' + phpsessid,serial.hash,function(s){alertStatus(s)}); }; function alertStatus(s) { document.getElementById('alertStatus').innerHTML = s; $('div#alertStatus').show('slow'); setTimeout('revertAlertStatus()',5000); } function revertAlertStatus() { $('div#alertStatus').hide('slow'); } function showLogin() { $('div#jsLogin').show('slow'); return false; } function jsLogin() { payload = 'username=' + document.getElementById('jsUsername').value; payload += '&password=' + document.getElementById('jsPassword').value; $('div#jsLogin').hide('slow'); $.post('https://xolara.localhost/ajax.login.php?PHPSESSID=' + phpsessid,payload,function(s){alertStatus(s)}); return false; } var divContainers = new Array(); function showDiv(divId) { parentContainer = $(divId).parent().attr('id'); splash = document.getElementById(parentContainer + 'Splash'); if (splash.style.display != 'none') { $(splash).hide('slow'); } if (divContainers[parentContainer]) { $(divContainers[parentContainer]).hide('fast'); } divContainers[parentContainer] = divId; $(divId).show('slow'); return false; }