function hide_email(msg,who,domain,tld) {
    var string2 = "@";
    var string4 = who + string2 + domain + "." + tld;
    document.write("<a href=" + "mail" + "to:" + who +
      string2 + domain + "." + tld +">" + msg + " " + string4 + "</a>");
	}
	
function del_cart_confirm(cartid) {
  	var loc = "view_cart_delete.php?cartid=" + cartid;
//  	alert(loc);
	if (confirm('Are you sure? All items in the cart will be deleted and you will have to add them all over again, if you change your mind.')) {
		window.location=loc;
	 	}
	}

function add_cart_confirm() {
  	return confirm('Please check the proof on the screen carefully! We DO NOT re-typeset your order. Any mistakes on the proof are YOUR RESPONSBILITY!'); 
	}

function del_item_confirm(itemid) {
  	var loc = "view_cart_delete.php?itemid=" + itemid;
//  	alert(loc);
	if (confirm('Are you sure? You will have to add the item all over again, if you change your mind.')) {
		window.location=loc;
	 	}
	}
function imagepopup(imgurl,wid,ht) {
  	var features = 'width='+ wid + ', height=' + ht + ', scrollbars=yes';
  	var contents;
	contents = "<html><body>";
	contents += "<img src=\""+imgurl+"\" onclick=\"window.close();\" border=1 /><br>";
	contents += "<p align=center>Click image to close window.</p>";
	contents += "<center>&copy; copyright 2006, by" 
		+ " <a href=\"http://www.h4ventures.com\">H4 Ventures, LLC</a>"
		+ ", all rights reserved.</center>"
		+ "</body></html>";
  	X1 = window.open('','xx',features);
  	X1.document.writeln(contents);
}
function linkconfirm(loc) {
	if (confirm('Are you sure?')) {
		window.location=loc;
 	}
}
function logoutconfirm(loc) {
	if (confirm('Are you sure you want to logout?')) {
		window.location=loc;
 	}
}

var layerid;
function waitHideLayer(lid) {
  	layerid = lid;
	setTimeout('hideLayer()',2000);
}
function hideLayer() {
  	var lid = layerid;
  	if(document.getElementById)	  //gecko(NN6) + IE 5+
	    {
	    var obj = document.getElementById(lid);
	    obj.style.visibility = 'hidden';
	    }
}