 var  Javacount=0, JavaCheck=false;

function GoBack() {history.back();
       };

function BackHome(x) {
	if (x == null ) x=115;	//for backwards compatibility
//add the 1 bit for the BACK button; add the 2 bit for the HOME button, add the 4 bit for the UP button., add 8 bit for Review Order, add the 16 bit for Main Catalog, add 32 for PARTS & KITS catalog,add 64 for the Refurbished Catalog
	document.write('<HR SIZE="3"><CENTER>');
	if ((x&1)==1) 
		document.write(' <input type=image src="graphics/BackButn.jpg" name="GoBack" value="Go Back" alt="Go Back" ONCLICK="GoBack()">')
	if ((x&2)==2) 
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.htm"><IMG SRC="graphics/HomeButn.jpg" WIDTH="124" HEIGHT="47" BORDER="0" ALT="Home Page"></A>');
	if((x&4)==4) 
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#up"><IMG SRC="graphics/UpButn.jpg" WIDTH="124" HEIGHT="47" BORDER="0" ALT="Back to Top"></A>');
	if((x&8)==8)
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="ReviewOrder.htm" target="_self" ><IMG SRC="graphics/ReviewOrder.jpg" WIDTH="124" HEIGHT="47" BORDER="0" ALT="Review current order status."></A>');
	if((x&16)==16)
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="NewCatalog.htm" target="_self" ><IMG SRC="graphics/CatButn.jpg" WIDTH="124" HEIGHT="47" BORDER="0" ALT="Check out our catalog"></A>');
	if((x&32)==32)
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="SpareParts.htm" target="_self" ><IMG SRC="graphics/Parts&Kits.jpg" WIDTH="124" HEIGHT="47" BORDER="0" ALT="Parts Catalog."></A>');	
	if((x&64)==64)
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="Refurb.htm" target="_self" ><IMG SRC="graphics/RefurbBtun.jpg" WIDTH="124" HEIGHT="47" BORDER="0" ALT="Refurbished Closeout Catalog"></A>');	
	document.write('</CENTER><HR WIDTH="100%" SIZE="3">');
};
//Link to Close-up image pop-up if they click on thumbnail.
//	var w=null, x=null, y=null, z=null;  // first set:-  pict[#]="ArtName.jpg"; (a copy of CloseUp.htm must be in same directory)
	var pict = new Array();		//then:- onClick=closeup(#, width, height)
function closeup(x,y,z) {
	Popup = new Object();
	Popup.image=pict[x];
	Popup.wide=y;
	Popup.high=z;
	window.open('closeUp.htm','CloseUp',' menubar=no,width='+(y+25)+',height='+(z+25)); return true;
};

Javacount ++;
if(JavaCheck==true)alert("TwoButton add 1="+Javacount);