<!--
function isValidate(inputVal,colType,colLabel,required) {
var returnVal = true
inputStr = "" + inputVal
 if (required == "1") {
     if (inputStr == null || inputStr == " " || inputStr == "") {
         alert (colLabel + " is a required field.")
         return false       
     }
 }
if (colType == "varchar") {
   returnVal = true
 }
 else if (colType == "numeric") {
     for (var i = 0; i < inputStr.length; i++) {
       var oneChar = inputStr.charAt(i)
       if (oneChar < "0" || oneChar > "9") {
         returnVal = false
       }
     }
   }
 else if (colType == "date") {
var mm
var dd
var yy
var e
mm   = inputVal.substring(5,7)
dd   = inputVal.substring(8,10)
yy   = inputVal.substring(0,4)
e    = "ERROR." + colLabel + " must be of the form 'YYYY/MM/DD'.\n"
if      ((mm < "01") || (mm > "12")) {
        alert (colLabel  + "'MM' must be in the range of 01-12.")
        return false
        }
else if (((mm == "01") || (mm == "03") || (mm == "05") || (mm == "07") || (mm == "08") || 
         (mm == "10") || (mm == "12"))
        && ((dd < "01") || (dd > "31"))) {
        alert (colLabel + "For this month, 'DD' must be in the range of 01-31.")
        return false
        }
else if (((mm == "04") || (mm == "06") || (mm == "09") || (mm == "11"))
        && ((dd < "01") || (dd > "30"))) {
        alert (colLabel + "For this month, 'DD' must be in the range of 01-30.")
        return false
        }
else if (((mm == "02") && (yy % 4 == 0))
        && ((dd < 1) || (dd > 29))) {
        alert (colLabel + "For this year, 'DD' must be in the range of 01-29.")
        return false
        }
else if (((mm == "02") && (yy % 4 > 0))
        && ((dd < "01") || (dd > "28"))) {
        alert (colLabel + "For this year, 'DD' must be in the range of 01-28.")
        return false
        }
else {
        return true
     } 
return true
}
   if(returnVal == false) {
      alert (returnVal)
      alert (colLabel + " is incorrect " + " It should be " + colType)
   } 
   return returnVal
}
//-->

<!--
function checkData(theName, theValue, isNumeric, isMandatory, minLen, maxLen) 
{
  var theLenOfValue = theValue.length
  alert (theValue + "inside javascript code .")
}
function processAnchor()
{
  var user_id
  user_id = document.forms[0].userId.value
  location.href ="https://www.alumniconnections.com/olc/membersonly/UPN/old/old.cgi?FNC=toUpdatePersonal__Asearch_html___UPN___9000012___" + user_id
}
// -->

<!--
function validateAndSubmit(theform) { 
  if ( ( isValidate(theform.last.value,'varchar','Last Name',0) )  &&
( isValidate(theform.first.value,'varchar','First Name',0) )  
  ) 
  { 
     theform.submit()
  }
}
// -->