// JavaScript Document
    function getWindowHeight(){
	
	if(document.getElementById("mapka")){
	load();
	}
	
	
      if (navigator.appName=="Netscape")
         {
            var windowHeight = window.innerHeight;
         }
         else if (navigator.appName.indexOf("Microsoft")!=-1)
         {
            var windowHeight = document.documentElement.clientHeight;
         }
         return windowHeight;
    }
    
    function getContentHeight(){
        var leftContentHeight = document.getElementById("wrapper").offsetHeight;
        var rightContentHeight = document.getElementById("kollom2").offsetHeight;
		var rightContentHeight2 = document.getElementById("kollom3").offsetHeight;
        if (rightContentHeight2 > rightContentHeight) return rightContentHeight2;
		else return rightContentHeight;
    }        
    
    function setDivHeights() {
        headerHeight = 80;
        windowHeight = getWindowHeight();
        contentHeight = getContentHeight();
        if ((windowHeight - headerHeight) > contentHeight) {
            document.getElementById("wrapper").style.height = windowHeight - headerHeight +"px";
			document.getElementById("kollom2").style.height = windowHeight - headerHeight +"px";
            document.getElementById("kollom3").style.height = windowHeight - headerHeight +"px";
        }
        else {
            document.getElementById("wrapper").style.height = contentHeight +"px";
			document.getElementById("kollom2").style.height = contentHeight +"px";
            document.getElementById("kollom3").style.height = contentHeight +"px";
        }

    }
	
	function checkFields() {
        
            if(document.getElementById("naam").value==''){
				document.getElementById("naam").style.border = "3px solid #FF0000";
				
			}   
			if(document.getElementById("email").value==''){
				document.getElementById("email").style.border = "3px solid #FF0000";
				
			} 			
			if(document.getElementById("subject").value==''){
				document.getElementById("subject").style.border = "3px solid #FF0000";
				
			} 
			if(document.getElementById("content").value==''){
				document.getElementById("content").style.border = "3px solid #FF0000";
				
			}    
			if(document.getElementById("content").value!='' || 
			document.getElementById("subject").value!='' || 
			document.getElementById("email").value!='' || 
			document.getElementById("naam").value!=''){
				return true;
			
			}else{
			
			return false;
			
			}
			
			 
		
    }