function onLoad()
{
	setStatus();
}

function addFlash()
{
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="648" HEIGHT="150" id="myMovieName"><PARAM NAME=movie VALUE="slow.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#EFF4F9><PARAM NAME=wmode VALUE=transparent><EMBED src="slow.swf" quality=high bgcolor=#EFF4F9 WIDTH="650" HEIGHT="150" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}

function setStatus()
{
	var anchors = document.getElementsByTagName("a");
	for(var i = 0; i < anchors.length; i++)
	{
		anchors[i].onmouseover = function() { window.status = this.innerText; return true;};
		//anchors[i].onclick = function() { window.status = this.innerText; return true;};
		anchors[i].onmouseout = function() { window.status = '';};
	}

}


function sendMail()
{
	if (document.all['txtName'].value.length == 0)
	{
		alert('Please enter your name.')
	}
	else if (document.all['txtEmail'].value.length == 0)
	{
		alert('Please enter your email address.')
	}
	else if ( ! checkEmail(document.all['txtEmail'].value))
	{
		alert('Please enter a valid email address.')
	}
	else
	{
		frmMail.submit()
	}
}
function checkEmail(email) 
{
	atPos = email.indexOf("@")
	stopPos = email.lastIndexOf(".")

	if (atPos == -1 || stopPos == -1) 
	{
		return false;
	}
	return true;
}

