<!--
var SecWin;
var winFeatures="";

function launchPopup(targetDoc) {
	var width = 350;
	var height = 580;
//	height+=20;
	var htmlFile = (targetDoc.indexOf(".html")>=0) ? true : false;
	winfeatures="width="+width+",height="+height+",toolbar=no,menubar=no,location=no,status=no,resizable=yes,scrollbars=no";
	if(!SecWin||SecWin.closed){ //Check for the existence of the secondary window.
		if(htmlFile){ //Load an HTML page
	    SecWin=window.open(targetDoc,"SecWin",winfeatures);
		}else{ //Load other file formats
	    SecWin=window.open("","SecWin",winfeatures);
			writePopup(targetDoc,width,height);
		}
    if (HM_IE) { //Ensure that the window resizes correctly.
     SecWin.resizeTo(width+12,height+36); //MSIE and other browsers
 	  }
  }else{
    if (HM_IE) { //Ensure that the window resizes correctly.
     SecWin.resizeTo(width+12,height+36); //MSIE and other browsers
		}else{
     SecWin.innerHeight=height; //Netscape
     SecWin.innerWidth=width;
		}
	  if(htmlFile){ //Load an HTML page
	  	SecWin.location=targetDoc;
		}else{ //Load other file formats
			writePopup(targetDoc,width,height);
		}
  }
 setTimeout("SecWin.focus()",100); //The timeout is necessary for Internet Explorer.
}

function writePopup(targetDoc,w,h){
 var DocString="";
 h-=30;
DocString+="<!doctype html public '-//w3c//dtd html 4.01 transitional//en'>" + "\n";
DocString+="<html>" + "\n" + "<head>" + "\n";
DocString+="<title>Full Size Image</title>" + "\n";
//resolve the title as the string up to the period in the image filename.
DocString+="<link href='./support/styles.css' rel='stylesheet' type='text/css'>" + "\n";
DocString+="</head>" + "\n";
DocString+="<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#FBFFD2'>" + "\n";
DocString+="<table cellspacing='0' cellpadding='0' border='0'><tr><td>" + "\n";
DocString+="<img src='" + targetDoc + "' width='" + w + "' height='" + h + "'>" + "\n";
DocString+="</td></tr></table>" + "\n";
DocString+="</body>" + "\n" + "</html>";
SecWin.document.open("text/html");
SecWin.document.write(DocString);
SecWin.document.close();
}

/* Function for creating secondary windows to display external documents */
/* Created 10 Jan 2001 */

function launchImg(targetDoc,width,height) {
	var winfeatures="width="+width+",height="+(height-30)+",toolbar=no,menubar=no,statusbar=no,locationbar=no,resizable=yes";
  if (!SecWin||SecWin.closed){ //Check for the existence of the secondary window.
    SecWin=window.open("","SecWin",winfeatures);
		writePopup(targetDoc,width,height);
  } else {
    if (HM_IE) { //Ensure that the window resizes correctly.
     SecWin.resizeTo(width,height); //Netscape
	  } else {
    	SecWin.innerHeight=height-30; //MSIE and other browsers
	    SecWin.innerWidth=width;
    }
   writePopup(targetDoc,width,height);
  }
	setTimeout("SecWin.focus()",100); //The timeout is necessary for Internet Explorer.
}


-->