// JavaScript Document
function SubmitForm1()
{

	var mName = document.Form1.name.value;
	var mCompanyName = document.Form1.companyName.value;
	var mPhoneNumber=document.Form1.Phonenumber.value;
	var mEmail =document.Form1.email.value;
	var mAoi=document.Form1.aoi.value;
	var mMsg =document.Form1.msg.value;
	
	mName = trim(mName);
	mCompanyName = trim(mCompanyName );
	mPhoneNumber = trim(mPhoneNumber);
	mEmail=trim(mEmail);
	mAoi = trim(mAoi);
	 mMsg = trim( mMsg);

	if ( mName == "" )
	{
		alert ("Name can not be null");
		document.Form1.name.focus();
		return false;
	}
	
	if ( mCompanyName == "" )
	{
		alert ("Company Name  can not be null");
		document.Form1.title12.focus();
		return false;
	}
	if (mPhoneNumber  == "" )
	{
		alert ("Phone Number  can not be null");
		document.Form1.title12.focus();
		return false;
	}

	if ( mEmail == "" )
	{
		alert ("Email can not be null");
		document.Form1.email.focus();
		return false;
	}
	if ( mAoi == "" )
	{
		alert ("Area of Interest can not be null");
		document.Form1.os.focus();
		return false;
	}

	document.Form1.submit();
}
