function resize() {
  var i=0;
  var MarginW = 60;
  var MarginH = 140;

  if (document.layers) i=40;
  if (document.prodimage.width>document.bannerimage.width) {Width=document.prodimage.width +MarginW}
    else Width = document.bannerimage.width+MarginW;
  Height = document.prodimage.height+document.bannerimage.height+MarginH;
  window.resizeTo(Width,Height);
  self.focus();
}

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

//Disable right mouse click Script
var message="This material is copyright protected.";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")