function tb_reinit(){$(document).ready(function(){tb_init('a.thickbox, area.thickbox, input.thickbox');imgLoader=new Image();imgLoader.src=tb_pathToImage;});}
function show_loader(){var obj=document.getElementById('ajax');obj.innerHTML="<img src=\"images/ajax-loader-grey.gif\">";document.body.style.cursor="wait";}
function lightbox_show(){document.getElementById('light').style.visibility='visible';document.getElementById('fade').style.visibility='visible';document.body.style.cursor="wait";}
function lightbox_hide(){document.getElementById('light').style.visibility='hidden';document.getElementById('fade').style.visibility='hidden';document.body.style.cursor="default";}
function counter(FormID,URL){var serverPage="ajax/formcounter.php";$.ajax({type:"POST",url:serverPage,data:"FormID="+FormID,success:function(html){window.location.href=URL;},error:function(textStatus){alert('There was a problem retrieving your form');}});return false;}
function showDeadline(CalID){var url="ajax/showdeadline.php?CalID="+CalID+"&height=500&width=500";tb_show('Funding Announcement',url,'thickbox');tb_reinit();}
function showNews(NewsID){var url="ajax/shownews.php?NewsID="+NewsID+"&height=500&width=500";tb_show('GCM News Item',url,'thickbox');tb_reinit();}
function userExists(userID){var theObject=document.getElementById("ajax");theObject.innerHTML="<img src=\"../images/icons/ajax-loader.gif\">";$.ajax({type:"POST",url:"../ajax/userexists.php",data:"userID="+userID,success:function(html){if(html=="true"){theObject.innerHTML='<img src="../images/icons/confirm.gif">';}else{theObject.innerHTML='<img src="../images/icons/error.gif">';}},error:function(textStatus){alert('Unable to communicate with the directory server!');}});}