/* Generic variables */ var dir = '/customers/relaismonaco/webrelais.nsf/'; var HTTP_Accept = 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'; var HTTP_Accept_language = 'en-us,en;q=0.5'; var HTTP_Referer = ''; var HTTP_User_Agent = 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)'; var Query_String = ''; var Query_String_Decoded = ''; var Remote_Addr = '38.107.191.88'; var Remote_Host = ''; var Remote_Ident = ''; var Server_Name = 'www.relaismonaco.it'; var Server_Protocol = 'HTTP/1.1'; var Server_Port = '80'; var Server_Software = 'Lotus-Domino'; var UserName = 'Anonymous'; var UserNameAbb = 'Anonymous'; var UserNameCN = 'Anonymous'; function webappbe() { alert('Error!'); return true } function webappnrcie4() { if (event.button==2) { alert('Right click is not allowed on this page!'); return false; } } function webappnrcns4(e) { if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3) { alert('Right click is not allowed on this page!'); return false; } } } function webapprw() { var wh = 0; var ww = 0; var imgh = document.dspimg.height; var imgw = document.dspimg.width; var ah = screen.availHeight -30; var aw = screen.availWidth -30; var extra = 0; if (imgw > aw) { ww = aw; extra = 16; } else { ww = imgw + 60 + 0; } if (imgh > ah) { wh = ah; } else { wh = imgh + 61 + extra + 0; if (wh > ah) { wh = ah; } } if (ww < 100) { ww = 100; } if (wh < 100) { wh = 100; } self.resizeTo( ww, wh); self.moveTo(15, 15); self.focus(); } function webappoiw(docname) { var wincfg = 'height=50,width=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,screenX=50,screenY=50'; cyber=window.open(dir + 'webwin/' + docname, 'webappwindow', wincfg); } function webappbof() { if (parent.frames.length > 0) { parent.location.href = self.document.location; } } function webappaf(frm, src) { if (parent.webappfs != dir) { document.location.href = 'http://' + Server_Name + '/customers/relaismonaco/webrelais.nsf?Open&' + frm + '=' + src } } var IT = 'IT'; var UK='UK'; function nascondi(){ if ( document.all){ current_section = document.all['Layer500']; current_section2 = document.all['LayerT500']; } if ( document.getElementById ){ current_section = document.getElementById('Layer500'); current_section2 = document.getElementById('LayerT500'); } current_section.style.overflow = 'hidden' current_section.style.visibility = 'hidden' // current_section2.style.overflow = 'hidden' // current_section2.style.visibility = 'hidden' } function mostra(){ if ( document.all){ current_section = document.all['Layer500']; current_section2 = document.all['LayerT500']; } if ( document.getElementById ){ current_section = document.getElementById('Layer500'); current_section2 = document.getElementById('LayerT500'); } current_section.style.overflow = 'visible' current_section.style.visibility = 'visible' // current_section2.style.overflow = 'visible' // current_section2.style.visibility = 'visible' } function resatwork (langarg,structurearg) { if (langarg.toUpperCase()=='UK') { lang='UK';} else {lang='IT'} opt='width=1020, height=740, status=yes, menubar=no, toolbar=no, location=no, resizable=yes, titlebar=no, scrollbars=auto'; host='https://booking.relaismonaco.it'; window.open(host+'/customers/relaismonaco/reservations.nsf/reservation?openpage&lang='+lang+'&structure='+structurearg,'Reservations',opt); } function offersatwork (langarg) { if (langarg.toUpperCase()=='UK') { lang='UK';} else {lang='IT'} opt='width=1020, height=740, status=yes, menubar=no, toolbar=no, location=no, resizable=yes, titlebar=no, scrollbars=auto'; host='https://booking.relaismonaco.it'; window.open(host+'/customers/relaismonaco/reservations.nsf/reservationservlet?openpage&lang='+lang+'&structure=*','Reservations',opt); } function requestatwork (langarg,category) { if (langarg.toUpperCase()=='UK') { lang='UK';} else {lang='IT'} opt='width=1020, height=740, status=yes, menubar=no, toolbar=no, location=no, resizable=yes, titlebar=no, scrollbars=auto'; host='https://booking.relaismonaco.it'; window.open(host+'/customers/relaismonaco/richieste.nsf/request?openform&lang='+lang+'&arg='+category,'Request',opt); } //=============================================== /***** * Copyright © FASTBOOKING 2000-2006 * */ var FBRESA = "http://www.fastbookings.biz/DIRECTORY/"; // standard booking function function hhotelPTC(cname, lg, codeprice, codetrack, cluster) { hhotelResa(cname, lg, codeprice, "", "", codetrack, cluster, "", "") } // standard promotion function function hhotelPromo(cname, lg, theme) { hhotelResa(cname, lg, "DYNPROMO", "", "", "", "", theme, "") } // reservation promotion function: To show one promotion function hhotelOnePromo(cname, lg, codeprice, codetrack, cluster) { hhotelResa(cname, lg, codeprice, "", "", codetrack, cluster, "", "style=DIRECTPROMO") } // reservation page WITHOUT the individual access function hhotelNegociated(cname, lg, codeprice, codetrack, cluster) { hhotelResa(cname, lg, codeprice, "", "", codetrack, cluster, "", "negociated=1"); } // standard search availabilities in a group function hhotelSearchGroup(cluster, lg, price, nights, title) { hhotelSearch(cluster, lg, price, nights, title, "", ""); } // standard search availabilities in a group for a partner function hhotelSearchPartner(cluster, lg, price, codetrack, title) { if (codetrack != "") args = "&from="+codetrack; else args = ""; hhotelSearch(cluster, lg, price, "", title, "", args); } // search by giving the initial date function hhotelSearchPriceDate(cluster, price, nights, title, firstdate) { // firstdate : format "YYMMDD" var args=""; if (firstdate != "") args = "FirstDate="+firstdate; hhotelSearch(cluster, "", price, nights, title, "", args); } // search availabilities for selected promotions function hhotelSearchPromo(cluster, lg, theme) { hhotelSearch(cluster, lg, "", "", "", theme, ""); } // search availabilities with Extra Field function hhotelSearchExtra(cluster, lg, price, codetrack, extratitle, extraval, extrashow) { var args = "Extrafield=" + escape(extratitle) + ";" + extraval + ";" + extrashow; if (codetrack != "") args += "&from="+codetrack; hhotelSearch(cluster, lg, price, "", "", "", args); } // go to the cancel reservation page function hhotelcancel(cname,lg) { var waction = FBRESA + "cancel.phtml?state=77&Hotelnames="+cname; if (lg != "") waction += "&langue="+lg; window.open(waction,"reservation","toolbar=no,width=400,height=350,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // go to the extract reservation page function hhotelExtract(cname, lg) { var waction = FBRESA + "getresa.phtml?Hotelnames="+cname+"&langue="+lg; window.open(waction, 'getresa', 'toolbar=no,width=700,height=300,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes'); return false; } // check interface function hhotelcheckrates(cname, lg) { var waction = FBRESA + "crs.phtml?clusterName="+cname; if (lg != "") waction += "&langue="+lg; waction += "&checkPromo=1"; window.open(waction,"search","toolbar=no,width=800,height=550,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // Main standard reservation function function hhotelResa(cname, lg, codeprice, firstroom, firstdate, codetrack, cluster, theme, args) { var waction = FBRESA+"preresa.phtml?Hotelnames="+cname; if (lg != "") waction += "&langue="+lg; if (firstroom != "") { waction += "&FirstRoomName="+firstroom; if (codeprice == "") codeprice = "DIRECT"; } if (firstdate != "") { waction += "&FirstDate="+firstdate; if (codeprice == "") codeprice = "DIRECT"; } if (codeprice != "") waction += "&FSTBKNGCode="+codeprice; if (codetrack != "") waction += "&FSTBKNGTrackLink="+codetrack; if (cluster != "") waction += "&clustername="+cluster; if (theme != "") waction += "&theme="+theme; if (args != "" && (args.indexOf("=")!= -1) ) waction += "&"+args; waction += "&HTTP_REFERER="+escape(document.location.href); window.open(waction,"reservation","toolbar=no,width=400,height=350,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // Main direct reservation function function hhotelResaDirect(cname, lg, codeprice, firstroom, codetrack, firstdate) { // firstdate : format "YYMMDD;nbnights;nbadults;nbchild" var waction = FBRESA+"preresa.phtml?Hotelnames="+cname; if (lg != "") waction += "&langue="+lg; waction += "&style=DIRECT"; if (codeprice != "") waction += "&FSTBKNGCode="+codeprice; if (firstroom != "") waction += "&FirstRoomName="+firstroom; if (codetrack != "") waction += "&FSTBKNGTrackLink="+codetrack; if (firstdate != "") waction += "&FirstDate="+firstdate; waction += "&HTTP_REFERER="+escape(document.location.href); window.open(waction,"reservation","toolbar=no,width=400,height=350,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // Main Search function function hhotelSearch(cluster, lg, price, nights, title, theme, args) { var waction = FBRESA + "crs.phtml?clusterName="+cluster; if (lg != "") waction += "&langue="+lg; if (price != "") waction += "&FSTBKNGCode="+price; if (nights != "") waction += "&nights="+nights; if (title != "") waction += "&title="+escape(title); if (theme != "") waction += "&theme="+theme; if (args != "" && (args.indexOf("=")!= -1) ) waction += "&"+args; window.open(waction,"search","toolbar=no,width=800,height=550,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // Main Search function for Multi Codes function hhotelSearchMultCode(cluster, lg, clecode, title, codetrack) { var waction = FBRESA + "crs.phtml?clusterName="+cluster; if (lg != "") waction += "&langue="+lg; if (clecode != "") waction += "&AccessCode="+clecode; if (title != "") waction += "&title="+escape(title); if (codetrack != "") waction += "&FSTBKNGTrackLink="+codetrack; waction += "&crossSelling=NO"; // CROSS SELLING DESACTIVATED window.open(waction,"search","toolbar=no,width=800,height=550,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // Main Search function for Cross Selling function hhotelSearchCrossSell(cluster, lg, codetrack, crossSelling) { var waction = FBRESA + "crs.phtml?clusterName="+cluster; if (lg != "") waction += "&langue="+lg; if (codetrack != "") waction += "&FSTBKNGTrackLink="+codetrack; if (crossSelling != "") waction += "&crossSelling="+crossSelling; window.open(waction,"search","toolbar=no,width=800,height=550,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } // MAIN AVAILABILITY CHECK function hhotelDispopriceFHP(cname, lg, codetrack, year, month, day, nights, currency) { var waction = FBRESA+"dispoprice.phtml?clusterName="+cname+"&Hotelnames="+cname; if (lg != "") waction += "&langue="+lg; if (codetrack != "") waction += "&FSTBKNGTrackLink="+codetrack; if (year != "") waction += "&fromyear="+year; if (month != "") waction += "&frommonth="+month; if (day != "") waction += "&fromday="+day; if (nights != "") waction += "&nbdays="+nights; if (currency != "") waction += "&CurrencyLabel="+currency; waction += "&showPromotions=3"; window.open(waction,"reservation","toolbar=no,width=750,height=600,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes"); } /////////////////////////////////////////////////////////////////////////////////////// // Form functions // Simple form validation (used for compatibility issues) function hhotelDispoprice(myForm) { hhotelFormValidation(myForm, 0); } // Form validation with control function hhotelFormValidation(myForm, mandatoryCode){ if (mandatoryCode == 1 && myForm.AccessCode.value == "") { alert("You must type in your code ID"); return (false); } var languetype = typeof myForm.action; myForm.action = FBRESA + "dispoprice.phtml"; window.open('','dispoprice', 'toolbar=no,width=800,height=550,menubar=no,scrollbars=yes,resizable=yes'); myForm.submit(); return (true); } // Form: update the selected hotel name function hhotelFormUpdateHotelnames(myForm) { menuNum = myForm.HotelList.selectedIndex; if (menuNum == null) return; myForm.Hotelnames.value = myForm.HotelList.options[menuNum].value; } // Form: show the cancel page function hhotelFormCancel(myForm){ var CName = myForm.Hotelnames.value; var languetype = typeof myForm.langue; var langue; if (languetype == "undefined") langue = ""; else langue = myForm.langue.value; if (CName == null || CName == 'All' || CName == ''){ alert('Please select a hotel first'); return (false); } return hhotelcancel(CName, langue); } // Form: show the extract page function hhotelFormExtract(myForm) { var CName = myForm.Hotelnames.value; var languetype = typeof myForm.langue; var langue; if (languetype == "undefined") langue = ""; else langue = myForm.langue.value; if (CName == null || CName == 'All' || CName == ''){ alert('Please select a hotel first'); return (false); } return hhotelExtract(CName, langue); } // Form: show languages function hhotelShowLang(lang) { hhotelShowLang__(this.document, lang); } function hhotelShowLangOpener(lang) { hhotelShowLang__(window.opener.document, lang); window.close(); } function hhotelShowLang__(mydoc, lang) { mydoc.idForm.langue.value=lang; var imgLang = hhotelLang2Img(lang); if (imgLang != "") { var formFlag = mydoc.selLgFlag; if (formFlag != null) mydoc.selLgFlag.src= "fastbooking/flags/"+imgLang+".gif"; var formFlag = mydoc.selLgTxt; if (formFlag != null) mydoc.selLgTxt.src= "fastbooking/flags/"+imgLang+"lg.gif"; } } // FastBooking language and image code var FBLangCode = new Array ( "uk", "france", "germany", "spain", "portuguese", "italy", "nether", "russian", "dansk", "svensk", "islensk", "norsk", "turk", "hungria", "greek", "arab", "china", "coreen", "japan","croate","czech","poland"); var FBLangImg = new Array ( "grandbret", "france", "germany", "spain", "portuguese", "italy", "nether", "russia", "denmark", "sweeden", "iceland", "norway", "turkey", "hungary", "greek", "arab", "china", "coreen", "japan","croate","czech","poland"); function hhotelLang2Img(lang) { for(i = 0; i < FBLangCode.length; i++) { if (FBLangCode[i] == lang) break; } return FBLangImg[i]; } function hhotelLangSelector() { window.open('fastbooking/flags/langSelector.html', '', 'width=330,height=180'); } var langcodes = new Array("en", "uk", "fr", "france", "de", "germany", "es", "spain ", "pt", "portuguese", "it", "italy", "nl", "nether", "ja", "japan ", "ko", "coreen", "zh", "china", "ar", "arab", "ru", "russian", "tr", "turk", "el", "greek", "hu", "hungria", "da", "dansk", "sv", "svensk", "is", "islensk", "no", "norsk", "hr", "croate", "cs", "czech", "pl", "poland", "iw", "hebrew"); function selectLang() { if(navigator.appName == "Microsoft Internet Explorer") UL = navigator.userLanguage.substring(0, 2); else if(navigator.appName == "Netscape") UL = navigator.language; else return; for(i = 0; i < langcodes.length; i += 2) if(UL == langcodes[i]) break; lang = (i < langcodes.length) ? langcodes[i+1] : "uk"; hhotelShowLang(lang); } // Form: show arrival date function start() { var nbm = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ]; jour = 7; MD=new Date(); nday=MD.getDate(); aday=MD.getDay(); amois=MD.getMonth(); ayear=takeYear(MD); nday += jour; if(nday > nbm[amois]) { nday -= nbm[amois]; amois++; if(amois > 11) { ayear++; amois = 0; } } indexDay = nday-1; indexMois = amois; indexYear = ayear-2006; if(indexDay < 0 || indexDay > 30) indexDay = 0; if(indexMois < 0 || indexMois > 11) indexMois = 0; if(indexYear < 0 || indexYear > 1) indexDay = 0; document.idForm.fromday.selectedIndex = indexDay; document.idForm.frommonth.selectedIndex = indexMois; document.idForm.fromyear.selectedIndex = indexYear; } function takeYear(theDate) { x = theDate.getYear(); var y = x % 100; y += (y < 38) ? 2000 : 1900; return y; } //=============================================== function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";} if((g=MM_findObj(a))!=null && (d=MM_findObj(b))!=null){ if(g.p7Scroll){if((w=MM_findObj(g.p7Scroll))!=null){ ww=(document.layers)?w:w.style;ww.visibility="hidden";}} g.p7Scroll=b;dd=(document.layers)?d:d.style;dd.left=parseInt(x)+pa; dd.top=parseInt(y)+pa;dd.visibility="visible";g.p7sCycle=0; if(document.layers){g.p7sTop=g.clip.top;g.p7sBot=g.clip.bottom; g.p7sRight=g.clip.right;g.p7sLeft=g.clip.left;g.p7sStartTop=parseInt(y);g.p7sStartLeft=parseInt(x); }else if(g.style.clip){var tc=g.style.clip;var j=tc.indexOf("("); tc=tc.substring(j+1,tc.length-1);var tr=tc.split(" "); if(tc.length < 1){tr[0]=0;tr[3]=0;tr[2]=g.style.pixelHeight;tr[1]=g.style.pixelWidth;} g.p7sTop=parseInt(tr[0]);g.p7sRight=parseInt(tr[1]);g.p7sBot=parseInt(tr[2]); g.p7sLeft=parseInt(tr[3]);g.p7sStartTop=parseInt(y);g.p7sStartLeft=parseInt(x); }else{g.p7sTop=0;g.p7sRight=g.offsetWidth;g.p7sBot=g.offsetHeight; g.p7sLeft=0;g.p7sStartTop=parseInt(y);g.p7sStartLeft=parseInt(x);}} g.toMove=true; } function P7_moveScroll(co,md,op,dy,cy) { //v2.9 by PVII var g,d,dd,x,y,h,w,tt,ff,m=false,pa=""; op=parseInt(op);cy=parseInt(cy);dy=parseInt(dy); if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";} if((g=MM_findObj(co))==null){alert("co null");return;} if((d=MM_findObj(g.p7Scroll))==null){alert("p7scroll null");return;} var sp=parseInt(sp=g.P7Ssp),fr=parseInt(g.P7Sfr),ff=fr; if(op==2){g.p7sCycle=0;g.p7sCycDy=(dy>0)?dy:g.p7sCycDy;dy=0;op=3;} if(op==3){g.p7sCycle+=sp;ff=fr;if(parseInt(g.p7sCycle)>cy){ op=2;g.p7sCycle=0;ff=g.p7sCycDy;}}g.P7Sop=op;if(dy>0){ff=dy;} var ti="g.p7Magic=setTimeout(\"P7_moveScroll('"+co+"','"+md+"',"+op+",0,"+cy+")\","+ff+")"; if(op==2 || dy>0){clearTimeout(g.p7Magic);eval(ti);return;} dd=(document.layers)?d:d.style;x=parseInt(dd.left);y=parseInt(dd.top); if(document.all || document.getElementById){ h=parseInt(d.offsetHeight);w=parseInt(d.offsetWidth); if(!h){h=parseInt(d.style.pixelHeight);w=parseInt(d.style.pixelWidth);} }else if(document.layers){h=parseInt(d.clip.height);w=parseInt(d.clip.width);} var st=0,rStart=parseInt(g.p7sStartLeft),tStart=parseInt(g.p7sStartTop);g.p7sH=h;g.p7sW=w; if(md=="Down"){tt=y-sp;st=parseInt(g.p7sBot)-h-tStart; if(tStart<0 && tt=0 && ttrEnd){dd.top=rEnd+pa; }else if(tStart>=0 && tt>tStart){dd.top=tStart+pa;}else{dd.top=tt+pa;m=true;}} if(md=="Right"){tt=x-sp;st=parseInt(g.p7sRight)-w-rStart; if(rStart<0 && tt=0 && ttrEnd){dd.left=rEnd+pa; }else if (rStart>=0 && tt>rStart){dd.left=rStart+pa;}else{dd.left=tt+pa;m=true;}} if(m && g.toMove) {eval(ti);}else{if(g.P7Sflip==1){clearTimeout(g.p7Magic);var tj=0; eval("g.p7Magic=setTimeout(\"P7_runScroller('"+co+"','Reverse','Medium',0,0,0,1)\","+tj+")"); }else{if(op>0 && g.toMove){ g.p7sCycle=0;dd.top=g.p7sStartTop+pa;dd.left=g.p7sStartLeft+pa;eval(ti);}}} } function P7_runScroller(co,md,spd,op,dy,cy,flp) { //v2.9 by PVII var g,d,dd,rl=0;rt=0;pa='',sp=2,fr=10,slw=true,kl=true; if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";} if(navigator.userAgent.indexOf("NT")>-1 || navigator.userAgent.indexOf("Windows 2000")>-1 ){slw=false;} if((g=MM_findObj(co))!=null){if(g.p7Scroll){ if((d=MM_findObj(g.p7Scroll))!=null){ ; dd=(document.layers)?d:d.style; if(md=="Resume" && g.P7Sspd){spd=g.P7Sspd;md=g.P7Smd;op=g.P7Sop;dy=0;cy=g.P7Scy;flp=g.P7Sflip;kl=false;} if(md=="Reverse" && g.P7Sspd){spd=g.P7Sspd;md=g.P7Smd;op=g.P7Sop;flp=g.P7Sflip;dy=0;cy=g.P7Scy;kl=false;g.p7sCycle=0; if(g.P7Smd == "Down"){md="Up";if(g.P7Sop>0){g.p7sStartTop=g.p7sStartTop-g.p7sH;}} if(g.P7Smd == "Up"){md="Down";if(g.P7Sop>0){g.p7sStartTop=g.p7sStartTop+g.p7sH;}} if(g.P7Smd == "Left"){md="Right";if(g.P7Sop>0){g.p7sStartLeft=g.p7sStartLeft+g.p7sW;}} if(g.P7Smd == "Right"){md="Left";if(g.P7Sop>0){g.p7sStartLeft=g.p7sStartLeft-g.p7sW;}}} if(spd=="Slow"){sp=(slw)?2:1;fr=(slw)?40:30; }else if(spd=="Medium"){sp=(slw)?4:1;fr=(slw)?40:10; }else{sp=(slw)?8:4;fr=(slw)?40:10;} if(md=="Stop"){g.toMove=false;clearTimeout(g.p7Magic);}else if(md=="Reset"){ g.toMove=false;dd.top=g.p7sStartTop+pa;dd.left=g.p7sStartLeft+pa; }else{if(kl){g.P7Ssp=sp;g.P7Sfr=fr;}if(md=="Speed"){return;} g.toMove=true;clearTimeout(g.p7Magic); g.P7Smd=md;g.P7Sspd=spd;g.P7Sop=op;g.P7Sdy=dy;g.P7Scy=cy;g.P7Sflip=flp; eval("P7_moveScroll('"+co+"','"+md+"',"+op+","+dy+","+cy+")");}}}} } function MM_openBrWindow(theURL,winName,features) { //v2.0 pre=""; if (navigator.userAgent.indexOf("MSIE")==-1) {pre="webpages/";} features="left=20, top=20,"+features+", resizable=yes, toolbar=0, menubar=0, scrollbars=1"; window.open(pre+theURL,winName,features); } function resizeiframe() { x = document.all['bodytable']; h = x.scrollHeight+20; p =parent.document.all['picturearea']; w = p.scrollWidth; p.style.height=h } function resizeinitiframe() { x = document.all['bodytable']; h = 200 p =parent.document.all['picturearea']; w = p.scrollWidth; p.style.height=h z = document.all['p7table']; zz=document.all['p7s1content1']; zzz=document.all['p7scroller1'].p7sRight; if (z.scrollWidth>zzz) { zz.style.pixelWidth=z.scrollWidth;} else { zz.style.pixelWidth=zzz; } } function openreservations(lang){ opt = 'toolbar=0, scrollbars=1, resizable=1, width=800, height=600, top=0, left=0' formname='request'; if (lang=='it') {formname='richiesta'} url =location.protocol +'//'+location.host+'/customers/relaismonaco/prenotaz.nsf/'+formname+'?openform' window.open(url,'',opt) } function resizeimg(){ img= document.getElementById("imgid") w = img.width if (w>650) {img.width=650} } function resizewindow(){ img = document.getElementById("imgid") ww = img.width + 130 wh = img.height + 230 if (ww<820){ ww=820 } if (wh<480){ wh=480 } window.resizeTo(ww,wh) } function openwindow (url, title){ if (navigator.appName=='Microsoft Internet Explorer'){ window.open('../'+url, title,'toolbar=0, menubar=0, resizable=1, scrollbars=1, width=800, height=800, top=20, left=40'); }else{ window.open(url, title,'toolbar=0, menubar=0, resizable=1, scrollbars=1, width=800, height=800, top=20, left=40'); } }