function ValidateEmail(theinput) {
	s=theinput.value
	if(s.search)
	{
		return (s.search(new RegExp("^([a-z0-9_]|\-|\\.)+@(([a-z0-9_]|\-)+\\.)+[a-z]{2,4}$","gi"))>=0)
	}
	if(s.indexOf)
	{
		at_character=s.indexOf('@')
		if(at_character<=0 || at_character+4>s.length)
			return false
	}
	if(s.length<6)
		return false
	else
		return true
}
function ValidateForm(theform) {
	if( theform.name.value=='' || theform.name.value=='Your Name:' ) {
		alert('Please enter your name!');
		//document.theform.name.focus();
		return false;
	}
	if((ValidateEmail(theform.email)==false) || theform.email.value=='Your E-mail:' ) {
		alert('Please specify a valid e-mail address!');
		//document.theform.email.focus();
		return false;
	}
	return true;
}
