function markdept()
	{
	}

function isEmail(string) {
  if (!string) return false;
   var iChars = "*|,\"<:>[]{}`\';()&$#%";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
	if (string.indexOf("@") != -1 )
		return true;
	else
		return false;
}

function emlValid(theForm)
{
  if (theForm.mailFromAddress.value == "")
  {
    alert("Please enter your e-mail address.");
    theForm.mailFromAddress.focus();
    return (false);
  }
  Validemail = isEmail(theForm.mailFromAddress.value)
  if (!Validemail)
  {
    alert("It appears that you have entered an invalid e-mail address.  Please check it.");
    theForm.mailFromAddress.focus();
    return (false);
  }
  return (true);
}

function clearemail() {
	if (document.eml1.mailFromAddress.value=="e-mail address?")
	{ document.eml1.mailFromAddress.value = "" }
	}


function checkdd()  
{
	if (document.catreq.addrCountry.value=="United States") {	togglestate("addrState","IaddrState"); }
	else  {	togglestate("IaddrState","addrState"); }
}

function togglestate(show,hide) 
{
	obj1 = document.getElementById(show);
	obj2 = document.getElementById(hide);
	obj1.style.display = "inline";
	obj2.style.display = "none";
}
