you need Various Javascripts functions to validate each textboxes.
check following code.
//for Textbox1 - check for empty
function checkEmpty()
{
if (document.getElementById("Textbox1").value=="")
{
alert("Please enter value in textbox1");
document.getElementById("Textbox1").focus();
return false;
}
}
//for Textbox2 - EMail validation
function checkEmpty()
{
filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(document.getElementById("Textbox2").value))
alert ("valid")
else
alert ("Invalid")
}
//for Textbox3/5 - check for Numeric and alphanumeric
function checkInt()
{
if (isNAN(document.getElementById("Textbox3").value))
alert("Text is alpha numeric, Please enter only numbers");
}
//for textbox 4 - special char validation
function checkSpecialchar()
{
var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
for (var i = 0; i < document.getElementById("Textbox4").value.length; i++)
{
if (iChars.indexOf(document.getElementById("Textbox4").value.charAt(i)) != -1)
{
alert ("do not enter special char.");
return false;
}
}
}
//for textbox 6 - Date validation
function checkSpecialchar()
{
var date_chk = /(?:0[1-9]|[12][0-9]|3[01])\/(?:0[1-9]|1[0-2])\/(?:19|20\d{2})/;
if (! reDate.test(document.getElementById("Textbox6").value);)
{
alert ("Invalid date");
return false;
}
}
hope this helps.