2,3})+$/.test(email)){ return true; } return false; }=09 function IsValidEmail(emails){ var index; index=3Demails.indexOf(","); if(index=3D=3D-1){ if(echeck(emails)=3D=3Dfalse){ return false; } else{ return true; } } else{ var str=3Demails.substring(0,index); while(index!=3D-1){ =09 str=3Demails.substring(t,index); if(echeck(str)=3D=3Dfalse){ //alert("Please enter valid email addresses."); //obj.focus(); return false; } else{ var t=3Dindex+1; =09 } =09 index_new=3Demails.indexOf(",",index+1); index=3Dindex_new; } //end of while=20 str=3Dobj.value.substring(t); if(echeck(str)=3D=3Dfalse){ //alert("Please enter valid email addresses."); //obj.focus(); return false; } } =09 } /** * script to validate phone number in international format */ function isInteger(s) { var i; for (i =3D 0; i < s.length; i++) { =20 // Check that current character is number. var c =3D s.charAt(i); if (((c < "0") || (c > "9"))) return false; } // All characters are numbers. return true; } function stripCharsInBag(s, bag) { =09 =09 var i; var returnString =3D ""; // Search through string's characters one by one. // If character is not in bag, append to returnString. for (i =3D 0; i < s.length; i++) { =20 // Check that current character isn't whitespace. var c =3D s.charAt(i); if (bag.indexOf(c) =3D=3D -1) returnString +=3D c; } return returnString; } function IsValidPhone(strPhone){ //var strPhone=3Dobj.value; //alert("hihihi"+strPhone); // Declaring required variables var digits =3D "0123456789"; // non-digit characters which are allowed in phone numbers var phoneNumberDelimiters =3D "()- "; // chara