function CurrencyConvert(url)
{ 
	CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0=0,menubar=0,scrollbars=0,resizable=1,height=170,width=600');
	CurrencyWindow.focus();
	CurrencyWindow.location.href = url;
}

function formclassicPopupWindow(url, width, height)
{ 
	formclassicPopup = window.open ('', 'formclassicPopup', 'toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height);
	formclassicPopup.focus();
	formclassicPopup.location.href = url;
}
function formclassicSecurePopupWindow(url, width, height)
{ 
	formclassicPopup = window.open ('', 'formclassicPopup', 'toolbar=0,location=0,status=1,directories=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height);
	formclassicPopup.focus();
	formclassicPopup.location.href = url;
}

function formclassicSecurePopupWindow(url, width, height, scroll)
{ 
	formclassicPopup = window.open ('', 'formclassicPopup', 'toolbar=0,location=0,status=1,directories=0,menubar=0,scrollbars='+scroll+',resizable=1,width='+width+',height='+height);
	formclassicPopup.focus();
	formclassicPopup.location.href = url;
}

function formclassicPopupWindow(url, width, height, scroll)
{ 
	formclassicPopup = window.open ('', 'formclassicPopup', 'toolbar=0,location=0,directories=0,menubar=0,scrollbars='+scroll+',resizable=1,width='+width+',height='+height);
	formclassicPopup.focus();
	formclassicPopup.location.href = url;
}

function popupWindow(url)
{ 
	window.open(url, "newWindow");
}

function popupImage(imageSource,theOwner,windowwidth,windowheight)
{
	// figures out the width and height of the window
	if (!windowheight) windowheight = 500;
	if (!windowwidth)  windowwidth  = 500;

	var WindowAttributes = "scrollbars=yes,resizable=yes,width=";
	WindowAttributes += windowwidth.toString();
	WindowAttributes += ",height="
	WindowAttributes += windowheight.toString();
	WindowAttributes += ",left=10,top=10,screenX=10,screenY=10";

	// Open the window
	ResultsWindow = window.open("","ImageWindow",WindowAttributes);
                        
    // Output stuff to it
    ResultsWindow.document.open("text/html");
	ResultsWindow.document.writeln("<html>");
	ResultsWindow.document.writeln("<title>"+theOwner+"</title>");
	ResultsWindow.document.writeln("<head>");
	ResultsWindow.document.writeln("<style>");
	ResultsWindow.document.writeln("<!--");
	ResultsWindow.document.writeln("a		{text-decoration:none;color:#CC0033;}");
	ResultsWindow.document.writeln("a:hover	{text-decoration:underline;color:#CC0033;}");
	ResultsWindow.document.writeln("//--></style>");
	ResultsWindow.document.writeln("</head>");
	ResultsWindow.document.writeln("<BODY TEXT='#000000' BGCOLOR='#FFFFFF' onload='self.focus()'>");
	ResultsWindow.document.writeln("<center>")
	ResultsWindow.document.writeln("<table width=100% height=100% border=0 cellpadding=0 cellspacing=4><tr><td align='center' valign='middle'>");

	var TheImageLine = "<img src='" + imageSource +"' alt='(c) Copyright "+theOwner+"' border=0><br>";
	ResultsWindow.document.writeln(TheImageLine)

	ResultsWindow.document.writeln("<font face='verdana,arial,helvetica' size=1 color='#000000'><a href='javascript:self.close()'>Close Window</a></font>");
	ResultsWindow.document.writeln("</td></tr></table>");

	ResultsWindow.document.writeln("</body>");
	ResultsWindow.document.writeln("</html>");
	ResultsWindow.document.close();
}

	function formClassicLargeImageWindow(imageName,ownerName,prodName,imgWidth,imgHeight) {

		if (!imgWidth) imgWidth=450;
		if (!imgHeight) imgHeight=400;

		var	winWidth=(imgWidth-0)+40;
		if (winWidth>750) winWidth=750;	if (winWidth<150) winWidth=150;

		var	winHeight=(imgHeight-0)+80;
		if (winHeight>580) winHeight=580;	if (winHeight<200) winHeight=200;

		var params = "directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width="+winWidth+",height="+winHeight;
		var theContent = "";

		theContent+="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
		theContent+="<head>\n";
		theContent+="	<title>"+prodName+" - "+ownerName+"</title>\n";
		theContent+="	<meta http-equiv=\"Content-type\" content=\"text/html; charset=ISO-8859-1\">\n";
		theContent+="	<style type=\"text/css\">\n";
		theContent+="	<!--\n";
		theContent+="				body {\n";
		theContent+="					margin:1em;\n";
		theContent+="					font-family:\"trebuchet ms\",arial,helvetica,sans-serif;\n";
		theContent+="					font-size:11px;\n";
		theContent+="					color:#000;\n";
		theContent+="					background-color:#FFF;\n";
		theContent+="					text-align:center;\n";
		theContent+="				}\n";
		theContent+="				img {\n";
		theContent+="					border:0px solid #000;\n";
		theContent+="					margin:0 auto;\n";
		theContent+="				}\n";
		theContent+="				a {\n";
		theContent+="					display:block;\n";
		theContent+="					margin-top:1em;\n";
		theContent+="					text-decoration:none;\n";
		theContent+="					font-weight:bold;\n";
		theContent+="					color:#000;\n";
		theContent+="				}\n";
		theContent+="				a:hover {text-decoration:underline;}\n";
		theContent+="				//-->\n";
		theContent+="	</style>\n";
		theContent+="	<script type=\"text/javascript\">\n";
		theContent+="		<!--\n";
		theContent+="			function getSize() {\n";
		theContent+="				thisPic = document.getElementById(\"thePic\");\n";
		theContent+="				if (thisPic.width>0 && thisPic.height>0) {\n";
		theContent+="					var winWidth  = (thisPic.width)+60;\n";
		theContent+="					var winHeight =  (thisPic.height)+90;\n";
		theContent+="					if (winWidth>750) winWidth=750;	if (winWidth<150) winWidth=150;\n";
		theContent+="					if (winHeight>580) winHeight=580;	if (winHeight<150) winHeight=150;\n";
		theContent+="					self.resizeTo(winWidth,winHeight);\n";
		theContent+="				}\n";
		theContent+="			}\n";
		theContent+="		//-->\n";
		theContent+="	</script>\n";
		theContent+="</head>\n";
		theContent+="<body onload=\"getSize();\">\n";
		theContent+="<img src=\""+imageName+"\" alt=\""+prodName+"\" id=\"thePic\">\n";
		theContent+="<a href=\"#\" onclick=\"self.close();\">Close Window</a>\n";
		theContent+="</body>\n";
		theContent+="</html>";

		var largeWindow=window.open("","lWin",params);
		largeWindow.document.open();
		largeWindow.document.write(theContent);
		largeWindow.document.close();
		largeWindow.focus();
	}
