$( function() {
$( “.datepicker” ).datepicker();
}
);
function validateForm()
{
var x=document.forms[“myForm”][“name”].value;
if (x==null || x==””)
{
alert(“Name must be filled out”);
return false;
}
var x=document.forms[“myForm”][“client_email”].value;
var atpos=x.indexOf(“@”);
var dotpos=x.lastIndexOf(“.”);
if (atpos<1 || dotpos=x.length)
{
alert(“Not a valid e-mail address”);
return false;
}
var x=document.forms[“myForm”][“Validate”].value;
if (x!=”snax”)
{
alert(“Please type the correct word”);
return false;
}
}