var xmlHttp;function DoCmd(){xmlHttp=GetXmlHttpObject();if(xmlHttp==null){alert("Browser does not support HTTP Request");return}var d=document.getElementById("do_id").value;var c=document.getElementById("do_CrsID").value;var i=document.getElementById("do_LocID").value;var l=document.getElementById("do_SessionID").value;var k=document.getElementById("do_Start").value;var g=document.getElementById("do_End").value;var j=document.getElementById("do_CLStatus").value;var a=document.getElementById("do_CLPrivate").value;var f=document.getElementById("do_Excel").value;var h=document.getElementById("do_pg").value;var e=SelectWeekday();var b="search.php";b=b+"?id="+d;b=b+"&CrsID="+c;b=b+"&LocIDSelect="+i;b=b+"&SessionIDSelect="+l;b=b+"&Start="+k;b=b+"&End="+g;b=b+"&CLStatus="+j;b=b+"&CLPrivate="+a;b=b+"&Excel="+f;b=b+"&pg="+h;if(e!=""){b=b+e}b=b+"&sid="+Math.random();xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",b,true);xmlHttp.send(null)}function SelectWeekday(){var b="";var e="Weekday%5B%5D";var d=document.getElementById("do_Weekday").value;if(d!=""){var a=new Array();WeekdayArray=d.split(",");for(var c=0;c<WeekdayArray.length;c++){b=b+"&"+e+"="+WeekdayArray[c]}}return b}function GenerateExcel(a){document.getElementById("do_Excel").value=a;DoCmd()}function PageNo(c,a,b){document.getElementById("do_pg").value=document.getElementById(c).value;if(a=="y"){ScrollUp(b)}DoCmd("pg")}function PageNoNav(c,a,b){document.getElementById("do_pg").value=c;if(a=="y"){ScrollUp(b)}DoCmd("pg")}function ScrollUp(a){var b;if(navigator.userAgent.indexOf("MSIE")!=-1){b=500}else{if(navigator.userAgent.indexOf("Firefox")!=-1){b=470}else{if(navigator.userAgent.indexOf("Opera")!=-1){b=460}else{if(navigator.userAgent.indexOf("Chrome")!=-1){b=480}else{if(navigator.userAgent.indexOf("Safari")!=-1){b=480}else{b=460}}}}}if(a=="y"){b=b+110}scroll(0,b)}function stateChanged(){if(xmlHttp.readyState==3||xmlHttp.readyState=="loaded"){document.getElementById("Loading").style.display=""}if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("Display").innerHTML=xmlHttp.responseText}}function GetXmlHttpObject(){var a=null;try{a=new XMLHttpRequest()}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function GoToActivity(b){var a="cl.php";a=a+"?id="+b;window.location.href=a}function AdvancedOptions(a){if(document.getElementById(a).style.display=="block"){document.getElementById(a).style.display="none"}else{document.getElementById(a).style.display="block"}}function SelectRowOver(a){var a=document.getElementById(a);var c="#fff9bd";var b="rgb(255, 249, 189)";a.style.backgroundColor=c}function SelectRowOut(a,b){var a=document.getElementById(a);a.style.backgroundColor=b};
