jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});function validateForm(oForm){        		if(	validateField(	oForm.mail_form_company)&&               validateField( oForm.mail_form_postnr)&&               validateField( oForm.mail_form_by)&&validateField(	oForm.mail_form_phone)&&               validateField( oForm.mail_form_email)&&               validateField( oForm.mail_form_contact)&&               validateField( oForm.mail_form_antal)&&               validateField( oForm.mail_form_antal_2)){           oForm.submit();        }else{            alert(oForm.alert.value)        }        return false;    } function validateKomForm(oForm){     if(validateField(oForm.mail_form_navn)&&        validateField(oForm.mail_form_efternavn)&&        validateField(oForm.mail_form_alder) )            {           oForm.submit();        }else{            alert(oForm.alert.value)        }        return false; }    function validateField(oObj){    	if(oObj.value.length>0){    		return true;    	}else{//	    		alert(oObj.name+"="+oObj.value)    		oObj.focus;    		return false;    	}    }    function countLetters(oObj,oTarget,oMax){        var numLetters=oObj.value.length;        var leftLetters=oMax-numLetters;        if(leftLetters<0){ oObj.value=oObj.value.substring(0,oMax);}        numLetters=oObj.value.length;           leftLetters=oMax-numLetters;        oTarget.innerHTML=leftLetters;    }var PRINTAPLE_DIV=null;function printContent(oDiv){    PRINTAPLE_DIV=document.getElementById(oDiv);        var oWindow=document.open("/html/themes/Vestforbraending/templates/print.html",'print','width=600,heigh=700,addressbar=0, toolbar=0');}function getContent(oDiv){    var htmlContent=PRINTAPLE_DIV.innerHTML;    oDiv.innerHTML=htmlContent;}