<!--
function popTerms()
{
	window.open('popup/terms.htm',null,'top=10,left=10,width=300,height=300,scrollbars');
}
function popDelivery()
{
	window.open('popup/delivery.htm',null,'top=10,left=10,width=300,height=300,scrollbars');
}

// postcode popup finder functions.
// if these functions are changed then the admin functions will also have
// to be changed and the functions on the order 2 sites.

function addresswin(numberField,streetField,townField,countyField,pcField,countryField)
{
	var address = "Popup/AddressLookup.aspx?number="+numberField+"&street="+streetField+"&town="+townField+"&county="+countyField+"&postcode="+pcField+"&country="+countryField;
	window.open(address,"addresslookup","height=300,width=270,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes");
}
function billingwin(orderID)
{
	var address = "Popup/BillingAddress.aspx?orderID="+orderID;
	window.open(address,"BillingAddress","height=300,width=270,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes");
}
function putaddress(inputBox,boxValue)
{
	var textBox = window.opener.document.getElementById(inputBox);
	textBox.value = boxValue;
}
function doBookmark()
{
	document.write('<div style="text-align:center;margin-bottom:10px;padding-right: 0px;"><a href="javascript:CreateBookmarkLink();"><img src="Images/RightNav/button-addtofavorites.gif"></a></div>');
}
function CreateBookmarkLink() 
{
	var title = "Sinks & Taps"; 
	var url = "http://www.sinks-taps.com";

	if (window.sidebar) 
	{ // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) 
	{ // IE Favorite
			window.external.AddFavorite( url, title);
	}
	else if(window.opera && window.print) 
	{ // Opera Hotlist
			return true; 
	}
	
	Session("FavResponse")="PopupActivated";
	
}
function displayNone(div){
      document.getElementById(div).style.display = 'none';
}

function changeElements(block_id, action){

var block_div = 'block_'+block_id;
var row_div = 'row_'+block_id;

if(action == 'hide'){
      document.getElementById(block_div).style.display = 'none';
      document.getElementById(row_div).innerHTML = '<a style="text-decoration: none; cursor: pointer;" onclick="return changeElements('+block_id+',\'show\');"><span style="position: relative; top: -8px; padding-right: 10px;">Show</span><img src="images/show.gif" alt="" /></a>';
}

else{
      document.getElementById(block_div).style.display = 'block';
      document.getElementById(row_div).innerHTML = '<a style="text-decoration: none; cursor: pointer;" onclick="return changeElements('+block_id+',\'hide\');"><span style="position: relative; top: -8px; padding-right: 10px;">Hide</span><img src="images/hide.gif" alt="" /></a>';
}

}
//-->