function toAlpha(checkString) {
  newString = "";
  noString = "";
  count = 0;

  // loop through string character by character
  for (i = 0; i < checkString.length; i++) {
    ch = checkString.substring(i, i+1);

    // add character to new string if it is alpha
    if ((ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z" )) {
      newString += ch;
      } // if
    } // for

  if (checkString != newString) {
    document.form1.email.focus();
	checkString = "";  //reinitialize checkString
	if (alert("The value you have entered contains non-alpha characters,\nreplace with a valid ECU email address !!!")) {	  
	return noString;     
      } else {
      return noString;        
	  } // if
    } // if
  
  return checkString;
  } // toAlpha

function openWin() {
	if ( document.form1.workord.value == "") {
	aPopUp= window.open( 'http://wwwapps.ecu.edu/moveforms/moveorder.htm','Work_Order','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=400');	
	// document.form1.acct.value ="bite me !!!";
	return(false); 
	} else {
    return(true);        
	} // if
  	} // function
		
function testbox() {
    if (document.form1.workord.value == "" || document.form1.workord.value.indexOf ('@', 0) == -1) {
    return (false);
    } else
        return (true);
} 
	
	
	
	
