// Unerversal Check For GREI Club//
/*
*
*
*
*
*
*
*/
//////////////////////////////////////////

function CheckForm(obj)
{
	Telcheck = /^[\d-() ]*$/
	Mailcheck = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
	Numcheck = /^\d{1}$/
	if(obj.name.value == "")
	{
		alert("\Please Enter Your Name!\n"); 
		return false;
	}
	if(obj.tel.value == ""||!Telcheck.test(obj.tel.value))
	{
		alert("\Please Enter Valid Tel Number Using the format we give!\n");
		return false;
	}
	if(!Mailcheck.test(obj.email.value))
	{
		alert("\Please make sure you have the @ symbol in the e-mail address and e-mail address ends with .com or .net or other valid suffix!\n");
		return false;
	}
	if(!Numcheck.test(obj.num.value))
	{
		alert("\Invalid Number of People!\n");
		return false;
	}
}