/***************************************************************************
* Pop-up Handler
* Modeled on Ian Loyd's 'Perfect Pop-Up Handler'
* See details at:
* http://www.sitepoint.com/article/perfect-pop-up
*
*
* Here's an example call to this function:
*
* <a href="my-pop-up-window.htm" onclick="popUp(this.href,'console',400,200);return false;" target="_blank">This is my link</a>
*
***************************************************************************/

var newWin = null;
function popUp(strURL, winName, strType, strHeight, strWidth) {
 
 self.name = "main"; // names current window as "main"

 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console") {
   strOptions="resizable,height="+strHeight+",width="+strWidth;
 }
 if (strType=="fixed") {
   strOptions="status,height="+strHeight+",width="+strWidth;
 }
 if (strType=="elastic") {
   strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth;
 }
 if (strType=="bareelastic") {
   strOptions="scrollbars,resizable,"+"height="+strHeight+",width="+strWidth;
 }
 if (strType=="barebones") {
     strOptions="height="+strHeight+",width="+strWidth;
 }
 newWin = window.open(strURL, winName, strOptions);
 //newWin.focus();
}


/***************************************************************************
* Select "Jump" Lists
* See details at:
* http://www.bio.psu.edu/toolbox/toolbox/development_tool/jumplist/
***************************************************************************/
function jumpList(jump_form) {
var URL = document.jump_form.jump_select.options[document.jump_form.jump_select.selectedIndex].value;
window.location.href = URL;
}

