function Validatecontact(theForm)
{
var strFilter = /^[A-Za-z&#402;&#352;&#338;&#381;&#353;&#339;&#382;&#376;&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#216;&#217;&#218;&#219;&#220;&#221;&#222;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#240;&#241;&#242;&#243;&#244;&#245;&#246;&#248;&#249;&#250;&#251;&#252;&#253;&#254;&#255;0-9-!@#$%^&*()><,.?-_/\+]*$/;
var chkVal = theForm.Editbox2.value;
if (!strFilter.test(chkVal))
{
   alert("Please enter only letter, digit and \"!@#$%^&*()><,.?-_/\+\" characters in the \"userid\" field.");
   theForm.Editbox2.focus();
   return false;
}
if (theForm.Editbox2.value == "")
{
   alert("Please enter a value for the \"userid\" field.");
   theForm.Editbox2.focus();
   return false;
}
if (theForm.Editbox2.value.length < 5)
{
   alert("Please enter at least 5 characters in the \"userid\" field.");
   theForm.Editbox2.focus();
   return false;
}
if (theForm.Editbox2.value.length > 20)
{
   alert("Please enter at most 20 characters in the \"userid\" field.");
   theForm.Editbox2.focus();
   return false;
}
if (theForm.password2.value == "")
{
   alert("Please enter a value for the \"Password should be atleast 8 letters\" field.");
   theForm.password2.focus();
   return false;
}
if (theForm.password2.value.length < 8)
{
   alert("Please enter at least 8 characters in the \"Password should be atleast 8 letters\" field.");
   theForm.password2.focus();
   return false;
}
if (theForm.password2.value.length > 20)
{
   alert("Please enter at most 20 characters in the \"Password should be atleast 8 letters\" field.");
   theForm.password2.focus();
   return false;
}
var strValue = theForm.Editbox3.value;
var strFilter = /^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i;
if (!strFilter.test(strValue))
{
   alert("Please enter a valid email address.");
   return false;
}
if (theForm.Editbox3.value == "")
{
   alert("Please enter a value for the \"email\" field.");
   theForm.Editbox3.focus();
   return false;
}
if (theForm.Editbox3.value.length < 8)
{
   alert("Please enter at least 8 characters in the \"email\" field.");
   theForm.Editbox3.focus();
   return false;
}
var strFilter = /^[A-Za-z&#402;&#352;&#338;&#381;&#353;&#339;&#382;&#376;&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#216;&#217;&#218;&#219;&#220;&#221;&#222;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#240;&#241;&#242;&#243;&#244;&#245;&#246;&#248;&#249;&#250;&#251;&#252;&#253;&#254;&#255;0-9-]*$/;
var chkVal = theForm.Editbox5.value;
if (!strFilter.test(chkVal))
{
   alert("Secret Answer Should be atleast 5 characters long");
   theForm.Editbox5.focus();
   return false;
}
if (theForm.Editbox5.value == "")
{
   alert("Secret Answer Should be atleast 5 characters long");
   theForm.Editbox5.focus();
   return false;
}
if (theForm.Editbox5.value.length < 5)
{
   alert("Secret Answer Should be atleast 5 characters long");
   theForm.Editbox5.focus();
   return false;
}
if (theForm.Editbox5.value.length > 20)
{
   alert("Secret Answer Should be atleast 5 characters long");
   theForm.Editbox5.focus();
   return false;
}
if (theForm.Combobox2.selectedIndex < 0)
{
   alert("Please select one of the \"Combobox2\" options.");
   theForm.Combobox2.focus();
   return false;
}
if (theForm.password.value == "")
{
   alert("Should be atleast 8 letters.");
   theForm.password.focus();
   return false;
}
if (theForm.password.value.length < 8)
{
   alert("Should be atleast 8 letters.");
   theForm.password.focus();
   return false;
}
if (theForm.password.value.length > 20)
{
   alert("Should be atleast 8 letters.");
   theForm.password.focus();
   return false;
}
var strFilter = /^[A-Za-z&#402;&#352;&#338;&#381;&#353;&#339;&#382;&#376;&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#216;&#217;&#218;&#219;&#220;&#221;&#222;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#240;&#241;&#242;&#243;&#244;&#245;&#246;&#248;&#249;&#250;&#251;&#252;&#253;&#254;&#255; \t\r\n\f]*$/;
var chkVal = theForm.Editbox6.value;
if (!strFilter.test(chkVal))
{
   alert("Please enter your Name in Alphabets only.");
   theForm.Editbox6.focus();
   return false;
}
return true;
}
