var undefMatch;  // undefined holder

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, scroll)
{ 
	if (scroll==undefMatch) scroll="yes";
	formclassic2Popup = window.open ('', 'formclassicPopup2', 'toolbar=0,location=0,directories=0,menubar=0,scrollbars='+scroll+',resizable=1,width='+width+',height='+height);
	formclassic2Popup.focus();
	formclassic2Popup.location.href = url;
}
function formclassicSecurePopupWindow(url, width, height, scroll)
{ 
	if (scroll==undefMatch) scroll="yes";
	formclassic3Popup = window.open ('', 'formclassicPopup3', 'toolbar=0,location=0,status=1,directories=0,menubar=0,scrollbars='+scroll+',resizable=1,width='+width+',height='+height);
	formclassic3Popup.focus();
	formclassic3Popup.location.href = url;
}


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=1><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();
}
