function confdel() {
    return confirm("This will permenantly delete this record!");
}

function nodel() {
    alert("You cannot delete this record!");
    return false;
}

function toggle(id,trigger) {

    // Layer visible
    if (trigger=="1"){
        if (document.layers) document.layers[''+id+''].visibility = "show"
        else if (document.all) document.all[''+id+''].style.visibility = "visible"
        else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"                                
    }
    // Layer hidden
    else if (trigger=="0"){
        if (document.layers) document.layers[''+id+''].visibility = "hide"
        else if (document.all) document.all[''+id+''].style.visibility = "hidden"
        else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"                         
    }
}

<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {
    if (document.all) {
        (message);
        return false;
    }
}
function clickNS(e) {
    if
    (document.layers||(document.getElementById&&!document.all)) {
        if (e.which==2||e.which==3) {
            (message);
            return false;
        }
    }
}
if (document.layers) 
{
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS;
}
else{
    document.onmouseup=clickNS;
    document.oncontextmenu=clickIE;
}

document.oncontextmenu=new Function("return false")
// -->

function checkContactFields() {

    missinginfo = "";

    if (document.form.Name.value == ""){
        missinginfo +="\n Name";
    }


    if (document.form.Email.value == ""){
        missinginfo +="\n E-mail";
    }else{

        var str=document.form.Email.value;
        var at="@"
        var dot="."
        var lat=str.indexOf(at)
        var lstr=str.length
        var ldot=str.indexOf(dot)

        if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr || str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr || str.indexOf(at,(lat+1))!=-1 || str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot || str.indexOf(dot,(lat+2))==-1 || str.indexOf(" ")!=-1){
            missinginfo +="\n Invalid E-mail Address";
        }

    }

    if (document.form.City.value == ""){
        missinginfo +="\n City";
    }

    if (document.form.State.value == ""){
        missinginfo +="\n State";
    }

    if (missinginfo != ""){
        missinginfo ="\n"+
        "These Following Fields Are Required and Your E-mail Must Be Valid:\n"+
        missinginfo+"\n"+
        "\nPlease re-enter and submit again!";

        alert(missinginfo);

        return false;
    }
    else return true;
}