// ITachieverz,


	function IsBlank(s){
		if(s.charAt(0)=="")
			return true;
		else
			return false;
	}
	function IsValid(){
		var str = document.quote.Email.value;
		len = str.length;
		for(i=1; i<len; i++){
			if(str.charAt(i)=="@"){
				return true;
			}
		}
		alert("You have entered invalid E-mail address")
		return false
	}
	function Validate_Name(){
		var str = document.quote.Name.value;
		if(IsBlank(str)){
			alert("Please Enter Your Name")
			return false;
		}
		return true;
	}
	function Validate_Phone(){
		var str = document.quote.Phone.value;
		if(IsBlank(str)){
			alert("Please Enter Your Phone No.")
			return false;
		}
		return true;
	}
	function Validate_Cname(){
		var str = document.quote.Cname.value;
		if(IsBlank(str)){
			alert("Please Enter Your Company Name")
			return false;
		}
		return true;
	}
	function Validate_Address(){
		var str = document.quote.Address.value;
		if(IsBlank(str)){
			alert("Please enter the Address");
			return false;
		}
		return true;
	}
	function Validate_Email(){
		var str = document.quote.Email.value;
		if(IsBlank(str)){
			alert("The email field cannot be empty or cannot have leading spaces");
			return false;
		}
		if(IsValid()){
			return true;
		}
		return false;
	}
	function Validate_Desc(){
		var str = document.quote.Descriptions.value;
		if(IsBlank(str)){
			alert("The Description Field is empty");
			return false;
		}
		return true;
	}
	function Validate_City(){
		var str = document.quote.City.value;
		if(IsBlank(str)){
			alert("Please entre your city Name");
			return false;
		}
		return true;
	}
	function Validate_Country(){
		var str = document.quote.Country.value;
		if(IsBlank(str)){
			alert("Please enter your country Name");
			return false;
		}
		return true;
	}
	function checkForm(){
		if(!Validate_Name(document.quote.Name.value))
			return false;
		if(!Validate_Cname(document.quote.Cname.value))
			return false;
		if(!Validate_Address(document.quote.Address.value))
			return false;
		if(!Validate_City(document.quote.City.value))
			return false;
		if(!Validate_Email(document.quote.Email.value))
			return false;
		if(!Validate_Phone(document.quote.Phone.value))
			return false;	
		if(!Validate_Country(document.quote.Country.value))
			return false;
		if(!IsValid())
			return false;
		if(!Validate_Desc(document.quote.Descriptions.value))
			return false;
		
		}

