﻿$(document).ready(function() {


});



// $.jGrowl("Stick this!", { sticky: true });


function validering(thisform) {
    // Startværdier
    strError = '';
    elm = null;


    if (thisform.navn.value == "") {
        strError = strError + '- Navn mangler\n'
        if (!elm) {
            elm = thisform.navn;
            elm.focus();
        }
    }

    if (thisform.telefon.value == "") {
        strError = strError + '- Telefon mangler\n'
        if (!elm) {
            elm = thisform.telefon;
            elm.focus();
        }
    }

    if (thisform.epost.value == "") {
        strError = strError + '- Epost mangler\n'
        if (!elm) {
            elm = thisform.epost;
            elm.focus();
        }
    }

    if (thisform.melding.value == "") {
        strError = strError + '- Henvendelse mangler\n'
        if (!elm) {
            elm = thisform.melding;
            elm.focus();
        }
    }

    if (strError != '') {
        alert('' + strError)


        return false;


    }
    return true;

}

function changeHeight(txt) {

    var swfTest = document.getElementById("flashContainer").style.height = txt + "px";


}

function openwindow(docid, menuid, parentID, subID) {

    window.location = "index.asp?menuID=" + menuid + "&docID=" + docid + "&sub=" + subID + "&parentID=" + parentID + "";
}



