//popup windows

window.onload = setPopLink;

function setPopLink() {

var pLink = document.getElementById('popLink');
pLink.title += (pLink.title=='') ? '(Opens in new window)' : ' (Opens in new window)';
pLink.onclick = function() { goPop(this.href); return false; }

}

function goPop(url) {

var winW = 600;
var winH = 500;
var winX = (screen.availWidth - winW) / 2;
var winY = (screen.availHeight - winH) / 2;

var features = 'left='+winX+',top='+winY+',width='+winW+',height='+winH+',toolbar=1,location=0,status=0,scrollbars= 1,resizable=0';

var popWin = window.open(url,popWin,features);

if (popWin) {
popWin.focus();
} else {
window.location.href = url;
}

}

//collapsing text

function expand(thistag, tag) {
   styleObj=document.getElementById(thistag).style;
   if (styleObj.display=='none')
   {
   	styleObj.display='';
	tag.innerHTML = "[ - ]";
   }
   else {
   	styleObj.display='none';
    tag.innerHTML = " + ";
   }
}

//quick jump

function openURL()
{ 
// grab index number of the selected option
selInd = document.theForm.quickjump.selectedIndex; 

// get value of the selected option
goURL = document.theForm.quickjump.options[selInd].value;

// redirect browser to the grabbed value (hopefully a URL)
top.location.href = goURL; 
}

