function Validate()
{
	
	if(document.frmContacts.txtName.value == "Enter your name")
	{
		alert("Please enter your Name");
		return false;
	}	
	else if(document.frmContacts.txtEmail.value == "Enter your email")
	{
		alert("Please enter your Email Address");
		return false;
	}
	else if(validate_email(document.frmContacts.txtEmail.value)==false)
	{
		return false;
    }
    else if (document.frmContacts.txtMobile.value != "Enter your contact number" && validate_Mobile(document.frmContacts.txtMobile.value)==false) {
        //alert("Please enter your contact number");
        return false;
    }    
	//else if(validate_Mobile(document.frmContacts.txtMobile.value)==false)
	//{		
		//return false;
    //}
    //else if (document.frmContacts.txtMobile.value.length < 10 || document.frmContacts.txtMobile.value.length > 10) 
    //{
      //  alert("Please enter correct contact number");
        //return false;
    //}
    else if (document.frmContacts.txtCountry.value == "Enter your country") {
        alert("Please enter your country");
        return false;
    }          
    else if (document.frmContacts.txtComments.value == "Enter your comments") {
        alert("Please enter your Comments");
        return false;
    }		
	return true;
}
 
function validate_email(field)
{	
	if(field.search(/^\w+((-\w+)|(\.\w+))*\@[a-z A-Z 0-9]+((\.|-)[a-z A-Z 0-9]+)*\.[a-z A-Z 0-9]+$/)!=-1)
	{
		
		return true;
	}
	else
	{
		alert("Please enter correct e-mail address!");
		return false;
	}
}

function validate_Mobile(field) {
    if (parseInt(field))
        return true;
    else {
        alert("Please enter numeric contact number");
        return false;
    }
}
