function disableRadioButtonsByName(name){wellnessRankingRadios=new Array();
wellnessRankingRadios=document.getElementsByName(name);
for(var i=0;
i<wellnessRankingRadios.length;
i++){wellnessRankingRadios[i].disabled=true;
wellnessRankingRadios[i].checked=false
}}function enableRadioButtonsByName(name){wellnessRankingRadios=new Array();
wellnessRankingRadios=document.getElementsByName(name);
for(var i=0;
i<wellnessRankingRadios.length;
i++){wellnessRankingRadios[i].disabled=false
}}function disableTexareasByName(name){document.getElementsByName(name)[0].value="";
document.getElementsByName(name)[0].disabled=true
}function enableTexareasByName(name){document.getElementsByName(name)[0].disabled=false
}function showSatellite(path,param,winType){var width=381;
var height=290;
var pageName="helpsat";
var scroll="no";
if(winType=="small"){height=178;
width=381;
pageName="helpsatSmall"
}else{if(winType=="large"){height=481;
width=400;
scroll="yes";
pageName="helpsatLarge"
}}link=path+pageName+".jsp?"+param;
var win=windowOpen(link,"","menubar=no, toolbar=no, width="+width+", height="+height+", scrollbars="+scroll+", resizable=no");
win.focus();
return false
}function openHelpSatellite(myUrl,myName,foo,mySize){var width=0;
var height=0;
var scroll="";
if(mySize=="small"){width=391;
height=215;
scroll="yes";
myUrl=myUrl+"&size=small"
}else{if(mySize=="medium"){width=391;
height=315;
scroll="yes";
myUrl=myUrl+"&size=medium"
}else{if(mySize=="large"){width=410;
height=521;
scroll="yes";
myUrl=myUrl+"&size=large"
}else{alert("unsupported windowSize");
return false
}}}return openSatellite(myUrl,myName,width,height,scroll)
}function windowOpen(s1,s2,s3){if(s1){s1=addPopupParameter(s1)
}return window.open(s1,s2,s3)
}function _openSatellite(url,myName,width,height,scrollbar,withResize){var win=windowOpen(url,myName,"menubar=no, toolbar=no, width="+width+", height="+height+", scrollbars="+scrollbar+", resizable=yes");
if(withResize){try{win.resizeTo(width,height)
}catch(e){}}if(win){win.focus()
}return false
}function openSatellite(url,myName,width,height,scrollbar){return _openSatellite(url,myName,width,height,scrollbar,true)
}function openSatelliteWithoutResize(url,myName,width,height,scrollbar){return _openSatellite(url,myName,width,height,scrollbar,false)
}function closeWindow(){parent.window.close();
return true
}function closePopup(){if(window.opener){self.close()
}}function showLink(myString){document.write(myString)
}function loadInParent(hrsUrl){opener.location.href=hrsUrl;
self.close()
}function synchronizeFormField(source,target,target2){var targetField=document.getElementById(target);
if(targetField!=null){targetField.value=source.value
}if(target2!=null){var targetField2=document.getElementById(target2);
if(targetField2!=null){targetField2.value=source.value
}}}function checkPopup(url){if(window.opener){if(window.opener.name=="mainFrame"){if(url!=null){window.opener.parent.location.href=url
}}else{if(url!=null){window.opener.location.href=url
}}self.close()
}}function noTooltips(x){openHelpSatellite(x,"noTooltip","foo","medium")
}function openPrintView(link){windowOpen(link,"","menubar=yes, toolbar=no, width=620, height=580, scrollbars=yes, resizable=yes")
}function openPrintViewLarge(link){windowOpen(link,"","menubar=yes, toolbar=no, width=840, height=580, scrollbars=yes, resizable=yes")
}function popExclusivePrice(URL,_width,_height,_left,_top){var pop=windowOpen(URL,"exclusivePrice","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,fullscreen=0,width=_width,height=_height,top=_top,left=_left");
pop.resizeTo(_width,_height);
pop.focus();
return false
}function openWinners(URL){var pop=window.open(URL,"winners","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width=365,height=605,top=10,left=10");
pop.focus()
}function openFlashPopup(flashFile,width,height){var link="showPage.do?page=flashPopup&flashFile="+flashFile+"&width="+width+"&height="+height;
var pop=windowOpen(link,"flash","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width="+width+",height="+height+",top=50,left=50");
pop.focus();
return false
}function checkpopup(){if(Math.random()<=0.02){if(document.cookie.indexOf("survey=true")==-1){document.cookie="survey=true;path=/;Expires=Sat,20 Nov 2005 12:00:00 UTC";
var win=window.open("http://www.eresult.de/umfragen/hrs/index.php","","height=630, width=820, left=10, top=10,toolbar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=1");
win.blur();
window.focus()
}}}function toggleComparisonVisibility(whichElement,whichHeadline){var thisElement=document.getElementById(whichElement);
var thisHeadline=document.getElementById(whichHeadline);
if(thisElement.style.display=="block"||thisElement.style.display==0){thisElement.style.display="none";
thisHeadline.style.backgroundImage="url(images/ic_comparisonToggle_inaktiv.gif)"
}else{thisElement.style.display="";
thisHeadline.style.backgroundImage="url(images/ic_comparisonToggle_aktiv.gif)"
}}function showLandingNewsletterTeaser(url,whichDestination){for(i=0;
i<document.getElementById("landingNewsletterSelect").length;
++i){if(document.getElementById("landingNewsletterSelect").options[i].selected==true){whichDestination=document.getElementById("landingNewsletterSelect").options[i].value
}}document.location.href=url+"&page="+whichDestination
}function setDisplay(id){document.getElementById(id).style.display=="none"?document.getElementById(id).style.display="block":document.getElementById(id).style.display="none"
}window.onload=function(){if(document.getElementById("hotelComparison")){document.getElementById("hotelRating").style.display="none";
document.getElementById("hotelInfo").style.display="none";
document.getElementById("hotelDistances").style.display="none";
document.getElementById("hotelAmmenities").style.display="none";
document.getElementById("roomAmmenities").style.display="none";
document.getElementById("hotelService").style.display="none";
document.getElementById("hotelCredits").style.display="none"
}};
function addPopupParameter(linkUrl){if(linkUrl!=null&&linkUrl.length>0){return linkUrl+getUrlChar(linkUrl)+"isPopup=true"
}return""
}function getUrlChar(url){var chr="?";
if(url.indexOf("?")>-1){chr="&"
}return chr
}function puSized(el,width,height,windowName,href){var href=href||el.getAttribute("href");
href+=href.indexOf("?")>-1?"&":"?";
href+="isPopup=true";
f1=window.open(href,windowName,"width="+width+", height="+height+", left=50, top=0, scrollbars=yes, resizable=yes");
f1.focus()
}function listConverter(){var theList=document.getElementById("linkList");
if(!theList){return false
}var id=theList.id;
var links=theList.getElementsByTagName("a");
var form=document.createElement("form");
form.setAttribute("action","javascript:void(0);");
var select=document.createElement("select");
select.setAttribute("name","sel_"+id);
select.setAttribute("id","link_"+id);
for(i=0;
i<links.length;
i++){var option=document.createElement("option");
if(links[i].className.match(/active/)){option.setAttribute("selected","selected")
}var link=links[i].getAttribute("href");
option.setAttribute("value","self.location='"+link+"'");
var text=document.createTextNode(links[i].firstChild.data);
option.appendChild(text);
select.appendChild(option);
select.onchange=function(){var el=document.getElementById("link_"+id);
if(el[el.selectedIndex].value!=""){eval(el[el.selectedIndex].value);
return false
}}
}while(theList.firstChild){theList.removeChild(theList.firstChild)
}form.appendChild(select);
theList.appendChild(form);
var theOptions=select.getElementsByTagName("option");
for(n=0;
n<theOptions.length;
n++){theURL="self.location='"+window.location.href+"'";
theValue=theOptions[n].value;
if(theURL==theValue){thisIndex=theOptions[n].index;
select.selectedIndex=thisIndex
}}}function pu(el){puSized(el,590,573,"detail")
}function puSized(el,width,height,windowName,href){var href=href||el.href;
href=href.replace(/&inCont=1/g,"");
href+=href.indexOf("?")>-1?"&":"?";
href+="isPopup=true";
f1=window.open(href,windowName,"width="+width+", height="+height+", left=50, top=0, scrollbars=yes, resizable=yes");
f1.focus()
};
