function ValidationQuickForm() {

    var q_name = document.getElementById("q_name").value;
    var q_email = document.getElementById("q_email").value;
	var q_contact_no = document.getElementById("q_contact_no").value;
	var q_enquiry = document.getElementById("q_enquiry").value;

    var focus = "";
    var errormsg = "";
    if(q_name.length == 0){
        errormsg+='Please enter your Name!\n';
        if (focus=="") focus = "q_name";
        document.getElementById("q_name").style.backgroundColor = 'red';
    }
	if(q_name == '  your full name'){
        errormsg+='Please enter your Name!\n';
        if (focus=="") focus = "q_name";
        document.getElementById("q_name").style.backgroundColor = 'red';
    }
    if(q_email==''){
        errormsg+='Please enter your Email Address!\n';
        if (focus=="") focus = "q_email";
        document.getElementById("q_email").style.backgroundColor = 'red';
    }
    if(q_email != ''){
        if (q_email.indexOf('@')==-1||q_email.indexOf('.')==-1||q_email.indexOf('@.')!=-1){
            errormsg+="Please provide a valid Email Address!\n";
            if (focus=="") focus = "q_email";
            document.getElementById("q_email").style.backgroundColor = 'red';
        }
    }
	if(q_contact_no.length==0){
        errormsg+='Please enter your Contact Number!\n';
        if (focus=="") focus = "q_contact_no";
        document.getElementById("q_contact_no").style.backgroundColor = 'red';
    }
    else if(q_contact_no.length > 13){
        errormsg+='Please enter at least 13 numbers for your Contact Number!\n';
        if (focus=="") focus = "q_contact_no";
        document.getElementById("q_contact_no").style.backgroundColor = 'red';
    }
    if (!/^-?\d+$/.test(q_contact_no)){
        errormsg+='Please enter only numbers for your Contact Number!\n';
        if (focus=="") focus = "q_contact_no";
        document.getElementById("q_contact_no").style.backgroundColor = 'red';
    }	
	if(q_enquiry == 0 ){
        errormsg+='Please enter your enquiries!\n';
        if (focus=="") focus = "q_enquiry";
        document.getElementById("q_enquiry").style.backgroundColor = 'red';
    }
    if (errormsg!=""){
        document.getElementById(focus).focus();
        alert(errormsg);
        return false;

    }else{
        return true;
    }
}
