function toggleBox(szDivID) {
  if (document.layers) { // NN4+
    if (document.layers[szDivID].visibility == 'visible') {
      document.layers[szDivID].visibility = "hide";
      document.layers[szDivID].display = "none";
      document.layers[szDivID+"SD"].fontWeight = "normal";
    } else {
      document.layers[szDivID].visibility = "show";
      document.layers[szDivID].display = "inline";
      document.layers[szDivID+"SD"].fontWeight = "bold";
    }
  } else if (document.getElementById) { // gecko(NN6) + IE 5+
    var obj = document.getElementById(szDivID);
    var objSD = document.getElementById(szDivID+"SD");

    if (obj.style.visibility == 'visible') {
      obj.style.visibility = "hidden";
      obj.style.display = "none";
      objSD.style.fontWeight = "normal";
    } else {
      obj.style.visibility = "visible";
      obj.style.display = "inline";
      objSD.style.fontWeight = "bold";
    }
  } else if (document.all) { // IE 4
    if (document.all[szDivID].style.visibility == 'visible') {
      document.all[szDivID].style.visibility = "hidden";
      document.all[szDivID].style.display = "none";
      document.all[szDivID+"SD"].style.fontWeight = "normal";
    } else {
      document.all[szDivID].style.visibility = "visible";
      document.all[szDivID].style.display = "inline";
      document.all[szDivID+"SD"].style.fontWeight = "bold";
    }
  }
}

function changeStyle(what, how) {
  if (document.getElementById) {
    document.getElementById(what).style.fontWeight = how;
  } else if (document.all) {
    document.all[what].style.fontWeight = how;
  }
}

function changeText(where, what) {
  if (document.getElementById) {
    document.getElementById(where).innerHTML = what;
  } else if (document.all) {
    document.all[where].innerHTML = what;
  }
}

function switchDiv(strDivName,bolVisible){
  var   isNS4 = (document.layers) ? true : false;
  var   isIE4 = (document.all && !document.getElementById) ? true : false;
  var   isIE5 = (document.all && document.getElementById) ? true : false;
  var   isNS6 = (!document.all && document.getElementById) ? true : false;
 if (isNS4) {
   objElement = document.layers[strDivName];
 } else if (isIE4) {
   objElement = document.all[strDivName].style;
 } else if (isIE5 || isNS6) {
   objElement = document.getElementById(strDivName).style;
 }
 if(isNS4){
     if(!bolVisible) {
       document.layers[strDivName].visibility ="hidden"
     } else {
       document.layers[strDivName].visibility ="visible"
     }     
 }else if(isIE4){
     if(!bolVisible) {
       document.all[strDivName].style.visibility = "hidden";
     } else {
       document.all[strDivName].style.visibility = "visible";
     }
}
 else if (isIE5 || isNS6) {
      if(bolVisible){
         document.getElementById(strDivName).style.display= "";
      } else {
        document.getElementById(strDivName).style.display = "none";
        }
      }
}

function ViewDetail(selObj) {
   page=selObj.options[selObj.selectedIndex].value;
   self.location.href = page;
}

function change(html){
  DESCRIPTION2.innerHTML=html
}

function openpopupForgotPassword(){
var popurl="forgotPassword.php"
winpops=window.open(popurl,"","width=473,height=237,scrollbars=no,resizable=no,location=no,directories=no,status=no,toolbar=no")
}

function validateURL(link)
{
	window.open(link.value)
}
function openpopup(popurl){
var winpops=window.open(popurl,"","width=650,height=450,status")
}

function validar(form1) 
{
	if (form1.name.value.length < 2) 
	{
		alert('Your Name is a required field.  Please try again.');
		form1.name.focus();
		return (false);
	}
  
	var checkOK = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚ" + "abcdefghijklmnñopqrstuvwxyzáéíóú";
	var checkStr = form1.name.value;
	var allValid = true;

	var uword = hex_md5(document.getElementById('uword').value);

	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;
		}
	}
	if (!allValid) 
	{
		alert('Name is a required field.  Please try again.');
		form1.name.focus();
		return (false);
	}

	if (uword==cword[anum-1]) 
	{
		return true;
	}
	else 
	{
		alert('Spambot image codes is a required field.  Please try again.');
		document.getElementById('uword').focus();
		return false;
	}
	return (true);
}

<!--

function SD_openWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function writeEmailAsText()
{
<!--
// eMail Obfuscator Script 1.31 by Tim Williams - freeware
    {     document.write(String.fromCharCode(60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,105,110,102,111,64,97,110,100,101,114,115,111,110,97,114,101,97,99,104,97,109,98,101,114,46,111,114,103,34,62,105,110,102,111,64,97,110,100,101,114,115,111,110,97,114,101,97,99,104,97,109,98,101,114,46,111,114,103,60,47,97,62))
     }
//-->
}
//-->
