var tempX;var tempY;var gotfocus=0;function hand(){window.document.body.style.cursor="pointer";}
function handout(){window.document.body.style.cursor="auto";}
function focused(idf){gotfocus=gotfocus+1;if(gotfocus==2){gotfocus=0;}}
function getMouseXY(e){var IE=document.all?true:false;if(IE){tempX=event.clientX+document.body.scrollLeft;tempY=event.clientY+document.body.scrollTop;}else{tempX=e.pageX;tempY=e.pageY;}}
function overtable(){var IE=document.all?true:false;if(!IE)document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getMouseXY;}
function floatover(idd){window.document.body.style.cursor="pointer";if(gotfocus==0){var IE=document.all?true:false;if(!IE)document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getMouseXY;thediv=document.getElementById(idd).style;thediv.visibility="visible";thediv.left=tempX+2+"px";thediv.top=tempY+2+"px";thediv.height="auto";thediv.width="180px";}}
function floatout(ide){window.document.body.style.cursor="auto";if(gotfocus==0){thediv=document.getElementById(ide).style;thediv.visibility="hidden";thediv.height="0px";thediv.width="0px";}}
function ajaxFunction(whutDo){var doWhut=parseInt(whutDo);var xmlHttp;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){alert("Your browser does not support AJAX!");return false;}}}
xmlHttp.onreadystatechange=function(){if((xmlHttp.readyState==4)){document.getElementById("ajaxcalendar").innerHTML=xmlHttp.responseText;}else{document.getElementById("ajaxcalendar").innerHTML="<img src=\"f1.gif\" width=\"178\" height=\"165\" alt=\"Loading, Please Wait\" title=\"Please Wait\" border=\"0\" />\n";}}
params="month="+(document.forms['cal'].month.value)+"&year="+(document.forms['cal'].year.value)+"&dowhut="+doWhut;xmlHttp.open("GET","ajaxcalendar.php?"+params,true);xmlHttp.send(params);}