function checkForm( form, notfocus )
{
for( var i=0; i
0 && eobj[0].type == "radio" )
{
for( var tmpi=0; tmpi maxlength )
{
alert( errmsg );
if( !notfocus )
{
element.focus();
}
return false;
}
}
if( element.getAttribute( "dataType" ) == "email" )
{
if( !checkEmail( elementValue ) )
{
alert( errmsg );
if( !notfocus )
{
element.focus();
}
return false;
}
}
if( element.getAttribute( "dataType" ) == "emails" )
{
var emailArray = elementValue.split( "," );
for( var j=0; j endValue )
{
alert( errmsg );
if( !notfocus )
{
element.focus();
}
return false;
}
}
}
}
else if( element.type == "checkbox" || element.type == "radio" )
{
if( element.getAttribute( "nullable" ) == "false" )
{
var isChecked = false;
for( var j=0; j127) {
return false;
}
}
for (i=0; i127) {
return false;
}
}
if (user.match(userPat)==null) {
return false;
}
var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {
for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
return false;
}
}
return true;
}
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i