function namecheck(thisform){
with(thisform)
{
if(name.value==""){
alert("please enter name");
name.focus();
return false;
}
else 
return true;
}
}

function plotcheck(thisform){
with(thisform)
{
if(plot.value==""){
alert("please enter Plot No.");
plot.focus();
return false;
}
else 
return true;
}
}

function placecheck(thisform){
with(thisform)
{
if(place.value==""){
alert("please enter your place");
place.focus();
return false;
}
else 
return true;
}
}


function lanecheck(thisform){
with(thisform)
{
if(lane.value==""){
alert("please enter Lane");
lane.focus();
return false;
}
else 
return true;
}
}


function postcheck(thisform){
with(thisform)
{
if(post.value==""){
alert("please enter post");
post.focus();
return false;
}
else 
return true;
}
}

function pscheck(thisform){
with(thisform)
{
if(ps.value==""){
alert("please enter Police Station");
ps.focus();
return false;
}
else 
return true;
}
}

function viacheck(thisform){
with(thisform)
{
if(via.value==""){
alert("please enter Via");
via.focus();
return false;
}
else 
return true;
}
}
function distcheck(thisform){
with(thisform)
{
if(dist.value==""){
alert("please enter Dist");
dist.focus();
return false;
}
else 
return true;
}
}
function pincheck(thisform){
with(thisform)
{
if(pin.value=="" || isNaN(pin.value)){
alert("please enter Pin number ");
pin.focus();
return false;
}
else 
return true;
}
}

function phonecheck(thisform){
with(thisform)
{
if(phone.value=="" || isNaN(phone.value)){
alert("please enter phone number ");
phone.focus();
return false;
}
else 
return true;
}
}

function mobcheck(thisform){
with(thisform)
{
if(mob.value=="" || isNaN(mob.value)){
alert("please enter Mobile number ");
mob.focus();
return false;
}
else 
return true;
}
}


function emailcheck(thisform){
with(thisform){
var matches; 
if(matches = email.value.match(/(.+)@(.+)\.(.+)/))
{
return true;
}
else
{
alert("Please Enter your valid Email ID.");
email.focus();
return false;
}
}
}

function msgcheck(thisform){
with(thisform)
{
if(msg.value==""){
alert("please enter Your Message");
msg.focus();
return false;
}
else 
return true;
}
}

function val(thisform){
with(thisform)
{
if(namecheck(thisform) && plotcheck(thisform) && placecheck(thisform) && lanecheck(thisform) && postcheck(thisform) && pscheck(thisform) && viacheck(thisform) && distcheck(thisform) && pincheck(thisform) && phonecheck(thisform) && mobcheck(thisform) && emailcheck(thisform) && msgcheck(thisform) ){
return true;
}
else
return false;
}
}