function validateForm(){
	var Form = document.form;
    var errFlag = false;
    var temp;    
	var digits = "1234567890";
    var alp = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";  
    var Msg = "" ;

	// Validate Full Name
    if(Form.name.value==null || Form.name.value == ""){
    	errFlag = true;
        Form.name.select();
    	Msg += "Please fill in your Full Name. \n"
    } else {
		for (var i=0; i<Form.name.value.length; i++){	
                temp = Form.name.value.substring(i, i+1);
                    if (alp.indexOf(temp)==-1){ 
                        Msg = Msg + "Please fill in a valid Name. \n" ;
                        Form.name.select();
                        errFlag = true;
                        break;
                    }      
            }   
    }

	// Validate Email Address
	if(Form.email.value=="" || Form.email.value==null){
	 	errFlag = true;
        Form.email.select();
		Msg += "Please fill in your Email Address. \n"
	} else {
		if((Form.email.value.indexOf('@') == -1) || (Form.email.value.indexOf('.') == -1)){
			errFlag = true;
			Form.email.select();
			Msg += "Please fill in a valid Email Address. \n"
		}
	}

	// Validate Contact No. 
	if(Form.contact.value=="" || Form.contact.value==null){
		errFlag = true;
        Form.contact.select();
		Msg += "Please fill in your Contact No. \n"
	} else {      
		for(var i=0; i < Form.contact.value.length; i++)  {
			temp = Form.contact.value.substring(i, i+1);
			if(digits.indexOf(temp)==-1){
				errFlag = true;
				Form.contact.select();
				Msg += "Please fill in a valid Contact No. \n"  
				break;
			}
		}      		
	} 

	// Validate Address 
	if(Form.address.value=="" || Form.address.value==null){
		errFlag = true;
        Form.address.select();
		Msg += "Please fill in your Address. \n"
	}    

	// Validate Pin No. 
	if(Form.pin.value=="" || Form.pin.value==null){
		errFlag = true;
        Form.pin.select();
		Msg += "Please fill in the Pin No. \n"
	}     


	if (errFlag == true){
		alert(Msg);
		return false;
	}
}
