// Contact Page Javascript
// Version 1.0
// Copyright WebFu! Web Design.

function element(id){
	if (document.getElementById != null){return document.getElementById(id);}
	if (document.all != null) {return document.all[id];}
	if (document.layers != null){return document.layers[id];}
	return null;
}
function bgfocus(elm){clearall();element(elm).style.backgroundColor = '#EEF5F8';}
function clearall(){
	document.mailform.name.style.backgroundColor = 'ffffff';
	document.mailform.email.style.backgroundColor = 'ffffff';
	document.mailform.subject.style.backgroundColor = 'ffffff';
	document.mailform.phone.style.backgroundColor = 'ffffff';
	document.mailform.message.style.backgroundColor = 'ffffff';
}
function formcheck(frm){
	if (frm.name.value == "")
		{alert("Please enter your name."); return false; frm.name.focus();}
	if ((frm.email.value.indexOf("@")== -1) && (frm.email.value.indexOf(".") == -1))
		{alert("Please enter your email address so we can reply!"); return false; frm.email.focus();}
}

function ScriptLink(Domain, User, Show){ if ((Show.length == 0) || (Show.indexOf('@')+1)) { document.write("<a href=" + "'mail" + "to:" + User + "@" + Domain + "'>" + User + "@" + Domain + "</a>"); }
else {document.write("<a href=" + "'mail" + "to:" + User + "@" + Domain + "'>" + Show + "</a>"); }} //-->
