<!--

function checkString(uElement) {
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz -_'";
var checkStr = uElement.value;
var allValid = true;
var decPoints = 0;
var allNum = "";

   for (i=0;  i < checkStr.length;  i++) {
	ch = checkStr.charAt(i);
	for (j=0; j < checkOK.length; j++)
	  if (ch == checkOK.charAt(j))
		break;
	if (j==checkOK.length) {
	  allValid = false;
	  break;
	}
	allNum += ch;
   }
   if (!allValid) {
     return false;
   } else { 
      return true;
   }   
}
function checkNumeric(uElement) {
var checkOK = "1234567890 ";
var checkStr = uElement.value;
var allValid = true;
var decPoints = 0;
var allNum = "";

   for (i=0;  i < checkStr.length;  i++) {
	ch = checkStr.charAt(i);
	for (j=0; j < checkOK.length; j++)
	  if (ch == checkOK.charAt(j))
		break;
	if (j==checkOK.length) {
	  allValid = false;
	  break;
	}
	allNum += ch;
   }
   if (!allValid) {
     return false;
   } else { 
      return true;
   }   
}
function checkAlpaNum(uElement) {
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890 -_'";
var checkStr = uElement.value;
var allValid = true;
var decPoints = 0;
var allNum = "";

   for (i=0; i<checkStr.length; i++) {
	ch = checkStr.charAt(i);
	for (j=0; j < checkOK.length; j++)
	  if (ch == checkOK.charAt(j))
		break;
	if (j==checkOK.length) {
	  allValid = false;
	  break;
	}
	allNum += ch;
   }
   if (!allValid) {
     return false;
   } else { 
      return true;
   }   
}
function checkEMail(uElement) {
var atCount=0;					// initialize the variables and set their values
var perCount=0;					// to zero in case you use the function more than once
var isEMail=false;				// set the value of the function to false
var checkStr = uElement.value;
   
   for (i=0; i<checkStr.length; i++) {       
    temp=checkStr.substr(i, 1); 		// Get the current character
    if (temp=="@") {           			// check the character to see if it's an @
      atCount=atCount + 1;      		// if it is an @, add one to the value of atCount
    }
    if (temp==".") {	           		// check for a period
      perCount=perCount + 1;    		// add one to the value of perCount if it is
    }
   }                         			
   if ((atCount==1) && (perCount>0)) {     	// check for 1 @ and at least 1 period
    isEMail=true;
   }
   return isEMail;
}
function checkEMail1(uElement) {
var checkOK = "@.";
var checkStr = uElement.value;
var allValid = true;
var decPoints = 0;
var allNum = "";

   for (i=0; i<checkStr.length; i++) {
	ch = checkStr.charAt(i);
	for (j=0; j < checkOK.length; j++)
	  if (ch == checkOK.charAt(j))
		break;
	if (j==checkOK.length) {
	  allValid = false;
	  break;
	}
	allNum += ch;
   }
   if (!allValid) {
     return false;
   } else { 
      return true;
   }   
}

-->
