﻿<!-- JavaScript -->

	
		
		function addLoadEvent(func) {
			var oldonload = window.onload;
			
			if (typeof window.onload != "function") {
				window.onload = func;
			} else {
				window.onload = function () {
					oldonload();
					func();
				}
			}
		}
		
	
		addLoadEvent(function () {
			initChecklist();
		});
		
		
		function initChecklist() {
			if (document.all && document.getElementById) {
				// Get all unordered lists
				var lists = document.getElementsByTagName("ul");
				
				for (i = 0; i < lists.length; i++) {
					var theList = lists[i];
					
					// Only work with those having the class "checklist"
					if (theList.className.indexOf("checklist") > -1) {
						var labels = theList.getElementsByTagName("label");
						
						// Assign event handlers to labels within
						for (var j = 0; j < labels.length; j++) {
							var theLabel = labels[j];
							theLabel.onmouseover = function() { this.className += " hover"; };
							theLabel.onmouseout = function() { this.className = this.className.replace(" hover", ""); };
						}
					}
				}
			}
		}


function show(obj)
{
    if(document.getElementById(obj))
    {
       
        
        if(document.getElementById(obj).style.visibility)
        {
            if(document.getElementById(obj).style.visibility =="hidden")
            {
                document.getElementById(obj).style.visibility = "visible";
            }
             else
                document.getElementById(obj).style.visibility = "hidden";
        }
        else
        {
        
        
            if(document.getElementById(obj).style.display == "none")
                document.getElementById(obj).style.display = "block";
            else
            document.getElementById(obj).style.display = "none";
        
        }        
     }
 }
 function showOnly(obj)
{
    if(document.getElementById(obj))
    {
       
        
        if(document.getElementById(obj).style.visibility)
        {
            if(document.getElementById(obj).style.visibility =="hidden")
            {
                document.getElementById(obj).style.visibility = "visible";
            }
           
        }
        else
        {
        
        
            if(document.getElementById(obj).style.display == "none")
                document.getElementById(obj).style.display = "block";
        
        }        
     }
 }

function hidechilddates(roomconfig)
{

    for(i=1;i<=4;i++)
    {
      if(document.getElementById('ctl00_contentPL_childage'+i+'_'+roomconfig))
      {
      
        if(document.getElementById('ctl00_contentPL_childage'+i+'_'+roomconfig).className == "formdiv")
            document.getElementById('ctl00_contentPL_childage'+i+'_'+roomconfig).className = "formdivhidden";
      }
          
     }

}


function showchilddates(roomconfig)
{

    hidechilddates(roomconfig);
    if(document.getElementById('ctl00_contentPL_ddl_numberchilds'+roomconfig) != null)
    {
        anzahl = document.getElementById('ctl00_contentPL_ddl_numberchilds'+roomconfig).options[document.getElementById('ctl00_contentPL_ddl_numberchilds'+roomconfig).selectedIndex].value;
        for(i=1;i<=anzahl;i++)
        {
      
      
            if(document.getElementById('ctl00_contentPL_childage'+i+'_'+roomconfig).className == "formdivhidden")
                document.getElementById('ctl00_contentPL_childage'+i+'_'+roomconfig).className = "formdiv";
          
        }
     }
     if(usesframe == 1)
     parent.document.getElementById(frameResID).height = document.getElementById("ctl00_contentWrapper").offsetHeight+45;
}
function showMordata(name)
{

   
    if(document.getElementById('ctl00_contentPL_'+name) != null)
    {
        
      
      
            if(document.getElementById('ctl00_contentPL_'+name).className == "formdivhidden")
                document.getElementById('ctl00_contentPL_'+name).className = "formdiv";
            else
                document.getElementById('ctl00_contentPL_'+name).className = "formdivhidden";
                
          
       
     }

}


function fillchild(number,roomconfig)
{
    day = document.getElementById("ctl00_contentPL_ddl_Day_child"+number+'_'+roomconfig).options[document.getElementById('ctl00_contentPL_ddl_Day_child'+number+'_'+roomconfig).selectedIndex].value;
    month = document.getElementById("ctl00_contentPL_ddl_month_child"+number+'_'+roomconfig).options[document.getElementById('ctl00_contentPL_ddl_month_child'+number+'_'+roomconfig).selectedIndex].value;
    year = document.getElementById("ctl00_contentPL_ddl_year_child"+number+'_'+roomconfig).options[document.getElementById('ctl00_contentPL_ddl_year_child'+number+'_'+roomconfig).selectedIndex].value;
    date= day+"."+month+"."+year;
  
    document.getElementById("ctl00_contentPL_HiddenFieldChild"+number+'_'+roomconfig).value = date;
 

}
StartDDMenue = function() {

	var sfEls = document.getElementById("ctl00_primarynavigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
	
}
if(topnavivar == 1)
{
if (window.attachEvent) window.attachEvent("onload", StartDDMenue);
}


