document.oncontextmenu=new Function("return false");

alert_msg = "Sorry, Downloading Not Avaliable.";
status="Welcome to P.S. Bliss Cards!";

bV  = parseInt(navigator.appVersion);
bNS = navigator.appName=="Netscape";
bIE = navigator.appName=="Microsoft Internet Explorer";

function noRightClick(e) {
   if (bNS && e.which > 1){
      alert(alert_msg);
      return false;
   } else if (bIE && (event.button >1)) {
     alert(alert_msg);
     return false;
   }
}

function clearthis() {
	document.forma.txtCartNum.value="";
}

function hide(object) {
  if (document.getElementById) {
    document.getElementById(object).style.visibility = 'hidden';
  }
  else if (document.layers && document.layers[object]) {
    document.layers[object].visibility = 'hidden';
  }
  else if (document.all) {
    document.all[object].style.visibility = 'hidden';
  }
}

function showtable(object,num) {
		hide ('table1');
		hide ('table2');
		hide ('table3');
  if (document.getElementById) {
    document.getElementById(object).style.visibility = 'visible';
    if (num != 1) {
	    document.getElementById(object).style.left = document.getElementById("top"+num).offsetLeft-40;
	}
  }
  else if (document.layers && document.layers[object]) {
    document.layers[object].visibility = 'visible';
  }
  else if (document.all) {
    document.all[object].style.visibility = 'visible';
  }
}
	
function viewcart() {
	top.window.location.href="cart.php";
}

function djump() {
	ref=document.forma.ddown.options[document.forma.ddown.selectedIndex].value;
	top.window.location.href="cards.php?cat=" + ref + "&pg=1&search=true";
}

document.onmousedown = noRightClick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = noRightClick;
