var popup="Sorry, right-click is disabled." + "\n\n" + "This Site Copyright © 2004 Sea Tech Marine Training";
function noway(go) {
if (document.all) {
if (event.button == 2) {
alert(popup);
return false;
}
}
if (document.layers) {
if (go.which == 3) {
alert(popup);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=noway;

function checkchars() {
    var textmax=300;
    if (document.stf01.dmessage.value.length > textmax) {
        alert("Comments limited to no more than 300 characters."+"\n\n"+"Please shorten your entry and submit again.");
        xdf=String(document.stf01.dmessage.value);
        document.stf01.dmessage.value=xdf.substring(0,300);
        document.stf01.dmessage.focus();
        document.stf01.dmessage.select();
        return false;
    }else{
        // document.stf01.dmessage.focus();
        // document.stf01.dmessage.select();
        return true;
    }
}

function prnWin() {
    browV = parseInt(navigator.appVersion);
    if (browV >= 4) window.print();
}

function disHelp(page) {
    OpenWinHelp = this.open(page, "CtrlWindow", "width=550,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,left=50,top=25");
    OpenWinHelp.focus();
}

function disCalHelp(page) {
    OpenCalHelp = this.open(page, "CalendarWindow", "width=450,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,left=10,top=10");
}

function calWinnew(page) {
   // var page = " ";
    window.maximize = fullScreen;
    OpenCalHelp = window.open(page,"EvCal3", "width=1024,toolbar,menubar,location=no,scrollbars,resizable,left=0,top=0");
    window.maximize();
    OpenCalHelp.focus();
}



// define the function
function fullScreen() {
    this.moveTo(0,0)
    this.outerWidth = screen.availWidth
    this.outerHeight = screen.availHeight
}


/*
// assign the function to a custom property
window.maximize = fullScreen
...
<!-- invoke the custom method -->
<INPUT TYPE=”button” VALUE=”Maximize Window” onClick=”window.maximize()”>

*/