function submitFormRemoveQuotes()
{
if(!document.removeListForm.Borrowing_Capacity_Check.checked && !document.removeListForm.Home_Loan_Comparison.checked && !document.removeListForm.Conveyancing.checked && !document.removeListForm.Building_Pest_Inspections.checked && !document.removeListForm.Removalist_Quotes.checked  && !document.removeListForm.Goods_in_Transit_Insurance.checked  && !document.removeListForm.transport.checked  && !document.removeListForm.Storage.checked  && !document.removeListForm.Packing_Unpacking.checked  && !document.removeListForm.Furniture_Rental.checked  && !document.removeListForm.Telephone.checked  && !document.removeListForm.Internet.checked  && !document.removeListForm.Electricity.checked  && !document.removeListForm.Gas.checked  && !document.removeListForm.Pay_TV.checked  && !document.removeListForm.Mail_Redirection.checked  && !document.removeListForm.Home_Insurance.checked  && !document.removeListForm.Income_Protection_Life_Insurance.checked  && !document.removeListForm.House_Cleaning.checked  && !document.removeListForm.Carpet_Cleaning.checked  && !document.removeListForm.Rubbish_Removal.checked  && !document.removeListForm.Tax_Advice.checked)
{
alert("Please check at least one Service");
document.removeListForm.Borrowing_Capacity_Check.focus();
return false; 
}

	if ( ( document.removeListForm.Services[0].checked == false )
    && ( document.removeListForm.Services[1].checked == false )&& ( document.removeListForm.Services[2].checked == false ) )
    {
        alert ( "Please choose your Service Type" );
		document.removeListForm.Services[0].focus();
        return false;
    }
	document.removeListForm.submit();
}



function submitFormContactDetail()
{
var first_name=document.contactDetailForm.first_name.value;
first_name= first_name.replace(/\s+$/g,'');
if(first_name.length==0)
{
alert("Please enter your First Name. ")
document.contactDetailForm.first_name.focus();
document.contactDetailForm.first_name.value="";
return false;
}
var last_name=document.contactDetailForm.last_name.value;
last_name= last_name.replace(/\s+$/g,'');
if(last_name.length==0)
{
alert("Please enter your Last Name. ")
document.contactDetailForm.last_name.focus();
document.contactDetailForm.last_name.value="";
return false;
}
var phone_number=document.contactDetailForm.phone_number.value;
phone_number= phone_number.replace(/\s+$/g,'');
if(phone_number.length==0)
{
alert("Please enter your Phone number. ")
document.contactDetailForm.phone_number.focus();
document.contactDetailForm.phone_number.value="";
return false;
}

	var emailID=document.contactDetailForm.email;
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	
document.contactDetailForm.submit();
}
function echeck(str) {
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Please Enter valid Email Address")
		   return false
		}
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Please Enter valid Email Address")
		   return false
		}
		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Please Enter valid Email Address")
		    return false
		}
		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Please Enter valid Email Address")
		    return false
		 }
		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Please Enter valid Email Address")
		    return false
		 }
	 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Please Enter valid Email Address ")
		    return false
		 }
	 if (str.indexOf(" ")!=-1){
		    alert("Please Enter valid Email Address")
		    return false
		 }
		 return true					
	}

function submitConveyForm()
{
document.conveyancingForm.submit();
}
function submitTruckForm()
{
document.truckForm.submit();
}


function submitBecomeForm()
{
var Contact_Name=document.becomePartnerForm.Contact_Name.value;
var Contact_Name = Contact_Name.replace(/^\s+|\s+$/g, '');
if(Contact_Name.length==0)
{
alert("Please enter contact name.");
document.becomePartnerForm.Contact_Name.value="";
document.becomePartnerForm.Contact_Name.focus();
return false;
}
var Company_Business=document.becomePartnerForm.Company_Business.value;
var Company_Business = Company_Business.replace(/^\s+|\s+$/g, '');
if(Company_Business.length==0)
{
alert("Please enter company or business name.");
document.becomePartnerForm.Company_Business.value="";
document.becomePartnerForm.Company_Business.focus();
return false;
}
var ABN_ACN=document.becomePartnerForm.ABN_ACN.value;
var ABN_ACN = ABN_ACN.replace(/^\s+|\s+$/g, '');
if(ABN_ACN.length==0)
{
alert("Please enter ABN/ACN");
document.becomePartnerForm.ABN_ACN.value="";
document.becomePartnerForm.ABN_ACN.focus();
return false;
}
var Phone_Number=document.becomePartnerForm.Phone_Number.value;
var Phone_Number = Phone_Number.replace(/^\s+|\s+$/g, '');
if(Phone_Number.length==0)
{
alert("Please enter phone number.");
document.becomePartnerForm.Phone_Number.value="";
document.becomePartnerForm.Phone_Number.focus();
return false;
}
var emailID=document.becomePartnerForm.Contact_Email
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please enter E-Mail Address.")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	
var Suburb=document.becomePartnerForm.Suburb.value;
var Suburb = Suburb.replace(/^\s+|\s+$/g, '');
if(Suburb.length==0)
{
alert("Please enter Sub urban name.");
document.becomePartnerForm.Suburb.value="";
document.becomePartnerForm.Suburb.focus();
return false;
}

var Postcode=document.becomePartnerForm.Postcode.value;
Postcode= Postcode.replace(/\s+$/g,'');
if(Postcode.length==0)
{
   alert ( "Please enter your postal Code." );
		document.becomePartnerForm.Postcode.focus();
		document.becomePartnerForm.Postcode.value="";
        return false;
}
if (isNaN(document.becomePartnerForm.Postcode.value))
			{
	        alert("Enter your Postal Code in number format.");
			document.becomePartnerForm.Postcode.focus();
		document.becomePartnerForm.Postcode.value="";
        return false;
				}


var how_long_hav_established=document.becomePartnerForm.how_long_hav_established.value;
var how_long_hav_established = how_long_hav_established.replace(/^\s+|\s+$/g, '');
if(how_long_hav_established.length==0)
{
alert("Please enter how long have you established.");
document.becomePartnerForm.how_long_hav_established.value="";
document.becomePartnerForm.how_long_hav_established.focus();
return false;
}
document.becomePartnerForm.submit();
}

