// contains misc javascript functions

// launch a new window with specific attributes
function OpenNewWindow(strUrl) {
    window.open(strUrl, "NewWindow1", "width=675,height=370,screenX=50,screenY=100,top=50,left=100,toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,copyhistory=no,resizable=yes");
}

// go to new page based upon select list
function gotoNewUrl(objField)
{
    var strSelectedItem
    var strNewUrl
    strSelectedItem = objField.selectedIndex ;
    strNewUrl = objField.options[strSelectedItem].value ;
    if (strNewUrl.length != 0) {
      location.href = strNewUrl ;
    }
}

//function to hide and unhide a given item
function hideUnhide(strElement)
{
    var strCurDispState
    
    
    strCurDispState = window.document.getElementById(strElement).style.display;
    
    //alert(strCurDispState);
    
    if (strCurDispState == "none") {
        window.document.getElementById(strElement).style.display = "block"
    }
    else {
        window.document.getElementById(strElement).style.display = "none"
    }

}
/******************************
**                            **
**                            **
**                            **
**                            **
*******************************/

function gotourl(strUrl)
{
    window.location.href = strUrl;
}


/******************************
**                            **
**                            **
**                            **
**                            **
*******************************/

function goback(strUrl)
{
    window.history.back();
}

/******************************
**                            **
**                            **
**                            **
**                            **
*******************************/

function openUrlInOpenerWindow(strUrl)
{
    window.opener.location.href = strUrl;
    this.close();
}