	var xmlhttp;
	var browserType;
	var bolEmailThisPageVisible;
	var bolTellanAdvisor;
	
	bolEmailThisPageVisible = false;
	bolTellanAdvisorVisible = false;
	
	if (document.layers) {browserType = "nn4"}
	if (document.all) {browserType = "ie"}
	if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"}

	function show(strDiv) {
	  if (browserType == "gecko" )
	     document.poppedLayer = eval('document.getElementById(\'' + strDiv + '\')');
	  else if (browserType == "ie")
	     document.poppedLayer = eval('document.all[\'' + strDiv + '\']');
	  else
	     document.poppedLayer = eval('document.layers[\'`' + strDiv + '\']');
	  document.poppedLayer.style.display = "block";
	}

	function hide(strDiv) {
	  if (browserType == "gecko" )
	     document.poppedLayer = eval('document.getElementById(\'' + strDiv + '\')');
	  else if (browserType == "ie")
	     document.poppedLayer = eval('document.all[\'' + strDiv + '\']');
	  else
	     document.poppedLayer = eval('document.layers[\'`' + strDiv + '\']');
	  document.poppedLayer.style.display = "none";
	}
	
	function EmailThisPage()
	{
		var URL;
		
		URL = '/emailpage/emailthispagecalc.asp?youremail=' + escape(document.aspnetForm.youremail.value) + '&yourfullname=' + escape(document.aspnetForm.yourfullname.value) +  '&rcptemail=' + escape(document.aspnetForm.rcptemail.value) + '&rcptfullname=' + escape(document.aspnetForm.rcptfullname.value) +  '&comments=' + escape(document.aspnetForm.comments.value) + '&page=' + escape(document.location.href);
	// alert(URL);
	alert
	// gecko version
	if (window.XMLHttpRequest)
	  {
	  xmlhttp=new XMLHttpRequest()
	  xmlhttp.onreadystatechange=EmailThisPage_state_Change
	  xmlhttp.open("GET",URL,true)
	  xmlhttp.send(null)
	  }
	// code for IE
	else if (window.ActiveXObject)
	  {
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	    if (xmlhttp)
	    {
	    xmlhttp.onreadystatechange=EmailThisPage_state_Change
	    xmlhttp.open("GET",URL,true)
	    xmlhttp.send()
	    }
	  }
	}
	
	function EmailThisPage_state_Change()
	{
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState==4)
	  {
	  // if "OK"
	  if (xmlhttp.status==200)
	  {
	  document.getElementById('EmailThisPage').innerHTML=xmlhttp.responseText
	  }
	  else
	  {
	  document.getElementById('EmailThisPage').innerHTML = "<h1>Problem retrieving data:</h1>" + xmlhttp.statusText + xmlhttp.responseText + "<BR><BR>" + document.getElementById('EmailThisPage').innerHTML;
	  }
	  }
	}
	
	function clkEmailThisPage()
		{
			if (bolEmailThisPageVisible == false){
				show('EmailThisPage');
				bolEmailThisPageVisible = true;
			}else{
				hide('EmailThisPage');
				bolEmailThisPageVisible = false;
			}
		}