//DHTML function to "toggle" a block element from visible to not
function toggle_visible(obj)
{
	if (document.getElementById(obj).style.display=="none")
	{
		document.getElementById(obj).style.display="";
	} else {
		document.getElementById(obj).style.display="none";
	}
}


// DHTML function to dynamically update content of an HTML element
function change_content(obj, content)
{
	document.getElementById(obj).innerHTML = content;
}

//http://www.regular-expressions.info/email.html
function validate_email(email)
{
	if (email.match(/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i))
	{
		alert("Email Address is Valid");
		return true;
	}
	else
	{
		alert(email + " is not a valid email address");
		return false;
	}
}

//document.body.onload=load();

function load()
{
	 //alert("yo");
	 //if (document.loginform) document.loginform.email.focus();
}
