function verifysub(g)
{

	if(g.Email.value != "")
	{	
		var email1 = g.Email.value
		var goodEmail = g.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.tv)|(\.info)|(\.us)|(\..{2,2}))$)\b/gi);
		if (goodEmail)
		{
		}
		else
		{
			alert("Please Enter A Valid Email Address.")
			g.Email.focus()
			return false
		}
	} 

	// to check the Catalog Name not a white space
	if(isWhitespace(g.Email.value))
	{
		alert("E-Mail address cannot contain only spaces");
		g.Email.focus();
		return false;
	}


	if(g.name.value == "")
	{
		alert("Please Enter Your Name");
		g.name.focus();
		return false;
	}
	else
	{
		// to check the Catalog Name not a white space
		if(isWhitespace(g.name.value))
		{
			alert("Name cannot contain only spaces");
			g.name.focus();
			return false;
		}
	}

	if(g.comments.value == "")
	{
		alert("Please Enter Your Information");
		g.comments.focus();
		return false;
	}
	else
	{
		// to check the Catalog Name not a white space
		if(isWhitespace(g.comments.value))
		{
			alert("Your Information cannot contain only spaces");
			g.comments.focus();
			return false;
		}
	}

	if(g.security_code.value == "")
	{
		alert("Please Enter the Security Code");
		g.security_code.focus();
		return false;
	}
	else
	{
		// to check the Security Code is not a white space
		if(isWhitespace(g.security_code.value))
		{
			alert("Security Code cannot be spaces");
			g.security_code.focus();
			return false;
		}
	}

	return true
}