// JavaScript Document
<!--
img1=new Image()
img1.src="images\\fold.gif"
img2=new Image()
img2.src="images\\open.gif"
ns6_index=0

function change(e){
	if(!document.all&&!document.getElementById)
	return
	
	if (!document.all&&document.getElementById)
	ns6_index=1
	
	var source=document.getElementById&&!document.all? e.target:event.srcElement
	if (source.className=="folding"){
		var source2=document.getElementById&&!document.all? source.parentNode.childNodes:source.parentElement.all
		if (source2[2+ns6_index].style.display=="none"){
			source2[0].src="images\\open.gif"
			source2[2+ns6_index].style.display=''
		} else {
			source2[0].src="images\\fold.gif"
			source2[2+ns6_index].style.display="none"
		}
	}
}

//Drag Scripts 

var ie=document.all
var ns6=document.getElementById&&!document.all

var dragapproved=false
var z,x,y

function move(e){
if (dragapproved){
z.style.left=ns6? temp1+e.clientX-x: temp1+event.clientX-x
z.style.top=ns6? temp2+e.clientY-y : temp2+event.clientY-y
return false
}
}

function drags(e){
if (!ie&&!ns6)
return
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "HTML" : "BODY"

while (firedobj.tagName!=topelement&&firedobj.className!="drag"){
	firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}

if (firedobj.className="drag"){
dragapproved=true
z=firedobj
temp1=parseInt(z.style.left+0)
temp2=parseInt(z.style.top+0)
x=ns6? e.clientX: event.clientX
y=ns6? e.clientY: event.clientY
//document.onmousemove=move
return false
}
}

function form2Query(formObj) {
        var     strQuery        =       '';

        for (var i = 0; i < formObj.length; i++) {
                if (formObj[i].type == "select-one") {
                        if (strQuery.length) {
                                strQuery        +=      '&';
                        }

                        strQuery        +=      formObj[i].name + '=' + formObj[i].options[formObj[i].selectedIndex].value;
                } else
                if (formObj[i].type == "checkbox") {
                        if (formObj[i].checked) {
                                if (strQuery.length) {
                                        strQuery        +=      '&';
                                }

                                strQuery        +=      formObj[i].name + '=' + formObj[i].value;
                        }
                } else
                if (formObj[i].type == "radio") {
                        if (formObj[i].checked) {
                                if (strQuery.length) {
                                        strQuery        +=      '&';
                                }

                                strQuery        +=      formObj[i].name + '=' + formObj[i].value;
                        }
                } else {
                        // trap for 'text', 'hidden', 'password', and 'submit' fields
                        //
                        if (strQuery.length) {
                                strQuery        +=      '&';
                        }

                        strQuery        +=      formObj[i].name + '=' + formObj[i].value;
                }
        }

        return strQuery;
}


function OpenPopup(formObj,pagename,width,height)
{	
	strQuery = form2Query(formObj);
		var myBrowser = navigator.appVersion;
	    if (myBrowser.indexOf("X11") == 5)
	    {
	        var remoteWin = window.open(pagename + '?' + strQuery,"ResultsWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
	    }
	    else
	    {
	  		if (myBrowser.indexOf("Mac") == 5)
	  		{
	    		var remoteWin = window.open(pagename + '?' + strQuery,"ResultsWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
	  		}
	  		else
	  		{
	    		var remoteWin = window.open(pagename + '?' + strQuery,"ResultsWindow",'toolbar=0,location=0,directories=0,scrollbars=0,status=0,menubar=0,resizable=0,width='+width+',height='+height);
	  		}
	    }
}

function OpenWindow(pagename,width,height)
{
    var myBrowser = navigator.appVersion;
    if (myBrowser.indexOf("X11") == 5)
    {
        var remoteWin = window.open(pagename,"ResultsWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
    }
    else
    {
  		if (myBrowser.indexOf("Mac") == 5)
  		{
    		var remoteWin = window.open(pagename,"ResultsWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
  		}
  		else
  		{
    		var remoteWin = window.open(pagename,"ResultsWindow",'toolbar=0,location=0,directories=0,scrollbars=0,status=0,menubar=0,resizable=0,width='+width+',height='+height);
  		}
    }
}

function OpenResizeableWindow(pagename,width,height)
{
    var myBrowser = navigator.appVersion;

    if (myBrowser.indexOf("X11") == 5)
    {
        var remoteWin = window.open(pagename,"ResultsWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height);
    }
    else
    {
  		if (myBrowser.indexOf("Mac") == 5)
  		{
    		var remoteWin = window.open(pagename,"ResultsWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height);
  		}
  		else
  		{
    		var remoteWin = window.open(pagename,"ResultsWindow",'toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=1,width='+width+',height='+height);
  		}
    }
}


function spawnWindow(URL) { 
    //window.open('/popupinvoker.cfm?objectid='+URL+'&amp;method=full',Name,features);
	 OpenResizeableWindow("/popupinvoker.cfm?objectid="+URL+"&method=full",700,600);
} 

function displayFull(txt){
	var url = txt;
	opener.window.document.location = url;
	window.close();
}

function doPassKeyword(txt){
	var sendText = txt;
	window.document.moreonthistopic.SetVariable("myKeyword", sendText);
}


function doPassAnchors(txt){
	var sendText = txt;
	window.document.Left_Nav_Centers.SetVariable("myAnchors", sendText);
}

function doPassPrimaryLocation(txt){
	var sendText = txt;
	window.document.Left_Nav_Centers.SetVariable("myPrimaryLocation", sendText);
}

function doPassObjectID(txt){
	var sendText = txt;
	window.document.Left_Nav_Centers.SetVariable("myObjectID", sendText);
}
/*
document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")
document.onclick=change
*/
//-->

