function MM_reloadPage(init) 

{

if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);
var mymessage = "Function Disabled.";

function rtclickcheck(keyp){
  if (navigator.appName == "Netscape" && keyp.which == 3) {

alert(mymessage);
    return false;
  }

  if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
alert(mymessage);
    return false;
  }
}

document.onmousedown = rtclickcheck


function check_out(aa)
{
document.form.action="register_form.php?total="+aa;
document.form.submit();
}

function del_recod(aa1)
{
var aa=confirm("Are u sure to delete it?");
if(aa)
{
window.location="delete_product.php?id="+aa1;
}
}

function update_recod(aa1,bb)
{
document.form.action="update_product.php?id="+aa1+"&each="+bb;
document.form.submit();
}