﻿// Global JS (all javascript functions used)
// Created By Adam Duncan
// Date: 09/29/2008

//global variable
var maxCount = 0;

function sub_menu_dropdown(myIdName,hideTest){
    var myObj = document.getElementById(myIdName);
    var myObj2;
    
    //hide all test
    if(hideTest){
      for(myInt = 0;myInt < maxCount;myInt++){
        myObj2 = document.getElementById('temp_menu' + myInt);
        myObj2.style.display = "none"
      }
    }

    //test if no value
    if(myObj.style.display==""){myObj.style.display = "none";}
    
    //test what to do
    if(myObj.style.display=="none"){
      myObj.style.display = "block";
    }else{ //hide
      myObj.style.display = "none";
    }
}

function open_browser(myUrl){
    thewindow=window.open(myUrl ,"sei_popup","width=520,height=390,resizable=no,scrollbars=no,menubar=no,status=no,toolbar=no")
    thewindow.focus();

}