/*======================================================================
   doPopup()
   Description: 
		This function opens a new window in which to display information.
	Parameters:
		thiswidth - Width of window
		thisheight - Height of window
		thisdocument - Name of file to be displayed in new window.
======================================================================
*/
function doPopup(thiswidth,thisheight,thisdocument) {

	if(thisdocument.indexOf('printable') != -1){
		// User has clicked "Printable version" link at bottom of page.
		windowOptions ="toolbar=1,location=1,directories=1,status=1,scrollbars=yes,resizable=1,copyhistory=0,top=10,left=10,screeny=25,screenx=50";
	}else{
		// Develop a full path to the document to be displayed in the window.
		fullPath =
top.primary.section.content.subsection.subsectioncontent.location.href
		fullPath = fullPath.substring(0,fullPath.lastIndexOf("/") + 1)
		thisdocument = fullPath + thisdocument;
		windowOptions ="toolbar=0,location=0,directories=0,status=0,scrollbars=yes,resizable=0,copyhistory=0,width=" + thiswidth + ",height=" + thisheight + ",top=10,left=10,screeny=25,screenx=50";
	}
   if (navigator.userAgent.indexOf("Mac") >= 0) {
      eval ("POPUP= window.open(thisdocument,\"POPUP\",\"" +
windowOptions + "\")");
      eval ("POPUP= window.open(thisdocument,\"POPUP\",\"" +
windowOptions + "\")");
   }else{
      eval ("POPUP= window.open(thisdocument,\"POPUP\",\"" +
windowOptions + "\")");
   }

}

