function validateForm(whichbutton) {
	var btton = whichbutton;
	if(btton =="Register"){
		with (document.form1) {
			var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";

			if (name.value == "") alertMsg += "\n Name";
			if (username.value == "") alertMsg += "\n Username";
			if (password.value == "") alertMsg += "\n Password";			
			if (state.selectedIndex == 0) alertMsg += "\n State";
			if (media_type.selectedIndex == 0) alertMsg += "\n Media Type";
			if (type.selectedIndex == 0) alertMsg += "\n Freelance or Staff";
			if (email.value == "") alertMsg += "\n Email";
					
			if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
				alert(alertMsg);
				return false;
			} else {
				return true;
				//alert("test");
			}
		}
	}
}

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }


function confirmDel(delURL, ListName) {
  if (confirm("Are you sure you want to delete " + ListName)) {
    document.location = delURL;
  }
}


