/***********************************************
* Disable Right-Click event on the webpages
***********************************************/
//UNCOMMENT THE FOLLOGIN LINES TO ACTIVATE THE "Disable Right-Click" EVENTS

function click(e) 
{

if (document.all) 
{
if (event.button==2||event.button==3) 
{
oncontextmenu='return false';
}
}
if (document.layers) 
{
if (e.which == 3) 
{
oncontextmenu='return false';
}
}
}

function markClick(e) 
{
  if (isIE || isOpera6) 
  {
    winX=event.screenX;
    winY=event.screenY;
  }
  else if (isN4 || isN6) 
  {
    winX=e.screenX;
    winY=e.screenY;

    document.routeEvent(e);
  }

  return true;
}

function undercon()
{
alert("This Page is under construction.");
}

if (document.layers) 
{
document.captureEvents(Event.MOUSEDOWN);
}

//document.onmousedown=click;
//document.oncontextmenu = new Function("return false;")
//document.onclick=markClick;


//Resize an open window to the content of the page
function dynamicPopup(foto) 
{
alpha=window.open("","DynaWin"," toolbar=no,directories=no,menubar=no,resizable=no");

x=alpha.document;

x.write("<head><SCRI"+"PT>")
x.write("function dymanicResize(){")
x.write("window.resizeTo(")
x.write("document.im1.width+11,")
x.write("document.im1.height+29);")
x.write("};document.title='SBHS';</SCRIP"+"T></head>")
x.write("<body topmargin=0 leftmargin=0 scroll=no>")
x.write("<img src='"+foto+"' id='im1' name='im1' onLoad='dymanicResize();'>")
x.write("</body>")

x.close()

alpha.focus()
}
