// MILONIC MENU STUFF
menunum=0;
menus=new Array();
_d=document;
function addmenu(){ menunum++; menus[menunum]=menu; }
function dumpmenus(){ mt="<script language=javascript>"; for(a=1;a<menus.length;a++){ mt+=" menu"+a+"=menus["+a+"];" } mt+="<\/script>";_d.write(mt);}
// END MILONIC MENU STUFF

var popupWin = null; var myWin = "popup";
function openWindow (myUrl){
	var myHeight="420"; var myWidth="520";
	if (openWindow.arguments.length == 3) {myHeight = openWindow.arguments[1]; myWidth = openWindow.arguments[2];}
	if (popupWin && popupWin.open && !popupWin.closed) {popupWin.close();}
	popupWin = window.open(myUrl, myWin, "width=" + myWidth + ",height=" + myHeight + ",scrollbars=yes,status=yes,top=80,left=300,resizable,menubar");
	return false;
}
function open_win(myUrl) {
    window.open(myUrl)
}
function product(CODE, element) {
	LISTAS = 1;
	if (arguments && arguments.length > 1) LISTAS = arguments[1];
	myURL = "/productwin/" + CODE + "/" + LISTAS;
	return openWindow(myURL, 500, 320);
}

function blockError(){
	return ON ? false : true;
}
window.onerror = blockError;

function antispam (email1) {
	if (confirm("Click Ok to send us email.\n\nPlease note: this is an anti-spam measure, designed to prevent automatic spam harvesters from collecting our email.")) { location = "mailto:"+email1+"@rhododendrons.com"; } 
	return false;
}		
	
 