var addthis_hover_delay=350;var addthis_options='favorites, google, delicious, twitter, digg, furl, sharedstuff, technorati, slashdot, propeller, more';var addthis_pub="chiquadrat";function readCookie(n)
{a=document.cookie;res='';while(a!='')
{cookiename=a.substring(0,a.search('='));cookiewert=a.substring(a.search('=')+1,a.search(';'));if(cookiewert=='')
{cookiewert=a.substring(a.search('=')+1,a.length);}
if(n==cookiename){res=cookiewert;}
i=a.search(';')+1;if(i==0){i=a.length}
a=a.substring(i,a.length);}
return(res);}
function isNumeric(expression){var nums="0123456789";if(expression.length==0)return(false);for(var n=0;n<expression.length;n++){if(nums.indexOf(expression.charAt(n))==-1)return(false);};return(true);};function submitForm(tmpForm){document.forms[tmpForm].submit();}
function openWindow(tmpUrl,tmpSizeX,tmpSizeY){popup=open(tmpUrl,'popup','height='+tmpSizeY+',width='+tmpSizeY+',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes');return popup;}
function cfCheckFormElement(strFormId,strElementId){document.forms[strFormId].elements[strElementId].checked=true;}
function cfUncheckFormElement(strFormId,strElementId){document.forms[strFormId].elements[strElementId].checked=false;}
function txLeave(){}
function removeAllSelectOptions(selectFieldId){var selector=document.getElementById(selectFieldId);for(var index in selector.options){selector.remove(index);}}
function selectDropDownValue(elementId,text){var element=document.getElementById(elementId);for(var i=0;i<element.options.length;i++)
{if(parseInt(element.options[i].value)==parseInt(text))
{element.options[i].selected=true;}
else
{element.options[i].selected=false;}}};function utf8_decode(str_data){var tmp_arr=[],i=ac=c=c1=c2=0;while(i<str_data.length){c=str_data.charCodeAt(i);if(c<128){tmp_arr[ac++]=String.fromCharCode(c);i++;}
else
if((c>191)&&(c<224)){c2=str_data.charCodeAt(i+1);tmp_arr[ac++]=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=str_data.charCodeAt(i+1);c3=str_data.charCodeAt(i+2);tmp_arr[ac++]=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return tmp_arr.join('');}
function htmlentities(str,typ){if(typeof str=="undefined")str="";if(typeof typ!="number")typ=2;typ=Math.max(0,Math.min(3,parseInt(typ)));var html=new Array();html[38]="&amp;";html[60]="&lt;";html[62]="&gt;";if(typ==1||typ==3)html[39]="&#039;";if(typ==2||typ==3)html[34]="&quot;";for(var i in html)eval("str=str.replace(/"+String.fromCharCode(i)+"/g,\""+html[i]+"\");");var entity=new Array("&nbsp;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&shy;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;");for(var i in entity)eval("str=str.replace(/"+String.fromCharCode(i*1+160)+"/g,\""+entity[i]+"\");");return str;}
function txGetElementById(tmpId){if(document.getElementById){var tmpObj=eval(document.getElementById(tmpId));}
else if(document.all){var tmpObj=document.all[tmpId];}
else{tmpObj=false;}
return tmpObj;}
function txChangeCssStyle(tmpObj,tmpStyle,tmpAttr){var cssObj=tmpObj;if(cssObj.style[tmpStyle]=tmpAttr){return true;}
else{return false;}}
function txGetCssStyle(tmpObj,tmpStyle){var css;if(css=tmpObj.currentStyle.tmpStyle){return css;}
else{return false;}}
function getSelectElementValueById(id){var currElement=document.getElementById(id);return currElement.options[currElement.options.selectedIndex].value;}
function txAddEventHandler(tmpObject,tmpEvent,tmpFunction,tmpUseCapture){if(tmpObject.addEventListener){tmpObject.addEventListener(tmpEvent,tmpFunction,tmpUseCapture);return true;}
else if(tmpObject.attachEvent){var r=tmpObject.attachEvent("on"+tmpEvent,tmpFunction);return r;}else{alert("Handler could not be attached");return false;}}
function txRemEventHandler(tmpObject,tmpEvent,tmpFunction){if(tmpObject.addEventListener){tmpObject.addEventListener(tmpEvent,tmpFunction,false);return true;}
else if(tmpObject.attachEvent){var r=tmpObject.detachEvent("on"+tmpEvent,tmpFunction);return r;}
else{alert("Handler could not be attached");return false;}}
var objTimer=null;function ajaxQuickSearchPrefill()
{if(objTimer){window.clearTimeout(objTimer);}
objTimer=window.setTimeout("doAjaxQuickSearchPrefill()",700);}
function doAjaxQuickSearchPrefill(){var string=document.forms['quickJump'].elements['PC[3]'].value;var os=new objectSearch();var result=os.ajaxQuickSearchPrefill(string);var box=document.getElementById('ajaxQuickSearch');box.setAttribute('autocomplete','off');if(box.firstChild){box.removeChild(box.firstChild);}
var table=document.createElement('table');table.setAttribute("class","suggestLayer");table.setAttribute("border","0");var tbody=document.createElement('tbody');for(var index in result){var row=document.createElement('tr');row.id="searchsugg"+index;row.style.cursor="pointer";row.style.borderStyle="none";if(txAddEventHandler){}
var td1=document.createElement('td');var td2=document.createElement('td');var td3=document.createElement('td');var tdExt=document.createElement('td');var p1=document.createElement('p');var p2=document.createElement('p');var p3=document.createElement('p');var pExt=document.createElement('p');var a1=document.createElement('a');var a2=document.createElement('a');var a3=document.createElement('a');var aExt=document.createElement('a');aExt.style.paddingRight="2px";if(index>=0){var text1=document.createTextNode(unescape(result[index]['result1']));var text2=document.createTextNode(unescape(result[index]['result2']));var text3=document.createTextNode(unescape(result[index]['result3']));if(result[index]['picurl']){var pic=document.createElement('img');pic.src="/"+unescape(result[index]['picurl']);pic.border=0;pic.width=42;pic.height=27;aExt.appendChild(pic);}else{var pic=null;}
if(result[index]['numObj']){var currNum=unescape(result[index]['numObj']);var currNumInt=parseInt(currNum,10);if(currNumInt>1){var txt="Unterkünfte";}else{var txt="Unterkunft";}
var textNum=document.createTextNode(unescape(result[index]['numObj']+" "+txt));aExt.appendChild(textNum);}
a1.appendChild(text1);a1.setAttribute('fontWeight','bold');a2.appendChild(text2);a3.appendChild(text3);a1.href="javascript:handleQuickSearchSuggestListClick(\""+escape(result[index]['result1'])+"\")";a2.href="javascript:handleQuickSearchSuggestListClick(\""+escape(result[index]['result1'])+"\")";a3.href="javascript:handleQuickSearchSuggestListClick(\""+escape(result[index]['result1'])+"\")";if(pic!=null){aExt.href=a1.href;}
p1.appendChild(a1);p2.appendChild(a2);p3.appendChild(a3);pExt.appendChild(aExt);pExt.style.textAlign="right";p2.style.fontWeight='bold';td1.appendChild(p1);td2.appendChild(p2);td3.appendChild(p3);tdExt.appendChild(pExt);row.appendChild(td1);row.appendChild(td2);row.appendChild(td3);row.appendChild(tdExt);tbody.appendChild(row);}}
row=document.createElement('tr');row.style.borderStyle="none";tbody.appendChild(row);tdClose=document.createElement('td');tdClose.cols=4;tdClose.setAttribute('colSpan',4);tdClose.style.textAlign="right";pClose=document.createElement('p');pClose.align="right";pClose.style.textAlign="right";aClose=document.createElement('a');aClose.align="right";aClose.style.textAlign="right";var picClose=document.createElement('img');picClose.width=14;picClose.style.height=14;picClose.height=14;picClose.style.width=14;picClose.border=0;picClose.src="/laxoo/globalinc/ressources/pics/mainCancelButton20x20redOn6487DC.gif";var textClose=document.createTextNode('Schliessen');aClose.appendChild(picClose);aClose.href="javascript:closeQuickSearchHints()";pClose.appendChild(aClose);pClose.style.textAlign='right';tdClose.appendChild(pClose);row.appendChild(tdClose);table.appendChild(tbody);box.appendChild(table);box.style.left=findPosX(document.getElementById('IdQuickSearch'));box.style.top=110;box.style.visibility='visible';}
function handleQuickSearchSuggestListClick(val){setQuickSearchValue(val);document.getElementById('ajaxQuickSearch').style.visibility='hidden';}
function setQuickSearchValue(val){if(document.forms['IdQuickJump']){document.forms['IdQuickJump'].elements['PC[3]'].value=val;document.forms['IdQuickJump'].submit();}}
function closeQuickSearchHints(){document.getElementById('ajaxQuickSearch').style.visibility='hidden';}
function suggestOver(evt){evt=(evt)?evt:((window.event)?window.event:"");var elem=(evt.target)?evt.target:evt.srcElement;elem.style.color="white";}
function suggestOut(evt){evt=(evt)?evt:((window.event)?window.event:"");var elem=(evt.target)?evt.target:evt.srcElement;elem.style.color="#004683";}
function findPosX(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x){curleft+=obj.x;}
return curleft;}
function findPosY(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y){curtop+=obj.y;}
return curtop;}