<!--
/* ***************************************************
Contains User Interface behavior methods.  

NOTE: Reuse without permission is prohibited.
Copyright enLogica, Inc. 2002
neal.cabage@enlogica.com

01. goTo(sLocArg)
02. popUp(sLocArg,iHeight,iWidth, bScroll)
03. visibleLayer(layerName,TrueOrFalse)
04. statusMsg(myMsg)
05. comingSoon()
06. clearField(field)

**************************************************** */
	
function goTo(sLocArg){
//Redirects to a different location
    window.href.location=sLocArg;	
}	
	
function popUp(sLocArg,iHeight,iWidth,bScrolling,windowName) {
//Open a child window.
    if (iHeight==null) {iHeight=550}
    if (iWidth==null) {iWidth=550}	
    if (bScrolling=='false' || bScrolling==false) {sScroll="no"}	
    else{sScroll="yes"}
	if (windowName==null){windowName='me'}
    sProps = "height="+iHeight+",width="+iWidth+",scrollbars="+sScroll;
    window.open(sLocArg,windowName,sProps);
}

function visibleLayer(layerName,TrueOrFalse){
//Adjust layer visibility, provided layer name and boolean state.
	
    //Which state to show.		
    if (TrueOrFalse) {sVis = "visible"}
    else{sVis = "hidden"}

    //Set visibility of layer.
    if (getBrowser()=="Explorer") {
            eval("document.all." + layerName + ".style.visibility='" + sVis +"'");
    }else if (getBrowser()=="Netscape" && getBrowserVersion()<5) {
            eval("document." + layerName + ".visibility='" + sVis + "'");
    }else if (getBrowser()=="Netscape" && getBrowserVersion()>=5) {		
            document.getElementById(layerName).style.visibility=sVis;
    }
}

function statusMsg(myMsg) {
//Place message into status bar.
    window.status = myMsg;
    return(true);
}

function comingSoon() {
    alert("Not Yet Implemented");
}

function clearField(oField){
    oField.value="";
}

//-->		