function DESemail(emailname,emailserver) {
	document.write("<a href='mailto:" + emailname + "@" + emailserver +"'>");
	document.write(emailname + "@" + emailserver); 
	document.write("</a>"); 
}

// Accessible Pop Ups
function DESopen(url,width,height,toolbar,scroll) {
	window.open(url, "", "scrollbars="+scroll+",toolbar="+toolbar+",height="+ height +",width="+width);
	return false;
}

function validaterequired() {
	// is the email address empty?
	if (document.survey.realemail.value.length == 0){
		alert("Please enter your email address");
		return false; // Don't submit form
	}
	// is the email address missing the obvious?
	if (document.survey.realemail.value.indexOf('@') == -1){
		alert("Please enter a valid email address");
		return false;
	}
	// is the name field empty?
	if (document.survey.realname.value.length == 0){
		alert("Please enter your name");
		return false; // Don't submit form
	}
	// if all is good, submit the form
	return true;
}

function DESphpnewads(zone) {
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.fomhost3.com/php-an/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:" + zone + "&amp;target=_blank&amp;blockcampaign=1");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
}

function togglediv(field)
{
if ( document.getElementById(field).style.display == 'none')
	{
	//change visibility to block, or 'visible'
	document.getElementById(field).style.display = 'block'; 
	}
	else
	{
	//change visibility 'invisible'
	document.getElementById(field).style.display = 'none'; 
	}
}

function showdiv(field)
{
	//change visibility to block, or 'visible'
	document.getElementById(field).style.display = 'block'; 
}

function hidediv(field)
{
	//change visibility to block, or 'visible'
	document.getElementById(field).style.display = 'none'; 
}