
	function displayiconnewwindow(ImageName) {
	//opens image in a window fit for image size.
		WinTop = 100;
		WinLeft = 150;
		winFeatures = "toolbar=0,location=0,directories=0,status=0";
		winFeatures += ",menubar=0,scrollbars=0,resizable=yes";
		winFeatures += ",screenX="+WinLeft+",screenY="+WinTop;
		winFeatures += ",left="+WinLeft+",top="+WinTop;
		winFeatures += ",height=320,width=270";
		PopUpWindow=window.open("","PopUpWindow",winFeatures);
		PopUpWindow.document.writeln('<html>');
		PopUpWindow.document.writeln('<head>');
		PopUpWindow.document.writeln('<title>Your Bumpus Image</title>');
		PopUpWindow.document.writeln('</head>');
		if (navigator.appName == "Microsoft Internet Explorer")
		   PopUpWindow.document.writeln('<body bgcolor="A7C1D1" topmargin="10" leftmargin="0" marginwidth="0" marginheight="0" onLoad="window.resizeTo(document.images[0].width+20,document.images[0].height+100)">');
		else
		     PopUpWindow.document.writeln('<body topmargin="10" leftmargin="0" marginwidth="0" marginheight="10" onLoad="window.resizeTo(document.images[0].width+20,document.images[0].height+80)">');
		PopUpWindow.document.writeln('<center><img  src="'+ImageName+' " border="0" ></center>');
		PopUpWindow.document.writeln("<br><center><form id=form1 name=form1><input type=button onClick='self.close();' value='Close Window' id=button1 name=button1></form></center>");
		PopUpWindow.document.writeln('</body>');
		PopUpWindow.document.writeln('</html>');
		PopUpWindow.document.close();
		PopUpWindow.focus();
	}
	function displaySWF(ImageName) {
	//opens image in a window fit for image size.
		WinTop = 100;
		WinLeft = 150;
		winFeatures = "toolbar=0,location=0,directories=0,status=0";
		winFeatures += ",menubar=0,scrollbars=0,resizable=yes";
		winFeatures += ",screenX="+WinLeft+",screenY="+WinTop;
		winFeatures += ",left="+WinLeft+",top="+WinTop;
		winFeatures += ",height=450,width=300";
		PopUpWindow=window.open("","PopUpWindow",winFeatures);
		PopUpWindow.document.writeln('<html>');
		PopUpWindow.document.writeln('<head>');
		PopUpWindow.document.writeln('<title>Your Bumpus Image</title>');
		PopUpWindow.document.writeln('</head>');
		if (navigator.appName == "Microsoft Internet Explorer")
		   PopUpWindow.document.writeln('<body bgcolor="DCDCDC" topmargin="10" leftmargin="0" marginwidth="0" marginheight="0">');
		else
		     PopUpWindow.document.writeln('<body topmargin="10" leftmargin="0" marginwidth="0" marginheight="10">');
		PopUpWindow.document.writeln('<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="300" HEIGHT="450" id="bumpus" ALIGN=""><PARAM NAME=movie VALUE="'+ImageName+'"><PARAM NAME=loop VALUE=false><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=best><PARAM NAME=bgcolor VALUE=#DCDCDC><EMBED src="'+ImageFile+'" loop=false menu=false quality=best bgcolor=#DCDCDC  WIDTH="300" HEIGHT="450" NAME="bumpus" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></center>');
		PopUpWindow.document.writeln("<br><center><form id=form1 name=form1><input type=button onClick='self.close();' value='Close Window' id=button1 name=button1></form></center>");
		PopUpWindow.document.writeln('</body>');
		PopUpWindow.document.writeln('</html>');
		PopUpWindow.document.close();
		PopUpWindow.focus();
	}
function NewWindow(mypage, myname, w, h, scroll)
// open pop up window
{
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable = false'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4)
    {
        win.window.focus();
    }
}
function OpenWindow(page) {
OpenWin = this.open(page, "openWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
}

function refreshSelf(){
// refresh current page
document.location.href = location.href;
}
 function putFocus(formInst, elementInst) {
 //puts focus on form element  -- example: onLoad="putFocus(0,0);  puts focus on first form element
  if (document.forms.length > 0) {
   document.forms[formInst].elements[elementInst].focus();
  }
 }