



{"id":7213,"date":"2011-09-23T14:27:00","date_gmt":"2011-09-23T18:27:00","guid":{"rendered":"http:\/\/www.zadikim.net\/?p=7213"},"modified":"2011-11-09T13:21:04","modified_gmt":"2011-11-09T17:21:04","slug":"bvb","status":"publish","type":"post","link":"https:\/\/www.zadikim.net\/?p=7213","title":{"rendered":"\u05d8\u05d5\u05e4\u05e1 \u05d4\u05d6\u05de\u05e0\u05d4 \u05dc\u05d4\u05db\u05e0\u05e1\u05ea \u05d0\u05d5\u05e8\u05d7\u05d9\u05dd \/ \u05d1\u05d9\u05ea \u05de\u05dc\u05d5\u05df"},"content":{"rendered":"<p><!-- start copy sourcecode from here --><\/p>\n<div id=\"searchboxInc\">\n<form id=\"frm\" name=\"frm\" action=\"http:\/\/www.booking.com\/searchresults.html\" method=\"get\" target=\"_blank\" autocomplete=\"off\">\n<fieldset>\n<div id=\"destinationSearch\">\n<input type=\"hidden\" name=\"aid\" value=\"333327\" \/><br \/>\n<input type=\"hidden\" name=\"error_url\" value=\"http:\/\/www.booking.com\/?aid=333327;\" \/><br \/>\n<input type=\"hidden\" name=\"si\" value=\"ai,co,ci,re,di\" \/><br \/>\n<input type=\"hidden\" name=\"label\" value=\"\" \/><br \/>\n<input type=\"hidden\" name=\"lang\" value=\"he\" \/><br \/>\n<input type=\"hidden\" name=\"ifl\" value=\"\" \/><\/p>\n<p>&#x5D7;&#x5E4;&#x5E9; &#x5DE;&#x5DC;&#x5D5;&#x5E0;&#x5D5;&#x5EA;<\/p>\n<p><label for=\"destination\">&#x5D9;&#x5E2;&#x5D3;<\/label><br \/>\n<input \nclass=\"text\" type=\"text\" id=\"destination\" name=\"ss\" value=\"\" title=\"&#x5E2;&#x5D9;&#x5E8;, &#x5DE;&#x5D7;&#x5D5;&#x5D6;, &#x5DE;&#x5D3;&#x5D9;&#x5E0;&#x5D4;, &#x5E6;&#x5D9;&#x5D5;&#x5DF; &#x5D3;&#x5E8;&#x5DA;, &#x5DE;&#x5DC;&#x5D5;&#x5DF;, &#x5E8;&#x5D5;&#x5D1;&#x5E2;\"  autocomplete=\"off\" \/>\n<\/div>\n<div id=\"inout\">\n<div id=\"homein\">\n<h3>&#x5EA;&#x5D0;&#x5E8;&#x5D9;&#x5DA; &#x5E6;&#39;&#x5E7;-&#x5D0;&#x5D9;&#x5DF;<\/h3>\n<p><select id=\"b_checkin_day\" name=\"checkin_monthday\" onchange=\"checkDateOrder('frm', 'b_checkin_day', 'b_checkin_month', 'b_checkout_day', 'b_checkout_month') ; tickCheckBox('b_availcheck');\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><option value=\"11\">11<\/option><option value=\"12\">12<\/option><option value=\"13\">13<\/option><option value=\"14\">14<\/option><option value=\"15\">15<\/option><option value=\"16\">16<\/option><option value=\"17\">17<\/option><option value=\"18\">18<\/option><option value=\"19\">19<\/option><option value=\"20\">20<\/option><option value=\"21\">21<\/option><option value=\"22\">22<\/option><option value=\"23\">23<\/option><option value=\"24\">24<\/option><option value=\"25\">25<\/option><option value=\"26\">26<\/option><option value=\"27\">27<\/option><option value=\"28\">28<\/option><option value=\"29\">29<\/option><option value=\"30\">30<\/option><option value=\"31\">31<\/option><\/select><br \/>\n<select id=\"b_checkin_month\" name=\"checkin_year_month\" onchange=\"checkDateOrder('frm', 'b_checkin_day', 'b_checkin_month', 'b_checkout_day', 'b_checkout_month') ; tickCheckBox('b_availcheck');\"><br \/>\n<script language=\"Javascript\"> \nvar monthArray=new Array(\"&#x5D9;&#x5E0;&#x5D5;&#x5D0;&#x5E8;\",\"&#x5E4;&#x5D1;&#x5E8;&#x5D5;&#x5D0;&#x5E8;\",\"&#x5DE;&#x5E8;&#x5E5;\",\"&#x5D0;&#x5E4;&#x5E8;&#x5D9;&#x5DC;\",\"&#x5DE;&#x5D0;&#x5D9;\",\"&#x5D9;&#x5D5;&#x5E0;&#x5D9;\",\"&#x5D9;&#x5D5;&#x5DC;&#x5D9;\",\"&#x5D0;&#x5D5;&#x5D2;&#x5D5;&#x5E1;&#x5D8;\",\"&#x5E1;&#x5E4;&#x5D8;&#x5DE;&#x5D1;&#x5E8;\",\"&#x5D0;&#x5D5;&#x5E7;&#x5D8;&#x5D5;&#x5D1;&#x5E8;\",\"&#x5E0;&#x5D5;&#x5D1;&#x5DE;&#x5D1;&#x5E8;\",\"&#x5D3;&#x5E6;&#x5DE;&#x5D1;&#x5E8;\");\nvar today = new Date();\nvar month= today.getMonth();\nvar year = today.getFullYear()%100;\nvar fullYear=today.getFullYear();\nyear=new String(year);\nyear=addzero(year);\nvar countMonth=month;\nfor(var i=0;i<12;i++,countMonth++){\nif(countMonth%12==0 &#038;&#038; i>0){\ncountMonth=0;\nyear++;\nyear=new String(year);\nyear=addzero(year);\nfullYear++;\n}\ndocument.writeln(\"<option value=\\\"\"+fullYear+\"-\"+(countMonth+1)+\"\\\">\"+monthArray[countMonth]+\" '\"+year);\n}\n<\/script><br \/>\n<\/select><\/p>\n<p><a onclick=\"showCalendar(this, 'calendar', 'checkin');\" class=\"calender inlineJsRequired\" href=\"#calender\"><img loading=\"lazy\" src=\"http:\/\/r.bstatic.com\/static\/img\/button-calender.png\" width=\"21\" height=\"17\" alt=\"calendar\" title=\"&#x5E4;&#x5EA;&#x5D7;&#x5D5; &#x5DC;&#x5D5;&#x5D7; &#x5E9;&#x5E0;&#x5D4; &#x5D5;&#x5D1;&#x5D7;&#x5E8;&#x5D5; &#x5EA;&#x5D0;&#x5E8;&#x5D9;&#x5DA;\" \/><\/a><\/p>\n<\/div>\n<div id=\"homeout\">\n<h3>&#x5EA;&#x5D0;&#x5E8;&#x5D9;&#x5DA; &#x5E6;&#39;&#x5E7;-&#x5D0;&#x5D0;&#x5D5;&#x5D8;<\/h3>\n<p><select id=\"b_checkout_day\" name=\"checkout_monthday\" onchange=\"tickCheckBox('b_availcheck');\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><option value=\"11\">11<\/option><option value=\"12\">12<\/option><option value=\"13\">13<\/option><option value=\"14\">14<\/option><option value=\"15\">15<\/option><option value=\"16\">16<\/option><option value=\"17\">17<\/option><option value=\"18\">18<\/option><option value=\"19\">19<\/option><option value=\"20\">20<\/option><option value=\"21\">21<\/option><option value=\"22\">22<\/option><option value=\"23\">23<\/option><option value=\"24\">24<\/option><option value=\"25\">25<\/option><option value=\"26\">26<\/option><option value=\"27\">27<\/option><option value=\"28\">28<\/option><option value=\"29\">29<\/option><option value=\"30\">30<\/option><option value=\"31\">31<\/option><\/select><br \/>\n<select id=\"b_checkout_month\" name=\"checkout_year_month\" onchange=\"tickCheckBox('b_availcheck');\"><br \/>\n<script language=\"Javascript\">\nvar monthArray=new Array(\"&#x5D9;&#x5E0;&#x5D5;&#x5D0;&#x5E8;\",\"&#x5E4;&#x5D1;&#x5E8;&#x5D5;&#x5D0;&#x5E8;\",\"&#x5DE;&#x5E8;&#x5E5;\",\"&#x5D0;&#x5E4;&#x5E8;&#x5D9;&#x5DC;\",\"&#x5DE;&#x5D0;&#x5D9;\",\"&#x5D9;&#x5D5;&#x5E0;&#x5D9;\",\"&#x5D9;&#x5D5;&#x5DC;&#x5D9;\",\"&#x5D0;&#x5D5;&#x5D2;&#x5D5;&#x5E1;&#x5D8;\",\"&#x5E1;&#x5E4;&#x5D8;&#x5DE;&#x5D1;&#x5E8;\",\"&#x5D0;&#x5D5;&#x5E7;&#x5D8;&#x5D5;&#x5D1;&#x5E8;\",\"&#x5E0;&#x5D5;&#x5D1;&#x5DE;&#x5D1;&#x5E8;\",\"&#x5D3;&#x5E6;&#x5DE;&#x5D1;&#x5E8;\");\nvar today = new Date();\nvar month= today.getMonth();\nvar year = today.getFullYear()%100;\nvar fullYear=today.getFullYear();\nyear=new String(year);\nyear=addzero(year);\nvar countMonth=month;\nfor(var i=0;i<12;i++,countMonth++){\nif(countMonth%12==0 &#038;&#038; i>0){\ncountMonth=0;\nyear++;\nyear=new String(year);\nyear=addzero(year);\nfullYear++;\n}\ndocument.writeln(\"<option value=\\\"\"+fullYear+\"-\"+(countMonth+1)+\"\\\">\"+monthArray[countMonth]+\" '\"+year);\n}\n<\/script><br \/>\n<\/select><\/p>\n<p><a onclick=\"showCalendar(this, 'calendar', 'checkout');\" class=\"calender inlineJsRequired\" href=\"#calender\"><img loading=\"lazy\" src=\"http:\/\/r.bstatic.com\/static\/img\/button-calender.png\" width=\"21\" height=\"17\" alt=\"calendar\" title=\"&#x5E4;&#x5EA;&#x5D7;&#x5D5; &#x5DC;&#x5D5;&#x5D7; &#x5E9;&#x5E0;&#x5D4; &#x5D5;&#x5D1;&#x5D7;&#x5E8;&#x5D5; &#x5EA;&#x5D0;&#x5E8;&#x5D9;&#x5DA;\" \/><\/a><\/p>\n<\/div>\n<div class=\"avail\">\n<input id=\"availcheck\" type=\"checkbox\" name=\"idf\" value=\"on\" \/><br \/>\n<label id=\"labfor\" for=\"availcheck\"><br \/>\n\u05d0\u05d9\u05df \u05dc\u05d9 \u05ea\u05d0\u05e8\u05d9\u05db\u05d9\u05dd \u05de\u05d3\u05d5\u05d9\u05d9\u05e7\u05d9\u05dd<br \/>\n<\/label>\n<\/div>\n<\/div>\n<div class=\"but\">\n<button type=\"submit\">&#x5D7;&#x5D9;&#x5E4;&#x5D5;&#x5E9;<\/button>\n<\/div>\n<\/fieldset>\n<\/form>\n<p><script language=\"Javascript\">\nvar currentDate = new Date(); var currentYear = 1900 + currentDate.getYear();\nvar dailyMS = 24*60*60*1000;\nvar arrivalDate = new Date(currentDate.getTime());\nvar departureDate = new Date(currentDate.getTime() + 1*dailyMS);\nvar arrivalYear = 1900+arrivalDate.getYear();\nvar arrivalMonth = 1+arrivalDate.getMonth(); var arrivalDay = arrivalDate.getDate();\nvar departureYear = 1900+departureDate.getYear();\nvar departureMonth = 1+departureDate.getMonth(); var departureDay = departureDate.getDate();\nvar a=document.frm;\nif ((a.checkin_monthday.selectedIndex == 0) && (a.checkout_monthday.selectedIndex == 0)){\na.checkin_monthday.options[arrivalDay-1].selected = true;\na.checkout_monthday.options[departureDay-1].selected = true;\n}\nvar frm = document.getElementById('frm');\n\/\/ create date object from checkin values\n\/\/ set date to 12:00 to avoid problems with one\n\/\/ date being wintertime and the other summertime\nvar my = frm['b_checkin_month'].value.split(\"-\");\nvar ci = new Date (my[0], my[1]-1, frm['b_checkin_day'].value, 12, 0, 0, 0);\n\/\/ create date object from checkout values\nmy = frm['b_checkout_month'].value.split(\"-\");\nvar co = new Date (my[0], my[1]-1, frm['b_checkout_day'].value, 12, 0, 0, 0);\nif (ci >= co){\nco.setTime(ci.getTime() + 1000 * 60 * 60 * 24);\nfrm['b_checkout_day'].value = co.getDate();\nvar com = co.getMonth()+1;\nfrm['b_checkout_month'].value = co.getFullYear() + \"-\" + com;\n}\n<\/script>\n<\/div>\n<div id=\"calendar\"><\/div>\n<p><script type=\"text\/javascript\"><\/p>\n<p>var calendar = new Object();\nvar tr = new Object();\ntr.nextMonth = \"&#x5DC;&#x5D7;&#x5D5;&#x5D3;&#x5E9; &#x5D4;&#x5D1;&#x5D0;\";\ntr.prevMonth = \"&#x5DC;&#x5D7;&#x5D5;&#x5D3;&#x5E9; &#x5D4;&#x5E7;&#x5D5;&#x5D3;&#x5DD;\";\ntr.closeCalendar = \"&#x5E1;&#x5D2;&#x5D5;&#x5E8; &#x5DC;&#x5D5;&#x5D7; &#x5E9;&#x5E0;&#x5D4;\";\ntr.pressCtlD = \"&#x5DC;&#x5D4;&#x5D5;&#x5E1;&#x5E4;&#x5D4; &#x5DC;&#x5DE;&#x5D5;&#x5E2;&#x5D3;&#x5E4;&#x5D9;&#x5DD; &#x5DC;&#x5D7;&#x5E6;&#x5D5; &#x5E2;&#x5DC; ctrl+D &#x5D0;&#x5D5; &#x5D1;&#x5D7;&#x5E8;&#x5D5; &quot;&#x5DE;&#x5D5;&#x5E2;&#x5D3;&#x5E4;&#x5D9;&#x5DD;&quot; &gt; &#x5D4;&#x5D5;&#x5E1;&#x5E4;&#x5D4;  \";\ntr.pressCtlP = \"&#x5DC;&#x5D4;&#x5D3;&#x5E4;&#x5E1;&#x5D4;  &#x5DC;&#x5D7;&#x5E6;&#x5D5; ctrl+P &#x5D0;&#x5D5; &#x5D1;&#x5D7;&#x5E8;&#x5D5; &quot;&#x5E7;&#x5D5;&#x5D1;&#x5E5;&quot; &gt; &#x5D4;&#x5D3;&#x5E4;&#x5E1;\";\ntr.url = \"http:\/\/www.booking.com\/index.he.html?aid=333327;sid=f8aeca5186532782f0c1c5007cd6dc4f;tmpl=searchbox\";\ntr.title = \" &#x5D1;&#x5E8;&#x5D5;&#x5DB;&#x5D9;&#x5DD; &#x5D4;&#x5D1;&#x5D0;&#x5D9;&#x5DD; &#x5DC;-Booking.com\";\ntr.icons = \"http:\/\/q.bstatic.com\/static\/img\";\nvar months = ['&#x5D9;&#x5E0;&#x5D5;&#x5D0;&#x5E8;','&#x5E4;&#x5D1;&#x5E8;&#x5D5;&#x5D0;&#x5E8;','&#x5DE;&#x5E8;&#x5E5;','&#x5D0;&#x5E4;&#x5E8;&#x5D9;&#x5DC;','&#x5DE;&#x5D0;&#x5D9;','&#x5D9;&#x5D5;&#x5E0;&#x5D9;','&#x5D9;&#x5D5;&#x5DC;&#x5D9;','&#x5D0;&#x5D5;&#x5D2;&#x5D5;&#x5E1;&#x5D8;','&#x5E1;&#x5E4;&#x5D8;&#x5DE;&#x5D1;&#x5E8;','&#x5D0;&#x5D5;&#x5E7;&#x5D8;&#x5D5;&#x5D1;&#x5E8;','&#x5E0;&#x5D5;&#x5D1;&#x5DE;&#x5D1;&#x5E8;','&#x5D3;&#x5E6;&#x5DE;&#x5D1;&#x5E8;'];\nvar $t_hotels = '&#x5DE;&#x5DC;&#x5D5;&#x5E0;&#x5D5;&#x5EA;'.toLowerCase();\nvar $t_hotels_around = '&#x5DE;&#x5DC;&#x5D5;&#x5E0;&#x5D5;&#x5EA; &#x5D1;&#x5E1;&#x5D1;&#x5D9;&#x5D1;&#x5D4;'.toLowerCase().replace(\/ \/g, '&#160;');\nvar b_today = \"&#x5D4;&#x5D9;&#x5D5;&#x5DD;\";\nvar day = \"&#x5D9;&#x5D5;&#x5DD;\";<\/p>\n<p>Date.MILLISECONDS_PER_DAY = Date.prototype.MILLISECONDS_PER_DAY = 86400000;\nvar browser = navigator.appName\nvar version = navigator.appVersion\nvar startstring = parseFloat(version.indexOf(\"MSIE\"))+1\nvar browserverion = parseFloat(version.substring(startstring+4,startstring+7))\nvar isIE5 = ((browser==\"Microsoft Internet Explorer\") && (browserverion < 6))? true : false;\nvar isIE6 = ((browser==\"Microsoft Internet Explorer\") &#038;&#038; (browserverion > 5.5) && (browserverion < 6))? true : false;\n\/\/ Put placeholder in destination input box if empty, and remove when focused\nvar destination = document.getElementById('destination');\ndestination.onblur = function () {\nif (!this.value) {\nthis.value = this.getAttribute('title');\nthis.className += ' blur';\n}\n}\ndestination.onfocus = function () {\nif (this.value == this.getAttribute('title')) {\nthis.value = '';\nthis.className = this.className.replace(\/ blur\/, '');\n}\n}\ndestination.onblur();\nfunction tickCheckBox(el) {\nif (document.getElementById) {\nif (document.getElementById(el)) {\ndocument.getElementById(el).checked = false;\n}\n}\nreturn true;\n}\nDate.prototype.getTwoDigitMonth = function () {\n\/\/ Returns a two-digit string from '01' to '12' representing the month property of a Date object.\nvar month = (this.getMonth() + 1).toFixed().toString();\nif (month.length == 1) {\nmonth = '0' + month;\n}\nreturn month;\n};\nfunction checkDateOrder(me, ci_day, ci_month_year, co_day, co_month_year) {\nvar\nfrm = document.getElementById('frm'),\nmy,\nci = new Date( 0 ),\nco = new Date( 0 ),\ncom,\ntoday = new Date();\n\/\/ create date object from checkin values\n\/\/ set date to 12:00 to avoid problems with one\n\/\/ date being wintertime and the other summertime\nif ( frm[ci_day].value !== '0' )\n{\nci.setDate( frm[ci_day].value );\n}\nif ( frm[ci_month_year].value !== '0' )\n{\nmy = frm[ci_month_year].value.split( \"-\" );\nci.setFullYear( my[0] );\nci.setMonth( my[1] - 1 );\n}\nci.setHours( 12 );\nci.setMinutes( 0 );\nci.setSeconds( 0 );\n\/\/ create date object from checkout values\nif ( frm[co_day].value !== '0' )\n{\nco.setDate( frm[co_day].value );\n}\nif ( frm[co_month_year].value !== '0' )\n{\nmy = frm[co_month_year].value.split( \"-\" );\nco.setFullYear( my[0] );\nco.setMonth( my[1] - 1 );\n}\nco.setHours( 12 );\nco.setMinutes( 0 );\nco.setSeconds( 0 );\n\/\/ If the new checkin date's month does not match\n\/\/ the current value of the dropdown, then it is\n\/\/ because the month was incremented creating an\n\/\/ invalid date (e.g. February 31st).\n\/\/ We'll cycle back the checkin date until we're in\n\/\/ the correct month.\nif ( frm[ci_month_year].value !== '0' )\n{\nwhile ( ci.getMonth() != frm[ci_month_year].value.split( \"-\" )[1] - 1 )\n{\nci.setDate( ci.getDate() - 1 );\nfrm[ci_day].value = ci.getDate();\n}\nvar cim = ci.getMonth() + 1;\nfrm[ci_month_year].value = ci.getFullYear() + \"-\" + cim;\n}\n\/\/ if checkin date is at or after checkout date,\n\/\/ add a day full of milliseconds, and set the\n\/\/ selectbox values for checkout date to new value\nif ( ci >= co )\n{\nco.setTime( ci.getTime() + Date.prototype.MILLISECONDS_PER_DAY );\ncom = co.getMonth() + 1;\nif ( frm[ci_day].value !== '0' )\n{\nfrm[co_day].value = co.getDate();\n}\nif ( frm[ci_month_year].value !== '0' )\n{\nfrm[co_month_year].value = co.getFullYear() + \"-\" + com;\n}\n}\n}\nfunction updateDaySelect( me )\n{\n\/\/ 1-2 testing\nif ( !booking.env.b_simple_weekdays_for_js )\n{\nreturn;\n}\nvar frm = document.getElementById('frm');\nif ( frm.getAttribute( 'id' ) !== 'frm' && frm.className !== 'availForm' )\n{\nreturn;\n}\n\/\/ Check if we have all fields. If not, we are in the first stage\n\/\/ of the book process and should not auto-update selects since there\n\/\/ is only the check-in select and the amount of nights.\nif ( !frm.checkin_monthday || !frm.checkout_monthday || !frm.checkin_year_month || !frm.checkout_year_month )\n{\nreturn;\n}\nif ( frm.checkin_monthday.value === '0' && frm.checkout_monthday.value === '0' && frm.checkin_year_month.value === '0' && frm.checkout_year_month.value === '0' )\n{\nreturn;\n}\n\/\/ If the year-month fields have nonzero values, prepend the day of the week to each monthday in the check-in and check-out monthday Selects.\nvar\nci_d = frm.checkin_monthday,\nco_d = frm.checkout_monthday,\nci_my,\nco_my,\ntodaysDate;\n\/\/ If the form field has a nonzero value, use it;\nif ( frm.checkin_year_month.value !== '0' )\n{\nci_my = frm.checkin_year_month.value.split( \"-\" );\n}\nelse\n{\n\/\/ Use the current date value.\ntodaysDate = new Date();\nci_my = [ todaysDate.getFullYear(), todaysDate.getTwoDigitMonth() ];\n}\nif ( frm.checkout_year_month.value !== '0' )\n{\nco_my = frm.checkout_year_month.value.split( \"-\" );\n}\nelse\n{\ntodaysDate = new Date();\nco_my = [ todaysDate.getFullYear(), todaysDate.getTwoDigitMonth() ];\n}\nvar\nci_sel = Math.max( ci_d.selectedIndex, 0 ),\nco_sel = Math.max( co_d.selectedIndex, 0 ),\nci_sel_value = ci_d[ ci_sel ].value,\nco_sel_value = co_d[ co_sel ].value,\nmonthDays = [],\nopt,\ni;\nci_d.innerHTML = '';\nco_d.innerHTML = '';\nvar MonthdayPromptOption = function ()\n{\nthis.option = {\n\"_this\" : this,\n\"@selected\" : \"selected\",\n\"@class\" : \"day prompt site_experiment_encourage_date_entry_2\",\n\"@value\" : 0,\n\"#text\" : \"&#x5D9;&#x5D5;&#x5DD;\"\n};\n};\nif ( ci_sel_value === '0' )\n{\nbuildHtmlNode( new MonthdayPromptOption(), ci_d ).selected = true;\n}\nif ( co_sel_value === '0' )\n{\nbuildHtmlNode( new MonthdayPromptOption(), co_d ).selected = true;\n}\nfunction writeMonthdaysOptions( numberOfMonthdaysToShow, yearMonthSelectElement, monthDaysArray, monthDaysSelectElement, monthDaySelectValue )\n{\nvar i, optionElementInnerHTML, optionElement;\nfor ( i = 0; i < numberOfMonthdaysToShow; i++ )\n{\noptionElement = document.createElement( 'option' );\noptionElementInnerHTML = i + 1;\nif ( yearMonthSelectElement.value !== '0' )\n{\noptionElementInnerHTML = monthDaysArray[i] + ' ' + optionElementInnerHTML;\n}\noptionElement.innerHTML = optionElementInnerHTML;\noptionElement.value = ( i + 1 );\nif ( i > 0 && monthDaySelectValue == i + 1 )\n{\noptionElement.defaultSelected = optionElement.selected = true;\n}\nmonthDaysSelectElement.appendChild( optionElement );\n}\n}\n\/\/ Check-in month\nmonthDays = buildDaysForMonth( ci_my[0], ci_my[1] );\nvar numberOfMonthdaysToShow = 31;\nif ( frm.checkin_year_month.value !== '0' )\n{\nnumberOfMonthdaysToShow = monthDays.length;\n}\nwriteMonthdaysOptions( numberOfMonthdaysToShow, frm.checkin_year_month, monthDays, ci_d, ci_sel_value );\n\/\/ Checkout month\nmonthDays = buildDaysForMonth( co_my[0], co_my[1] );\nnumberOfMonthdaysToShow = 31;\nif ( frm.checkout_year_month.value !== '0' )\n{\nnumberOfMonthdaysToShow = monthDays.length;\n}\nwriteMonthdaysOptions( numberOfMonthdaysToShow, frm.checkout_year_month, monthDays, co_d, co_sel_value );\n\/\/ IE 6 exhibits a bug whereby the value of the monthday select always jumps to zero.\nif (isIE6) {\nci_d.value = ci_sel_value;\nco_d.value = co_sel_value;\n}\n}\nfunction buildDaysForMonth( year, month )\n{\n\/\/ Month index starts on 0(-11) in Date()-object\nvar monthDate = new Date( year, month - 1 );\nvar orgMonth = monthDate.getMonth();\nvar dayArray = [], weekDay;\nwhile ( monthDate.getMonth() == orgMonth )\n{\n\/\/ Week starts on Sunday in Date()-object\nweekDay = ( monthDate.getDay() == 0 ) ? 6 : ( monthDate.getDay() - 1 );\ndayArray.push( booking.env.b_simple_weekdays_for_js[weekDay] );\nmonthDate.setDate( monthDate.getDate() + 1 );\n}\nreturn dayArray;\n}\nfunction buildHtmlNode (elementsObject, targetNode, refChild)\n{\n\/*\nAccepts an object of elements where the key specifies the tagname unless prefixed by @, in which case it specifies an attribute of the parent, or when it is #cdata, in which case it specifies a CDATA child.\nhttp:\/\/xml.com\/pub\/a\/2006\/05\/31\/converting-between-xml-and-json.html\nThe big flaw now is the case <a><b\/><c\/><b\/><a\/>, which cannot be represented as a JS object. In that case interject an array of generic div or span elements.\n*\/\n\/\/ If we want to validate as JSON, we must make sure what we pass in is JSON, which it presently isnot.\n\/\/elementsObject = booking.json.validate(elementsObject);\nvar\nkey,\ncounter,\nfound,\nnewElement,\nnewNode;\nfor (key in elementsObject)\n{\nif (elementsObject.hasOwnProperty(key))\n{\nvar\nprefix = key.substring(0, 1),\nprimaryKey = key.substring(1);\nif (prefix != '_') \/\/ We\u7ab6\u51b3e on a non-DOM key, so skip.\n{\nif (prefix == '@') \/\/ Attribute\n{\nif (!targetNode.getAttribute(primaryKey))\n{\n\/\/ Perhaps extend this in the future to support multiple class values.\ntargetNode.setAttribute(primaryKey, elementsObject[key]);\n}\n}\nelse\n{\nif (prefix == '#') \/\/ Text or CDATA\n{\nif (primaryKey == 'text') \/\/ Text\n{\nfound = false;\nif (targetNode.childNodes && targetNode.childNodes.length > 0)\n{\n\/\/ Traverse text node children and append only if it isn\u7ab6\u51b2 already there.\ncounter = 0;\nwhile (counter < targetNode.childNodes.length &#038;&#038; !found)\n{\nif (targetNode.childNodes[counter].nodeType == Node.TEXT_NODE &#038;&#038; targetNode.childNodes[counter].nodeValue == elementsObject[key])\n{\nfound = true;\n}\ncounter++;\n}\n}\nif (!found)\n{\n\/\/ MGP 040209: Cope with strings split by linebreaks - need to insert <br \/> elements\nif ( elementsObject[key].indexOf(\"\\n\") == -1 )\n{\nnewNode = document.createTextNode(elementsObject[key]);\nif (refChild)\n{\ntargetNode.insertBefore(newNode, refChild);\n}\nelse\n{\ntargetNode.appendChild(newNode);\n}\n}\nelse\n{\n\/\/ Found some linebreaks - split the string into component parts\nvar newNodeParts = elementsObject[key].split(\"\\n\");\n\/\/ Loop through the parts, adding a linebreak after each one (except the last one)\nfor ( var i = 0; i < newNodeParts.length; i++ )\n{\n\/\/ Check for the existence of a star rating in the text node\nif ( newNodeParts[i].match(\/\\d\\*$\/) )\n{\n\/\/ Found a star rating - extract the star\nlastSpace = newNodeParts[i].lastIndexOf(\" \");\nnewNodeString = newNodeParts[i].substring( 0, lastSpace );\nstarImgSrc = 'http:\/\/q.bstatic.com\/static\/img\/icons\/stars\/' + newNodeParts[i].substr( lastSpace + 1, 1 ) + 'sterren-small.png';\n}\nelse\n{\nnewNodeString = newNodeParts[i];\nstarImgSrc = '';\n}\nnewNode = document.createTextNode(newNodeString);\nif (refChild)\n{\ntargetNode.insertBefore(newNode, refChild);\nif ( starImgSrc )\n{\nnewImg = document.createElement('img');\nnewImg.setAttribute('src', starImgSrc);\nnewImg.className = \"stars\";\ntargetNode.insertBefore(newImg, refChild);\n}\n}\nelse\n{\ntargetNode.appendChild(newNode);\nif ( starImgSrc )\n{\nnewImg = document.createElement('img');\nnewImg.setAttribute('src', starImgSrc);\nnewImg.className = \"stars\";\ntargetNode.appendChild(newImg);\n}\n}\nif ( i < newNodeParts.length - 1)\n{\n\/\/ Add a <br \/>\nnewBR = document.createElement(\"br\");\nif (refChild)\n{\ntargetNode.insertBefore(newBR, refChild);\n}\nelse\n{\ntargetNode.appendChild(newBR);\n}\n}\n}\n}\n}\n}\nelse\n{\nif (primaryKey == 'cdata') \/\/ CDATA\n{\ntargetNode.appendChild(document.createCDATASection(elementsObject[key]));\n}\n}\n}\nelse \/\/ Element\n{\n\/\/ If targetNode was passed into this function, append the new child to it\u7ab6\uff66\nif (targetNode)\n{\n\/\/ If elementsObject[key] is an array, we\u7ab6\u51a4l create an element of type key for each array member.\nif (elementsObject[key].length > 0)\n{\nfor (counter = 0; counter < elementsObject[key].length; counter++)\n{\nif (elementsObject[key][counter])\n{\nif (!elementsObject[key][counter]._node)\n{\nnewElement = document.createElement(key);\nelementsObject[key][counter]._node = newElement;\nvar r = counter + 1;\nwhile (r < elementsObject[key].length &#038;&#038; !refChild)\n{\nif (elementsObject[key][r])\n{\nrefChild = elementsObject[key][r]._node;\n}\nr++;\n}\nif (refChild)\n{\nnewNode = targetNode.insertBefore(\nelementsObject[key][counter]._node,\nrefChild);\n}\nelse\n{\nnewNode = targetNode.appendChild(\nelementsObject[key][counter]._node);\n}\narguments.callee(\nelementsObject[key][counter],\nnewNode);\nnewElement._elementTree = elementsObject[key][counter];\n}\nelse\n{\narguments.callee(\nelementsObject[key][counter],\nelementsObject[key][counter]._node);\n}\n}\n}\n}\nelse\n{\nif (elementsObject[key].length !== 0)\n{\nif (!elementsObject[key]._node)\n{\nnewElement = document.createElement(key);\nelementsObject[key]._node = newElement;\nif (refChild)\n{\nnewNode = targetNode.insertBefore(\nelementsObject[key]._node,\nrefChild);\n}\nelse\n{\nnewNode = targetNode.appendChild(\nelementsObject[key]._node);\n}\narguments.callee(\nelementsObject[key],\nnewNode);\nnewElement._elementTree = elementsObject;\n}\nelse\n{\narguments.callee(\nelementsObject[key],\nelementsObject[key]._node);\n}\n}\n}\n}\n\/\/ else create the new element as targetNode.\nelse\n{\nif (!elementsObject[key]._node)\n{\narguments.callee(elementsObject[key],\nelementsObject[key]._node = targetNode = document.createElement(key));\n}\nelse\n{\narguments.callee(elementsObject[key],\nelementsObject[key]._node);\n}\n}\n}\n}\n}\n}\n}\nreturn targetNode;\n};\n\n\/*extern DOM, calendar, dn, getChildImage, getDimensions, m, months, n, tr, y, checkDateOrder, d, booking.env.b_simple_weekdays, booking.env.b_simple_weekdays_for_js, i, tickCheckBox, updateDaySelect, booking, buildDaysForMonth, monthDaysArray *\/\n\/\/ showCalendar without requirements for unique id's\n\/\/\t@me\tDOMNode context node\n\/\/\t@calId\tString\tid of calendar node\n\/\/\t@dt\tString\t'checkin' or 'checkout' prefix\nvar td;\nfunction buildCal( y, m, d )\n{\nvar daysInMonth = [31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\/\/ Create today's date.\ntd = new Date();\nif ( !y )\n{\ny = td.getFullYear();\n}\nif ( !m )\n{\nm = td.getMonth() + 1;\n}\nif ( !d )\n{\nd = td.getDate;\n}\nvar dt = calendar.caldt;\nvar mDate = new Date( y, m - 1, 1 );\nvar firstMonthDay = mDate.getDay();\ndaysInMonth[1] = ( ( ( mDate.getFullYear() % 100 != 0 ) &#038;&#038; ( mDate.getFullYear() % 4 == 0 ) ) || ( mDate.getFullYear() % 400 == 0 ) ) ? 29 : 28;\nvar t = '\n\n<table class=\"caltable\" cellspacing=\"0\">\n<tr>';\nt += '<\/p>\n<td class=\"calheader\" colspan=\"7\" class=\"monthYear\">';\nif ( y == td.getFullYear() && m == td.getMonth() + 1 )\n{\nt += '<img loading=\"lazy\" class=\"calNoPrevMonth\" src=\"' + tr.icons + '\/transparent.png\" width=\"24\" height=\"24\" alt=\"' + tr.prevMonth + '\" \/>';\n}\nelse\n{\nt += '<a class=\"calPrevMonth\" href=\"\" onclick=\"prevMonth( ' + y + ',' + m + ' ); return false;\" title=\"' + tr.prevMonth + '\"><img loading=\"lazy\" src=\"' + tr.icons + '\/transparent.png\" width=\"24\" height=\"24\" alt=\"' + tr.prevMonth + '\" \/><\/a>';\n}\nt += '&nbsp;<select name=\"ym\" onchange=\"goYearMonth( this.options[this.selectedIndex].value );\">';\nvar mn = td.getMonth() + 1;\nvar yr = td.getFullYear();\nvar last_month = 0;\nfor ( n = 0; n <= 11; n++ )\n{\nt += '<option value=\"' + yr + '-' + mn + '\"';\nif ( mn == m &#038;&#038; yr == y )\n{\nt += ' selected=\"selected\"';\nlast_month = 1;\n}\nelse\n{\nlast_month = 0;\n}\nt += '>' + months[mn - 1] + ' ' + yr +'<\/option>';\nmn++;\nif ( mn > 12 )\n{\nmn = 1;\nyr++;\n}\n}\nt += ' <\/select>&nbsp;';\nif ( last_month == 1 )\n{\nt += '<img loading=\"lazy\" class=\"calNoNextMonth\" src=\"' + tr.icons + '\/transparent.png\" width=\"24\" height=\"24\" alt=\"' + tr.nextMonth + '\" \/>';\n}\nelse\n{\nt += '<a class=\"calNextMonth\" href=\"\" onclick=\"nextMonth( ' + y + ',' + m + ' ); return false;\" title=\"' + tr.nextMonth +'\"><img loading=\"lazy\" src=\"' + tr.icons + '\/transparent.png\" width=\"24\" height=\"24\" alt=\"' + tr.nextMonth + '\" \/><\/a>';\n}\nt += '<\/td>\n<\/tr>\n<p>';\nt += '<\/p>\n<tr class=\"dayNames\">';\nvar cl;\nfor ( dn = 0; dn < 7; dn++ )\n{\ncl = '';\nif ( ( dn % 7 == 5 ) || ( dn % 7 == 6 ) )\n{\ncl += ' weekend';\n}\nt += '\n\n<td class=\"' + cl + '\">' + booking.env.b_simple_weekdays[dn] + '<\/td>\n<p>';\n}\nt += '<\/tr>\n<tr class=\"days\">';\nfor ( i = 1; i <= 42; i++ )\n{\nvar x = i - ( firstMonthDay + 6 ) % 7;\nif ( x > daysInMonth[m - 1] || x < 1 )\n{\nx = '&nbsp;';\n}\ncl = '';\nvar href = 0;\nif ( ( i % 7 == 0 ) || ( i % 7 == 6 ) )\n{\ncl += ' weekend';\n}\nif ( x > 0 )\n{\nvar xDay = new Date( y, m - 1, x );\nif ( ( xDay.getFullYear() == y ) && ( xDay.getMonth() + 1 == m ) && ( xDay.getDate() == d ) )\n{\ncl += ' selected';\nhref = 1;\n}\nif ( ( xDay.getFullYear() == td.getFullYear() ) && ( xDay.getMonth() == td.getMonth() ) && ( xDay.getDate() == td.getDate() ) )\n{\ncl += ' today';\nhref = 1;\n}\nelse\n{\nif ( xDay > td )\n{\ncl += ' future';\nhref = 1;\n}\nelse\n{\nif ( xDay < td )\n{\ncl += ' past';\n}\n}\n}\n}\nt += '\n\n<td class=\"' + cl + '\">';\nif ( href )\n{\nt += '<a href=\"#\" onclick=\"pickDate( ' + y + ',' + m + ',' + x + ',\\'' + dt + '\\' ); return false;\">' + x + '<\/a>';\n}\nelse\n{\nt += x;\n}\nt += '<\/td>\n<p>';\nif ( ( ( i ) % 7 == 0 ) && ( i < 36 ) )\n{\nt += '<\/tr>\n<tr class=\"days\">';\n}\n}\nt += '<\/tr>\n<tr>\n<td colspan=\"7\"><a href=\"#\" onclick=\"closeCal(); return false;\">' + tr.closeCalendar + '<\/a><\/td>\n<\/tr>\n<\/table>\n<p>';\ndocument.getElementById( \"calendar\" ).innerHTML = t;\n}\nfunction showCalendar( me, calId, dt )\n{\ngetDimensions( me );\nif ( document.getElementById )\n{\nvar c = document.getElementById( calId );\nvar i = getChildImage( me );\nvar f = document.getElementById('frm');\ncalendar.cal = c;\ncalendar.caldt = dt;\ncalendar.calf = f;\nvar my = f[dt + '_year_month'].value.split( \"-\" );\ny = my[0];\nm = my[1];\nd = f[dt + '_monthday'].value;\n\/\/ Ensure y is nonzero so the pop-up calendar correctly figures out the past\/current\/future classes for each monthday.\nif ( y === '0' )\n{\ny = new Date().getFullYear();\n}\nbuildCal( y, m, d );\nvar box = getDimensions( i );\nvar\nleft = box.x,\ntop = ( box.y + i.offsetHeight );\nc.style.left = left + 'px';\nc.style.top = top + 'px';\nc.style.display = \"block\";\n}\n}\nfunction closeCal()\n{\ncalendar.cal.style.display = 'none';\n}\nfunction prevMonth( y, m )\n{\nif ( new Date( y, m - 1, 1 ) < td )\n{\nreturn;\n}\nif ( m > 1 )\n{\nm--;\n}\nelse\n{\nm = 12;\ny--;\n}\nbuildCal( y, m );\n}\n\/\/does this finction need to check for max month\/year?\nfunction nextMonth( y, m )\n{\nif ( m < 12 )\n{\nm++;\n}\nelse\n{\nm = 1;\ny++;\n}\nbuildCal( y, m );\n}\nfunction goYearMonth( ym )\n{\nvar ymlist = ym.split(\"-\");\nbuildCal( ymlist[0], ymlist[1] );\n}\nfunction pickDate( y, m, d, dt )\n{\n\/\/ set form values\nvar f = calendar.calf;\nvar dt = calendar.caldt;\nf[dt + '_year_month'].value = y + \"-\" + m;\nf[dt + '_monthday'].value = d;\ntickCheckBox( 'availcheck' );\nif ( dt == \"checkin\" )\n{\ncheckDateOrder( f, 'checkin_monthday', 'checkin_year_month', 'checkout_monthday', 'checkout_year_month' );\n}\ncloseCal();\nupdateDaySelect( f );\n}\nfunction initDaySelect()\n{\nvar forms = document.getElementsByTagName( 'form' );\nfor ( var i = 0; i < forms.length; i++ )\n{\nif ( forms[i].checkin_monthday )\n{\nupdateDaySelect( forms[i] );\n}\n}\n}\nfunction updateDaySelect( me )\n{\n\/\/ 1-2 testing\nif ( !booking.env.b_simple_weekdays_for_js )\n{\nreturn;\n}\nvar frm = document.getElementById('frm');\nif ( frm.getAttribute( 'id' ) !== 'frm' &#038;&#038; frm.className !== 'availForm' )\n{\nreturn;\n}\n\/\/ Check if we have all fields. If not, we are in the first stage\n\/\/ of the book process and should not auto-update selects since there\n\/\/ is only the check-in select and the amount of nights.\nif ( !frm.checkin_monthday || !frm.checkout_monthday || !frm.checkin_year_month || !frm.checkout_year_month )\n{\nreturn;\n}\nif ( frm.checkin_monthday.value === '0' &#038;&#038; frm.checkout_monthday.value === '0' &#038;&#038; frm.checkin_year_month.value === '0' &#038;&#038; frm.checkout_year_month.value === '0' )\n{\nreturn;\n}\n\/\/ If the year-month fields have nonzero values, prepend the day of the week to each monthday in the check-in and check-out monthday Selects.\nvar\nci_d = frm.checkin_monthday,\nco_d = frm.checkout_monthday,\nci_my,\nco_my,\ntodaysDate;\n\/\/ If the form field has a nonzero value, use it;\nif ( frm.checkin_year_month.value !== '0' )\n{\nci_my = frm.checkin_year_month.value.split( \"-\" );\n}\nelse\n{\n\/\/ Use the current date value.\ntodaysDate = new Date();\nci_my = [ todaysDate.getFullYear(), todaysDate.getTwoDigitMonth() ];\n}\nif ( frm.checkout_year_month.value !== '0' )\n{\nco_my = frm.checkout_year_month.value.split( \"-\" );\n}\nelse\n{\ntodaysDate = new Date();\nco_my = [ todaysDate.getFullYear(), todaysDate.getTwoDigitMonth() ];\n}\nvar\nci_sel = Math.max( ci_d.selectedIndex, 0 ),\nco_sel = Math.max( co_d.selectedIndex, 0 ),\nci_sel_value = ci_d[ ci_sel ].value,\nco_sel_value = co_d[ co_sel ].value,\nmonthDays = [],\nopt,\ni;\nci_d.innerHTML = '';\nco_d.innerHTML = '';\n\/\/ Build the Day\/Month prompt Options if the monthday values aren't already set or, if they are set, they are nonzero; and if the client isn't IE 5. This condition mimics the TMPL_IF in datebox.inc\/div#avail (except for the inclusion here of IE5).\nvar MonthdayPromptOption = function ()\n{\nthis.option = {\n\"_this\" : this,\n\"@selected\" : \"selected\",\n\"@class\" : \"day prompt site_experiment_encourage_date_entry_2\",\n\"@value\" : 0,\n\"#text\" : day\n};\n};\nif ( ci_sel_value === '0' )\n{\nbuildHtmlNode( new MonthdayPromptOption(), ci_d ).selected = true;\n}\nif ( co_sel_value === '0' )\n{\nbuildHtmlNode( new MonthdayPromptOption(), co_d ).selected = true;\n}\nfunction writeMonthdaysOptions( numberOfMonthdaysToShow, yearMonthSelectElement, monthDaysArray, monthDaysSelectElement, monthDaySelectValue )\n{\nvar i, optionElementInnerHTML, optionElement;\nfor ( i = 0; i < numberOfMonthdaysToShow; i++ )\n{\noptionElement = document.createElement( 'option' );\noptionElementInnerHTML = i + 1;\nif ( yearMonthSelectElement.value !== '0' )\n{\noptionElementInnerHTML = monthDaysArray[i] + ' ' + optionElementInnerHTML;\n}\noptionElement.innerHTML = optionElementInnerHTML;\noptionElement.value = ( i + 1 );\nif ( i > 0 && monthDaySelectValue == i + 1 )\n{\noptionElement.defaultSelected = optionElement.selected = true;\n}\nmonthDaysSelectElement.appendChild( optionElement );\n}\n}\n\/\/ Check-in month\nmonthDays = buildDaysForMonth( ci_my[0], ci_my[1] );\nvar numberOfMonthdaysToShow = 31;\nif ( frm.checkin_year_month.value !== '0' )\n{\nnumberOfMonthdaysToShow = monthDays.length;\n}\nwriteMonthdaysOptions( numberOfMonthdaysToShow, frm.checkin_year_month, monthDays, ci_d, ci_sel_value );\n\/\/ Checkout month\nmonthDays = buildDaysForMonth( co_my[0], co_my[1] );\nnumberOfMonthdaysToShow = 31;\nif ( frm.checkout_year_month.value !== '0' )\n{\nnumberOfMonthdaysToShow = monthDays.length;\n}\nwriteMonthdaysOptions( numberOfMonthdaysToShow, frm.checkout_year_month, monthDays, co_d, co_sel_value );\n\/\/ IE 6 exhibits a bug whereby the value of the monthday select always jumps to zero.\nif (isIE6) {\nci_d.value = ci_sel_value;\nco_d.value = co_sel_value;\n}\n}\nfunction buildDaysForMonth( year, month )\n{\n\/\/ Month index starts on 0(-11) in Date()-object\nvar monthDate = new Date( year, month - 1 );\nvar orgMonth = monthDate.getMonth();\nvar dayArray = [], weekDay;\nwhile ( monthDate.getMonth() == orgMonth )\n{\n\/\/ Week starts on Sunday in Date()-object\nweekDay = ( monthDate.getDay() == 0 ) ? 6 : ( monthDate.getDay() - 1 );\ndayArray.push( booking.env.b_simple_weekdays_for_js[weekDay] );\nmonthDate.setDate( monthDate.getDate() + 1 );\n}\nreturn dayArray;\n}\n\/\/ Hides \"Available rooms\" and shows date input for stay.\n\/\/ This currently works without unique id's under the assumption that\n\/\/ the two (or more) divs containing the different \"views\" are in the same container.\nfunction switchDateStack(me, page) {\nvar stackPage = me;\nvar testMe = me.parentNode;\ntry {\nwhile (testMe.nodeName != 'div') {\nstackPage = testMe;\ntestMe = testMe.parentNode;\n}\n} catch(e) {}\nvar stackCount = 0;\nwhile ( stackPage ) {\nif ( stackPage.nodeName.toLowerCase() == 'div' ) {\nstackCount++;\nif ( stackCount == page ) {\nstackPage.style.display = 'block';\n} else {\nstackPage.style.display = 'none';\n}\n}\nstackPage = stackPage.nextSibling;\n}\n}\n\/\/ Searches children to find image\nfunction getChildImage( contextElm )\n{\ncontextElm = contextElm.firstChild;\nwhile ( contextElm.nodeName.toLowerCase() != 'img' && contextElm.nextSibling )\n{\ncontextElm = contextElm.nextSibling;\n}\nreturn contextElm;\n}\n\/\/ Getting element dimensions\nfunction getDimensions( elm ) {\nvar box = { x:0, y:0, w:0, h:0 };\nif(document.getBoxObjectFor) {\nvar boxRef = document.getBoxObjectFor(elm);\nbox.x = boxRef.x;\nbox.y = boxRef.y;\nbox.w = boxRef.width;\nbox.h = boxRef.height;\n}\nelse if(elm.getBoundingClientRect) {\nvar boxRef = elm.getBoundingClientRect();\nbox.x = boxRef.left;\nbox.y = boxRef.top;\nbox.w = (boxRef.right - boxRef.left);\nbox.h = (boxRef.bottom - boxRef.top);\nif(document.compatMode && document.compatMode != 'BackCompat') {\n\/\/ IE6\/compliance mode\nbox.x += document.documentElement.scrollLeft - 2;\nbox.y += document.documentElement.scrollTop - 2;\n}\nelse if(!isIE5) {\n\/\/ IE5.5\nbox.x += document.body.scrollLeft - 2;\nbox.y += document.body.scrollTop - 2;\n}\n}\nelse {\n\/\/ No known box information available, walking\n\/\/ manually through offsetParents to calculate x\/y coordinates\nbox.w = elm.offsetWidth;\nbox.h = elm.offsetHeight;\nwhile(elm) {\nbox.x += elm.offsetLeft;\nbox.y += elm.offsetTop;\nif(elm.offsetParent) \/\/ Required for Safari 1.3 :(\nelm = elm.offsetParent;\nelse\nbreak;\n}\n}\nvar cc;\nif(cc = document.getElementById('bodyconstraint'))\nbox.x -= cc.offsetLeft;\nreturn box;\n}<\/p>\n<p><\/script><br \/>\n<!-- end copy sourcecode until here --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u05d8\u05d5\u05e4\u05e1 \u05d4\u05d6\u05de\u05e0\u05d4 \u05de\u05d4\u05db\u05e0\u05e1\u05ea \u05d0\u05d5\u05e8\u05d7\u05d9\u05dd &#8211; \u05d1\u05d9\u05ea \u05de\u05dc\u05d5\u05df \u05d1\u05e1\u05de\u05d5\u05da \u05dc\u05de\u05e7\u05d5\u05de\u05d5\u05ea \u05d4\u05e7\u05d3\u05d5\u05e9\u05d9\u05dd \u05e9\u05dd \u05d0\u05ea\u05dd \u05e9\u05d5\u05d4\u05d9\u05dd<\/p>\n","protected":false},"author":1,"featured_media":12899,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[9],"tags":[],"jetpack_featured_media_url":"https:\/\/www.zadikim.net\/wp-content\/uploads\/button-calender.png","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"description\" content=\"\u05de\u05d9\u05d3\u05e2 \u05d5\u05e4\u05e8\u05d8\u05d9\u05dd \u05d0\u05d5\u05d3\u05d5\u05ea \u05d8\u05d5\u05e4\u05e1 \u05d4\u05d6\u05de\u05e0\u05d4 \u05de\u05d4\u05db\u05e0\u05e1\u05ea \u05d0\u05d5\u05e8\u05d7\u05d9\u05dd - \u05d1\u05d9\u05ea \u05de\u05dc\u05d5\u05df \u05d1\u05e1\u05de\u05d5\u05da \u05dc\u05de\u05e7\u05d5\u05de\u05d5\u05ea \u05d4\u05e7\u05d3\u05d5\u05e9\u05d9\u05dd \u05e9\u05dd \u05d0\u05ea\u05dd \u05e9\u05d5\u05d4\u05d9\u05dd\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.zadikim.net\/?p=7213\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&raquo; \u05e9\u05d9\u05e8\u05d5\u05ea \u05dc\u05e6\u05d9\u05d1\u05d5\u05e8\u202c &raquo; \u05d8\u05d5\u05e4\u05e1 \u05d4\u05d6\u05de\u05e0\u05d4 \u05dc\u05d4\u05db\u05e0\u05e1\u05ea \u05d0\u05d5\u05e8\u05d7\u05d9\u05dd \/ \u05d1\u05d9\u05ea \u05de\u05dc\u05d5\u05df &raquo;\" \/>\n<meta property=\"og:description\" content=\"\u05de\u05d9\u05d3\u05e2 \u05d5\u05e4\u05e8\u05d8\u05d9\u05dd \u05d0\u05d5\u05d3\u05d5\u05ea \u05d8\u05d5\u05e4\u05e1 \u05d4\u05d6\u05de\u05e0\u05d4 \u05de\u05d4\u05db\u05e0\u05e1\u05ea \u05d0\u05d5\u05e8\u05d7\u05d9\u05dd - \u05d1\u05d9\u05ea \u05de\u05dc\u05d5\u05df \u05d1\u05e1\u05de\u05d5\u05da \u05dc\u05de\u05e7\u05d5\u05de\u05d5\u05ea \u05d4\u05e7\u05d3\u05d5\u05e9\u05d9\u05dd \u05e9\u05dd \u05d0\u05ea\u05dd \u05e9\u05d5\u05d4\u05d9\u05dd\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.zadikim.net\/?p=7213\" \/>\n<meta property=\"og:site_name\" content=\"\u05d0\u05e8\u05d2\u05d5\u05df \u05e7\u05d1\u05e8\u05d9 \u05e6\u05d3\u05d9\u05e7\u05d9\u05dd \u05de\u05ea\u05e2\u05e1\u05e7 \u05d1\u05db\u05dc \u05d4\u05e7\u05e9\u05d5\u05e8 \u05dc- |\u05e7\u05d1\u05e8\u05d9 \u05e6\u05d3\u05d9\u05e7\u05d9\u05dd|\u05de\u05e7\u05d5\u05de\u05d5\u05ea \u05d4\u05e7\u05d3\u05d5\u05e9\u05d9\u05dd|\u05d1\u05ea\u05d9 \u05e2\u05dc\u05de\u05d9\u05df|\u05d1\u05ea\u05d9 \u05db\u05e0\u05e1\u05ea \u05d1\u05d2\u05d5\u05dc\u05d4\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/zadikim\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-23T18:27:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-11-09T17:21:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.zadikim.net\/wp-content\/uploads\/button-calender.png\" \/>\n\t<meta property=\"og:image:width\" content=\"21\" \/>\n\t<meta property=\"og:image:height\" content=\"17\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@zadikim\" \/>\n<meta name=\"twitter:site\" content=\"@zadikim\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.zadikim.net\/#website\",\"url\":\"https:\/\/www.zadikim.net\/\",\"name\":\"\\u05d0\\u05e8\\u05d2\\u05d5\\u05df \\u05e7\\u05d1\\u05e8\\u05d9 \\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd \\u05de\\u05ea\\u05e2\\u05e1\\u05e7 \\u05d1\\u05db\\u05dc \\u05d4\\u05e7\\u05e9\\u05d5\\u05e8 \\u05dc- |\\u05e7\\u05d1\\u05e8\\u05d9 \\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd|\\u05de\\u05e7\\u05d5\\u05de\\u05d5\\u05ea \\u05d4\\u05e7\\u05d3\\u05d5\\u05e9\\u05d9\\u05dd|\\u05d1\\u05ea\\u05d9 \\u05e2\\u05dc\\u05de\\u05d9\\u05df|\\u05d1\\u05ea\\u05d9 \\u05db\\u05e0\\u05e1\\u05ea \\u05d1\\u05d2\\u05d5\\u05dc\\u05d4\",\"description\":\"\\u05d0\\u05e8\\u05d2\\u05d5\\u05df \\u05e7\\u05d1\\u05e8\\u05d9 \\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd \\u05de\\u05ea\\u05e2\\u05e1\\u05e7 \\u05d1\\u05db\\u05dc \\u05d4\\u05e7\\u05e9\\u05d5\\u05e8 \\u05dc\\u05e7\\u05d1\\u05e8\\u05d9 \\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd, \\u05d7\\u05d3\\u05e9\\u05d5\\u05ea \\u05d1\\u05db\\u05dc \\u05d4\\u05e7\\u05e9\\u05d5\\u05e8 \\u05dc\\u05d1\\u05ea\\u05d9 \\u05e7\\u05d1\\u05e8\\u05d5\\u05ea, \\u05d1\\u05ea\\u05d9 \\u05db\\u05e0\\u05e1\\u05ea \\u05d1\\u05d2\\u05d5\\u05dc\\u05d4, \\u05e7\\u05d1\\u05e8\\u05d9 \\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd, \\u05d5\\u05db\\u05d5&#039;\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.zadikim.net\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/www.zadikim.net\/?p=7213#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.zadikim.net\/wp-content\/uploads\/button-calender.png\",\"width\":21,\"height\":17},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.zadikim.net\/?p=7213#webpage\",\"url\":\"http:\/\/www.zadikim.net\/?p=7213\",\"name\":\"&raquo; \\u05e9\\u05d9\\u05e8\\u05d5\\u05ea \\u05dc\\u05e6\\u05d9\\u05d1\\u05d5\\u05e8\\u202c &raquo; \\u05d8\\u05d5\\u05e4\\u05e1 \\u05d4\\u05d6\\u05de\\u05e0\\u05d4 \\u05dc\\u05d4\\u05db\\u05e0\\u05e1\\u05ea \\u05d0\\u05d5\\u05e8\\u05d7\\u05d9\\u05dd \/ \\u05d1\\u05d9\\u05ea \\u05de\\u05dc\\u05d5\\u05df &raquo;\",\"isPartOf\":{\"@id\":\"https:\/\/www.zadikim.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.zadikim.net\/?p=7213#primaryimage\"},\"datePublished\":\"2011-09-23T18:27:00+00:00\",\"dateModified\":\"2011-11-09T17:21:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.zadikim.net\/#\/schema\/person\/bddafd99ddafe4892fb533fc277dbacc\"},\"description\":\"\\u05de\\u05d9\\u05d3\\u05e2 \\u05d5\\u05e4\\u05e8\\u05d8\\u05d9\\u05dd \\u05d0\\u05d5\\u05d3\\u05d5\\u05ea \\u05d8\\u05d5\\u05e4\\u05e1 \\u05d4\\u05d6\\u05de\\u05e0\\u05d4 \\u05de\\u05d4\\u05db\\u05e0\\u05e1\\u05ea \\u05d0\\u05d5\\u05e8\\u05d7\\u05d9\\u05dd - \\u05d1\\u05d9\\u05ea \\u05de\\u05dc\\u05d5\\u05df \\u05d1\\u05e1\\u05de\\u05d5\\u05da \\u05dc\\u05de\\u05e7\\u05d5\\u05de\\u05d5\\u05ea \\u05d4\\u05e7\\u05d3\\u05d5\\u05e9\\u05d9\\u05dd \\u05e9\\u05dd \\u05d0\\u05ea\\u05dd \\u05e9\\u05d5\\u05d4\\u05d9\\u05dd\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.zadikim.net\/?p=7213\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.zadikim.net\/#\/schema\/person\/bddafd99ddafe4892fb533fc277dbacc\",\"name\":\"\\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd.\\u05e0\\u05d8\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.zadikim.net\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a620cde32c426d67e361bc40d508239b?s=96&d=mm&r=g\",\"caption\":\"\\u05e6\\u05d3\\u05d9\\u05e7\\u05d9\\u05dd.\\u05e0\\u05d8\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/posts\/7213"}],"collection":[{"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7213"}],"version-history":[{"count":35,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/posts\/7213\/revisions"}],"predecessor-version":[{"id":7258,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/posts\/7213\/revisions\/7258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=\/wp\/v2\/media\/12899"}],"wp:attachment":[{"href":"https:\/\/www.zadikim.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zadikim.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}