// This Hide function helps prevent a form submission cancellation by hiding the form before it's submitted function Hide(ID){setTimeout("document.getElementById('"+ID+"').style.display='none'",200)} // This Show function makes idems visible after the hide function is done function Show(ID){setTimeout("document.getElementById('"+ID+"').style.display=''",300)} var req; function Load_XMLHttpRequest(url,load_div, Frame, Parent) { // Internet Explorer try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { req = null; } } // Mozailla/Safari if (!req && typeof XMLHttpRequest != "undefined") { req = new XMLHttpRequest(); } // Call the processChange() function when the page has loaded if (req != null) { // Load data into the requested div req.onreadystatechange = function processChange() { // The page has loaded and the HTTP status code is 200 OK if (req.readyState == 4 && req.status == 200) { // Write the contents of this URL to the frame/div if(Frame){ frames['Frame_'+load_div].document.getElementById('Div_'+load_div).innerHTML = req.responseText; } // Write the contents of this URL to the parent.frame/div else if(Parent){ parent.frames['Frame_'+load_div].document.getElementById('Div_'+load_div).innerHTML = req.responseText; } // Write the contents of this URL to the div else{ getObject(load_div).innerHTML = req.responseText; } document.body.style.cursor='default'; } } req.open("GET", url, true); req.send(null); } } // getElementById for IE function getObject(name) { var ns4 = (document.layers) ? true : false; var w3c = (document.getElementById) ? true : false; var ie4 = (document.all) ? true : false; if (ns4) return eval('document.' + name); if (w3c) return document.getElementById(name); if (ie4) return eval('document.all.' + name); return false; } function Show_Calendar(){ document.getElementById('Div_Background_Shade').style.display='block'; document.getElementById('Div_Calendar').style.display='block'; Load_XMLHttpRequest('/calendargirls/XML_Calendar.php?Date=2012_02', 'Div_Contents'); }