function openWindow( pageToLoad, winName, width, height, center) {                          
	    xposition=0; yposition=0;
	    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
	        xposition = (screen.width - width) / 2;
	        yposition = (screen.height - height) / 2;
	    }
	    args = "width=" + width + "," 
	    + "height=" + height + "," 
	    + "location=0," 
	    + "menubar=0,"
	    + "resizable=1,"
	    + "scrollbars=1,"
	    + "status=0," 
	    + "titlebar=0,"
	    + "toolbar=1,"
	    + "hotkeys=1,"
	    + "screenx=" + xposition + ","  //NN Only
	    + "screeny=" + yposition + ","  //NN Only
	    + "left=" + xposition + ","     //IE Only
	    + "top=" + yposition;           //IE Only
	
	    window.open( pageToLoad,winName,args );
	}
	
// for RefWorks database instructions page 
function jump(mySelect)  {
PageIndex2=mySelect.selectedIndex;
  {
  if (mySelect.options[PageIndex2].value != "none")
    {
//this is the key code in the JavaScript to open the new page in
//the iframe:-
frames['instructions'].location.href = mySelect.options[PageIndex2].value;
   }

  }

}	
	
	
function openPopup( pageToLoad, winName, width, height, center) {                           
	    xposition=0; yposition=0;
	    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
	        xposition = (screen.width - width) / 2;
	        yposition = (screen.height - height) / 2;
	    }
	    args = "width=" + width + "," 
	    + "height=" + height + "," 
	    + "location=0," 
	    + "menubar=0,"
	    + "resizable=1,"
	    + "scrollbars=1,"
	    + "status=0," 
	    + "titlebar=0,"
	    + "toolbar=0,"
	    + "hotkeys=0,"
	    + "screenx=" + xposition + ","  //NN Only
	    + "screeny=" + yposition + ","  //NN Only
	    + "left=" + xposition + ","     //IE Only
	    + "top=" + yposition;           //IE Only
	
	    window.open( pageToLoad,winName,args );
	}


function reportWindow( pageToLoad, winName, width, height, center) {          
	    xposition=0; yposition=0;
	    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
	        xposition = (screen.width - width) / 2;
	        yposition = (screen.height - height) / 2;
	    }
	    args = "width=" + width + "," 
	    + "height=" + height + "," 
	    + "location=0," 
	    + "menubar=0,"
	    + "resizable=0,"
	    + "scrollbars=1,"
	    + "status=0," 
	    + "titlebar=0,"
	    + "toolbar=0,"
	    + "hotkeys=0,"
	    + "screenx=" + xposition + ","  //NN Only
	    + "screeny=" + yposition + ","  //NN Only
	    + "left=" + xposition + ","     //IE Only
	    + "top=" + yposition;           //IE Only
	
	    window.open( pageToLoad,winName,args );
	}

function PopUpLink(path) {
	linkWin = window.open(path, "","resizable=yes,scrollbars=yes,status=yes,width=350,height=600,left=10,top=25");
	linkWin.focus();
}

function explainwin(explainname)  {
	var explainwin = window.open("/explain.cfm?explainname=" + explainname, "explainWindow", "status=no,height=400,width=350,left=150,top=200,scrollbars=yes");
	return;
}

function alertwin()  {
	var explainwin = window.open("/alert.cfm", "alertWindow", "status=no,height=200,width=350,left=150,top=200,scrollbars=yes");
	return;
}

function launch(w) {
	newWin = window.open(w, "","resizable=yes,scrollbars=yes,status=yes,width=800,height=500,left=10,top=25");
	newWin.focus();
}

