function ShowIPIX(windowtitle, ipixfile, defaultpicture, width, height){
	var x,y,tmp;
	x=Math.floor((screen.width - width)/2);
	y=Math.floor((screen.height - height)/2);
	var win=window.open("","IPIX",'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width='+width+',height='+height+',left='+x+', top='+y+',resizable=no');
	win.focus();
	win.document.write("<html><head><title>"+windowtitle+"</title></head><body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0>")
	if (navigator.javaEnabled()) {
		tmp = "<applet code='IpixViewer.class'" +
					"name='IpixViewer'" +
					"archive='/IpixViewer.jar'" +
					"alt='IPIX Java Viewer'" +
					"align='BASELINE'" +
					"height='"+height+"'" +
					"width='"+width+"'>" +
				    "<param name='Spin' value='off'>" +
	      			"<param name='URL' value='"+ipixfile+"'>" +
					"</applet>"
	}
	else{
		tmp= "<img width="+width+" height="+height+" src='"+defaultpicture+"' alt='' border=0>"
	}
	win.document.write(tmp)
	win.document.write("</body></html>")
}
