function checkMail(mail) 
{
var check = /^[a-z][\w\-\.]*@[\w\-\.]+\.[a-z]{2,3}/i
if (check.test(mail)) 
{
return false;
}
else 
{
return true;
}
}

function check_form()
{

if (document.reg.name.value.length=="") 
{
alert("Please fill in  Name.\n");
return false;
};
if (document.reg.email.value.length=="") 
{
alert("Please fill in Email.\n");
return false;
};
if (checkMail(document.reg.email.value)) 
{
alert("The email address you provided is invalid! Please correct it. \n");
return false;
};
if (document.reg.telephone.value.length=="") 
{
alert("Please fill in  Telephone.\n");
return false;
};

if (document.getElementById('Message').value.length=="") 
{
alert("Please enter message in How can we help you?.\n");
return false;
};


return true;
}

function check_specials()
{


var name = document.getElementById('name');
var email = document.getElementById('jujrdy-jujrdy');


if (name.value.length=="") 
{
alert("Please fill in  Name.\n");
return false;
};

if (email.value.length=="") 
{
alert("Please fill in Email.\n");
return false;
};

if (checkMail(email.value)) 
{
alert("The email address you provided is invalid! Please correct it. \n");
return false;
};

return true;
}


