						var newwindow;
						
						function poptastic(url)
						{
							newwindow=window.open(url,'name','height=400,width=550');
							if (window.focus) {newwindow.focus()}
						}


  function submitPriceSearch(fProductID,fPostCode,fZoom){
    var frm = document.getElementById("frmPriceSearch");
    
    frm["ProductID"].value = fProductID;
    frm["postCode"].value = fPostCode;
    frm["zoom"].value = fZoom;

   
  }
  
	function jsLocation(vURL,vWhat,vVal){
		var vTmpURL = vURL + "&" + vWhat + "=" + vVal;
		top.location.href = vTmpURL;
	}
 
function showhide2(elmnt,elmnt2) {
	// designed to flip the visibility of two elements 
	var t = document.getElementById(elmnt);
	var u = document.getElementById(elmnt2);
	if (t.style.display == "" || t.style.display == "none") {
		t.style.display = "block";
		u.className = "open";
	} else {
		t.style.display = "none";
		u.className = "closed";
	}
}
function collapsy(elmnt, imgSrc) {
	// designed to flip the visibility of two elements 
	var t = document.getElementById(elmnt);
	var x = document.getElementById(imgSrc);

	ImgExpand = new Image();
	ImgExpand.src="/shhh/Layout/Images/collapsy_expand.gif";
	ImgHide = new Image();
	ImgHide.src="/shhh/Layout/Images/collapsy_hide.gif";
	
	if (t.style.display == "" || t.style.display == "none") {
		t.style.display = "block";
		x.src = ImgHide.src; 
	} else {
		t.style.display = "none";
		x.src = ImgExpand.src; 
	}
}

function showhiderow(elmnt, imgSrc) {
	// designed to flip the visibility of two elements 
	var t = document.getElementById(elmnt);
	var x = document.getElementById(imgSrc);

	ImgExpand = new Image();
	ImgExpand.src="/shhh/Layout/Images/collapsy_expand.gif";
	ImgHide = new Image();
	ImgHide.src="/shhh/Layout/Images/collapsy_hide.gif";
	
	if (t.style.display == "none") {
		t.style.display = "table-row-group";
		x.src = ImgHide.src; 
	} else {
		t.style.display = "none";
		x.src = ImgExpand.src; 
	}
}



function show(elmnt) {
	var t = document.getElementById(elmnt);
	
		t.style.display = "block";
}
function hide(elmnt) {
	var t = document.getElementById(elmnt);
	
		t.style.display = "none";
}
function replaceText(elmnt, newtext) {
	var t = document.getElementById(elmnt);
	
		t.innerHTML.value = newtext;
}
 
function checkAll(srcElmnt, elmnt, cntnr){
	var x = document.getElementsByName("ReLo_ID");
	for (var i=0;i < x.length;i++) {
		var e = x[i];
		if (e.id == elmnt)
			{
				e.checked = srcElmnt;
			}

	}
}


function changeClass(elmnt, cls) {
	var n=document.getElementById(elmnt);
	  
	  if(n)
	  {
	    n.className=cls;
	  }
}

function changeClassIfMissing(elmnt, cls) {
	var n=document.getElementById(elmnt);
	  
	  if(n)
	  {
	  	if(n.value == ""){
			n.className=cls;
		} else {
			n.className="";
		}
	  }
}