/* javscripts used on buildingdepartment.com */

      // this is a bit of a hack here
      // just list the form content divs here
      var forms = ["form1","form2","form3"];

      function showTab( form ){

        // first make sure all the forms are hidden
        for(i=0; i < forms.length; i++){
          var obj = document.getElementById(forms[i]);
          obj.style.display = "none";
        }
          
        // show the form we're interested in
        var obj = document.getElementById(form);
        obj.style.display = "block";

      
      }

function openPOP(url) {
        if (document.getElementById) {
                document.pop.popupvalue.value = url;
                msgwin=window.open("/newsite/hpopup.html","data","width=400,height=250,top=200,left=300");
                        if (msgwin.opener==null) msgwin.opener = self;
                msgwin.focus();
                        } else {
                alert('unsupported browser, please upgrade');
                }
        }


/* pop_tos()
 *   pops a browser window open displaying the terms of service.
 */
function pop_tos() {
        poptos=window.open('/terms.html','tos','width=530,height=400,location=1,toolbar=0,status=0,menubar=1,scrollbars=1,resizable=1');
}


function poplost() {
    var msgwin=window.open('/lostpw-service.html','lostpw','width=440,height=80');
    msgwin.focus();
}



function logincheck(theform) {
if (theform.u.value==''||theform.p.value=='') {
        alert("Please enter both a User ID and a Password.");
        return false;
        } else {
        return true;
        }
}




