function Enlarge_window(theURL,winName,width,height,features) {
	MyWindow=window.open(theURL,winName,'resizable=yes,width='+width+',height='+height+features);
	MyWindow.resizeTo(width,height);
	setTimeout('MyWindow.focus();',250);
}
function getView(id,action){
	var layerfield = document.getElementById(id);
	if (action == "hide"){
		layerfield.style.display = "none";
	} else {
		layerfield.style.display = "";
	}
	var status;
	if (layerfield.style.display == "none"){
		status = "invisible";
	} else {
		status = "visible";
	}
	//alert("You clicked "+action+"\nSo the layer is "+status);
}
function getHighlight(id,action){
	var layerfield = document.getElementById(id);
	if (action == "on"){
		layerfield.style.color = "#FFFF00";
	} else {
		layerfield.style.color = "#FFFFFF";
	}
}
function nospam_email(domain, name, display, variables){
	if (!display){
		display = name + '@' + domain;
		title = 'Email ' + display;
	} else {
		title = display;
	}
	document.write('<a href=\"mail'+'to:' + name + '@' + domain + variables + '\" title="' + title + '">');
	document.write(display + '</a>');
}
function final_checkout(){
	//clear cookie and checkout
	var remember = window.confirm("Do you want to remember this shopping cart?\nPressing either button will proceed with Google Checkout.");
	if (!remember) {
		expdate = new Date(); expdate.setDate(expdate.getDate() - 1);
		expdate.setHours(0); expdate.setMinutes(0); expdate.setSeconds(0);  
		document.cookie="cart=; expires=" + expdate.toGMTString();
	} 
	return;	
}
function updatepage(){
	document.page_form.submit();
	return false;
}
