var popup="Sorry, right-click is disabled." + "\n\n" + "This Site Copyright © 2007 by 359 and a Wake Up";
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.tfnwp3.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.tfnwp3.dmessage.value);
        document.tfnwp3.dmessage.value=xdf.substring(0,300);
        document.tfnwp3.dmessage.focus();
        document.tfnwp3.dmessage.select();
        return false;
    }else{
        // document.tfnwp3.dmessage.focus();
        // document.tfnwp3.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");
}

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