var xmlhttp
function loadXMLDoc(url, writediv)

{
xmlhttp=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest()
  }
// code for IE
else if (window.ActiveXObject)
  {
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange= function() {
  	state_Change(writediv);
  }

  xmlhttp.open("GET",url,true)
  xmlhttp.send(null)
  }
else
  {
  alert("Your browser does not support XMLHTTP.")
  }
}

function state_Change(writediv)
{
	
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
  {
  // if "OK"
  if (xmlhttp.status==200)
  {
  document.getElementById(writediv).innerHTML=xmlhttp.responseText;
  }
  else
  {
  //alert("Problem retrieving data:" + xmlhttp.statusText);
  document.getElementById(writediv).innerHTML=xmlhttp.statusText;
  }
  }
}

function checkEmail(theform)
 {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theform.value)){
return (true)
}
alert("Invalid E-mail Address! Please re-enter.")
return (false)
}

function popup(url)
{
newwindow=window.open (url,
 "mywindow","status=1,width=400,height=300,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes");
    if (window.focus) {newwindow.focus()}
}

function popupAHS(url)
{
newwindow=window.open (url,
 "mywindow","status=1,width=300,height=450,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes");
    if (window.focus) {newwindow.focus()}
}
function popupAHSbig(url)
{
newwindow=window.open (url,
 "mywindow","status=1,width=550,height=450,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes");
    if (window.focus) {newwindow.focus()}
}