//Contact Us form validation
function contactform_onsubmit()
{
	var returnValue = false;

if (document.contactform.name.value == "")
{
	alert("Please enter your name");
	document.contactform.name.focus();
}	

else if (document.contactform.phone.value == "")
{
	alert("Please enter your phone number");
	document.contactform.phone.focus();
}	

else if (document.contactform.question.value == "")
{
	alert("Please enter your question/comment");
	document.contactform.question.focus();
}	

else
{
	returnValue = true;
}
	return returnValue;
}


//varify user Profile info
function myinfo_onsubmit()
{
	var returnValue = false;

if (document.myinfo.fname.value == "")
{
	alert("Please enter your first name");
	document.myinfo.fname.focus();
}	

else if (document.myinfo.lname.value == "")
{
	alert("Please enter your last name");
	document.myinfo.lname.focus();
}

else if (document.myinfo.user_id.value == "")
{
	alert("Please enter your email address");
	document.myinfo.user_id.focus();
}

else if (document.myinfo.password.value == "")
{
	alert("Please enter a password");
	document.myinfo.password.focus();
}	

else if (document.myinfo.password2.value != document.myinfo.password.value)
{
	alert("Password entries do not match")
}

else
{
	returnValue = true;
}
	return returnValue;
}

function NewsWin(page) {
        win=window.open(page, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=460,height=400");
}