// Image opener					  
function popImg(img, w, h, t) {

// Check for Mac
if (navigator.userAgent.indexOf("Mac") != -1){
// Reduce window measurements accordingly
    w = w-0
	h = h-0
	}
var s1 ="<html><head>"
var s2 ="<title>"+t+"</title>"
var s3 ="</head>"
var s4 ="<body topmargin=0 bgcolor=\"#ffffff\" leftmargin=0 marginheight=0 marginwidth=0><center><applet code=\"IpixViewer.class\" archive=\"IpixViewer.jar\" codebase=\"/java_plugin/files/\" align=\"baseline\" width=\"" + w +"\" height=\"" + h + "\" name=\"IpixViewer\"><param name=\"URL\" value=\"" + img + "\" /><param name=\"Warp\" value=\"1\" /><param name=\"Toolbar\" value=\"none\" /><param name=\"SpinSpeed\" value=\"0\" /><param name=\"SpinStyle\" value=\"flat\" /><param name=\"BackgroundColor\" value=\"#ffffff\" /><param name=\"HelpURL\" value=\"help/viewalways_java3_2/index.html\" /></applet>"

var s5 ="</center></body>"
var s6 ="</html>"

var windowprops = ",top=50, left=50,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" + ",width=" + w + ",height=" + h;

if (img!='')
{
	imgWin=window.open("","picWin",windowprops);
	imgWin.document.write(s1+s2+s3+s4+s5+s6)
	imgWin.document.close()
}
else
{
	alert("No image to view")
}

}

function subscribe_form()
{
	if (document.subscribe.user_name.value.length==0) 
	{
		alert("Please enter your name.");
		document.subscribe.user_name.focus();
		return false;
	}

	if (document.subscribe.user_email.value.length==0) 
	{
		alert("Please enter your email address.");
		document.subscribe.user_email.focus();
		return false;
	}
	
	if (document.subscribe.user_email.value != document.subscribe.confirm_email.value) 
	{
		alert("Please confirm your email address. The values entered do not match.");
		document.subscribe.user_email.focus();
		return false;
	}
}
