var deep01=0;function show_module_menu(country_id,parent_id_div,act,root){if(country_id==0){return false}url=base_url()+"ajax.php?act="+act+"&id="+country_id+"&id_div="+parent_id_div;var result=HTTPGet(url);if(result.length){$(parent_id_div).style.display="inline";$(parent_id_div).style.fontSize="12px";$(parent_id_div).style.width=(root*215+10)+"px";if(root>deep01){var objdiv=Create_element("div",$(parent_id_div),new Array("id","taxanomy_dep"+root,"style","float:right;width:210px;"))}else{if(root==deep01){var objdiv=$("taxanomy_dep"+root)}else{if(root<deep01){for(i=deep01;i>=root;i--){Remove_Div("taxanomy_dep"+i,parent_id_div)}var objdiv=Create_element("div",$(parent_id_div),new Array("id","taxanomy_dep"+root,"width","210","style","float:right;width:210px;"))}}}objdiv.style.styleFloat="right";objdiv.style.width="215px";objdiv.innerHTML=result;deep01=root}else{$("taxanomy_dep"+root).innerHTML=""}return true}var deep=0;function show_menu(country_id,parent_id_div,act,root){if(country_id==0){return false}url=base_url()+"ajax.php?act="+act+"&id="+country_id;var result=HTTPGet(url);if(result.length){$(parent_id_div).style.display="inline";$(parent_id_div).style.fontSize="12px";$(parent_id_div).style.width=(root*215+10)+"px";if(root>deep){var objdiv=Create_element("div",$(parent_id_div),new Array("id","taxanomy_dep"+root,"style","float:right;width:210px;"))}else{if(root==deep){var objdiv=$("taxanomy_dep"+root)}else{if(root<deep){for(i=deep;i>=root;i--){Remove_Div("taxanomy_dep"+i,parent_id_div)}var objdiv=Create_element("div",$(parent_id_div),new Array("id","taxanomy_dep"+root,"width","210","style","float:right;width:210px;"))}}}objdiv.style.styleFloat="right";objdiv.style.width="215px";objdiv.innerHTML=result;deep=root}else{$("taxanomy_dep"+root).innerHTML=""}return true}function just_close_m_bigger(id){var m_num=id.substr(id.length-1,id.length);if(m_num=="m"){m_num=0}m_num=(parseFloat(m_num)+1);for(i=m_num;i<7;i++){if($("m"+i)){$("m"+i).innerHTML=""}}}function close_m_bigger_this(id){var m_num=id.substr(id.length-1,id.length);if(m_num=="m"){m_num=0}var did;for(i=m_num;i>=0;i--){if(i==0){did="edit-parent1"}else{did="mm"+i}if($(did).value>0){save2value("edit-parent",$(did).value);break}}m_num=(parseFloat(m_num)+1);for(i=m_num;i<7;i++){if($("m"+i)){$("m"+i).innerHTML=""}}}var str=0;function show_easy_menu(country_id,id,act,sel,nid){if(!sel){sel=0}if(!nid){nid=0}if((nid)&&(country_id==nid)){return false}url=base_url()+"ajax.php?act="+act+"&id="+country_id+"&id_div="+id+"&sel="+sel+"&nid="+nid;var result=HTTPGet(url);if($(id)){$(id).innerHTML=result}return true}function save2value(id,val,force){if(!force){force=0}if((val!=0)||(force)){$(id).value=val}}function delete_geo_menu(mid){if(confirm("Sure want delete menu "+mid)){window.location="/he/admin/menu_location/menu/delete/"+mid;return true}else{return false}}function delete_menu(mid){if(confirm("Sure want delete menu "+mid)){window.location="/he/admin/menu/menu/delete/"+mid;return true}else{return false}}var dep=0;function GetSubCat(id_element,parent_id,root){url=base_url()+"ajax.php?act=view_subthems&id="+id_element;var result=HTTPGet(url);if(result.length){$("conteiner_taxanometry").style.width=(root*215+445)+"px";$(parent_id).style.display="inline";$(parent_id).style.fontSize="12px";$(parent_id).style.width=(root*215+10)+"px";var parent_tag=Getparenttag($("taxonomy_href"+id_element),3);var row_tag=Getparenttag($("taxonomy_href"+id_element),2);MakeColorElements(parent_tag,row_tag);if(root>dep){var objdiv=Create_element("div",$(parent_id),new Array("id","taxanomy_dep"+root,"style","float:right;width:210px;"))}else{if(root==dep){var objdiv=$("taxanomy_dep"+root)}else{if(root<dep){for(i=dep;i>=root;i--){Remove_Div("taxanomy_dep"+i,parent_id)}var objdiv=Create_element("div",$(parent_id),new Array("id","taxanomy_dep"+root,"width","210","style","float:right;width:210px;"))}}}objdiv.style.styleFloat="right";objdiv.style.width="215px";objdiv.innerHTML=result;dep=root}else{$("taxanomy_dep"+root).innerHTML=""}}function MakeColorElements(prentelement,row_tag){var theTable=prentelement;var count_row=theTable.rows.length-1;for(var x=count_row;x>0;x--){theTable.rows[x].style.backgroundColor="#EEEEEE"}row_tag.style.backgroundColor="#8BAFEE"}document.getElementsByClassName=function(cl){var retnode=[];var myclass=new RegExp("\\b"+cl+"\\b");var elem=this.getElementsByTagName("*");for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes)){retnode.push(elem[i])}}return retnode};var last_dep=0;var what_action=0;function LoadDinamicSelect(vocabulary_id,t_id,funcdepth,flag){last_dep=funcdepth;what_action=flag;$("edit-parent").value=t_id;url=base_url()+"ajax.php?act=taxanomy_select_tag&vid="+vocabulary_id+"&tid="+t_id+"&do="+what_action;var result=HTTPGet(url);$("children_select").innerHTML=result}function MakeDinamicSelect(vocabulary_id,t_id){url=base_url()+"ajax.php?act=taxanomy_change_tag&vid="+vocabulary_id+"&tid="+t_id+"&depth="+last_dep+"&do="+what_action;var result=HTTPGet(url);$("children_select").innerHTML="";$("children_select").innerHTML=result;$("edit-parent").value=t_id}function check_checkbox_menu(id){if(id.checked){if(confirm("בטוח לבנות תפרית אם אוטו אב?")){}else{id.checked=false}}}function choise_maps_static(map_id,template_id){if(map_id>0){window.open("/maps_static.php?map_id="+map_id+"&temp_id="+template_id,"maps","width=600,height=400,resizable=1,scrollbars=1");return true}else{return false}}function Showlocation(id,selected_value,id1,lable,parent,flg){if(!parent){parent=0}if(!flg){flg=""}if(parent){url=base_url()+"ajax.php?act=view_location&id="+selected_value+"&lab="+lable+"&parent="+parent}else{url=base_url()+"ajax.php?act=view_location&id="+selected_value+"&lab="+lable}if(flg.length>0){url+="&flg="+flg}if(selected_value){var result=HTTPGet(url);var ch_location1=$("search_continent").options[$("search_continent").selectedIndex].value}if(result.length){switch(lable){case 1:$("search_city").options[0].selected=true;$("search_city").disabled=true;$("festival_search3").innerHTML="<select id='search_city1' style='display:none;'><option value='0'></option></select>";break;case 2:$("festival_search3").innerHTML="<select id='search_city1' style='display:none;'><option value='0'></option></select>";break}$(id1).innerHTML=result}else{$(id).disabled=true;$(id).options[0].selected=true;$("search_city").disabled=true;$("search_city").options[0].selected=true;$("search_city1").disabled=true;$("search_city1").options[0].selected=true}}function showlocation_ski(id,selected_value,id1,lable,parent,flg){if(!parent){parent=0}if(!flg){flg=""}if(parent){url=base_url()+"ajax.php?act=view_location_ski&id="+selected_value+"&lab="+lable+"&parent="+parent}else{url=base_url()+"ajax.php?act=view_location_ski&id="+selected_value+"&lab="+lable}if(flg.length>0){url+="&flg="+flg}if(selected_value){var result=HTTPGet(url);var ch_location1=$("search_continent").options[$("search_continent").selectedIndex].value}if(result.length){switch(lable){case 1:$("search_city").options[0].selected=true;$("search_city").disabled=true;$("festival_search3").innerHTML="<select id='search_city1' style='display:none;'><option value='0'></option></select>";break;case 2:$("festival_search3").innerHTML="<select id='search_city1' style='display:none;'><option value='0'></option></select>";break}$(id1).innerHTML=result}else{$(id).disabled=true;$(id).options[0].selected=true;$("search_city").disabled=true;$("search_city").options[0].selected=true;$("search_city1").disabled=true;$("search_city1").options[0].selected=true}}function NavPartnersSub(){var straction=getSelectedlocation("search_continent","search_country","search_city","search_city1");var url="/he/navigator/"+straction+"-"+(document.search_form.festival_search_theme.value>0?document.search_form.festival_search_theme.value:swtype("partners"))+"-0-partners";if((document.search_form.uid)&&(document.search_form.uid.value)){url+="/uid-"+document.search_form.uid.value}if($("date_start").value){url=url+"/date_from-"+str2unix($("date_start").value)}if($("date_end").value){url=url+"/date_end-"+str2unix($("date_end").value)}if(document.search_form.age){url=url+"/age-"+document.search_form.age.value}if(document.search_form.sex){url=url+"/sex-"+document.search_form.sex.value}document.location=url}function NavigatorFormSubmit1(url,type,theme_id,engine){if(!type){type="festival"}if(!engine){engine=0}var theme;var straction=getSelectedlocation("search_continent","search_country","search_city","search_city1");switch(type){case"video":theme=((document.search_form.theme[0].checked==true)?document.search_form.theme[0].value:((document.search_form.theme[1].checked==true)?document.search_form.theme[1].value:document.search_form.theme[2].value));break;case"festival":theme=(($(theme_id))?$(theme_id).value:$("festival_search_theme").options[$("festival_search_theme").selectedIndex].value);if(straction==89){alert("נא לבחור קודם יעד!");return false}break;case"locator":theme=swtype("locator");break;case"blog":theme=0;break;default:theme=(($(theme_id))?$(theme_id).value:$("festival_search_theme").options[$("festival_search_theme").selectedIndex].value)}if(theme==0){theme=swtype(type)}straction+="-"+theme;str_action=straction+"-"+(((type=="photo")||(type=="blog"))?document.search_form.tour_type.value:0)+"-"+type;if((document.search_form.festival_start)&&(document.search_form.festival_start.value!="")){str_action+="/date_from-"+str2unix(document.search_form.festival_start.value)}if((document.search_form.festival_end)&&(document.search_form.festival_end.value!="")){str_action+="/date_end-"+str2unix(document.search_form.festival_end.value)}if((document.search_form.uid)&&(document.search_form.uid.value)){str_action+="/uid-"+document.search_form.uid.value}if(engine){parent.location=url+str_action+"&domain="+$("domain").value}else{document.location=url+str_action}return true}function swtype(type){var i;switch(type){case"tip":i=68;break;case"partners":i=73;break;case"locator":i=5571;break;case"festival":i=5328;break;case"article":i=5309;break;case"video":i=5313;break;case"photo":i=5546;break;default:i=0}return i}function NavigatorFormSubmit2(url,type){if(!type){type="festival"}var straction=url+89+"-"+swtype(type);var id=type+"_name";if($(id).value.length==0){return false}document.location=straction+"-0-"+type+"/text_search-"+encodeURI($(id).value);return true}function NavigatorFormSubmit3(){var tid=((document.search_form.search_country.value>0)?document.search_form.search_country.value:document.search_form.search_continent.value);var u="/he/navigator/"+tid+"-81-0-article";document.location=u}function RedirectMe(path,tid,engine){if(!engine){engine=0}url=base_url()+"ajax.php?act=url_alias&id="+path+tid;var result=HTTPGet(url);if(result==(path+tid)){result="/he/"+result}if(engine){parent.location=result+"&domain="+$("domain").value}else{document.location=result}}function RedirectMe_ski(path,tid){url=base_url()+"ajax.php?act=url_alias&id="+path+tid;var result=HTTPGet(url);if(result==(path+tid)){result="/he/"+result}result="http://ski.lametayel.co.il"+result;document.location=result}function RssRedirect(){if((getSelectedlocation("search_continent","search_country","search_city","search_city1")==89)||($("festival_search_theme").value==0)){alert("נא לבחור קודם יעד ו סוג תוכן");return false}else{document.location="rss-"+getSelectedlocation("search_continent","search_country","search_city","search_city1")+"-"+$("festival_search_theme").value+".xml";return true}}var sel_v=0;function SearchShowlocation(id,id1,selected_value,start_select){sel_v=selected_value;if(!parseInt(selected_value)){$(id).disabled=true;$(id).options[0].selected=true;$(id1).disabled=true;$(id1).options[0].selected=true}else{url=base_url()+"ajax.php?act=view_search_location&id="+selected_value+"&start_select="+start_select;var result=HTTPGet(url);if(result.length){var arr_result=new Array();arr_result=result.split(",");var len=arr_result.length;removeAllOptions(id);$(id).disabled=false;for(var i=0;i<len;i=i+2){addOption(id,arr_result[i],arr_result[i+1])}}}}var ii=1;var iii=0;function SearchShowSubCategoryArticle(selected_value,root_deep,backlable){if(parseInt(backlable)){ii=$("search_checkbox2").childNodes.length+1}url=base_url()+"ajax.php?act=view_searchsub_checkboxarticle&id="+selected_value+"&id_name=searchradio["+root_deep+"]";var result=HTTPGet(url);if(result.length){if(root_deep>ii){var objdiv=Create_element("div",$("search_checkbox2"),new Array("id","searchradio_div"+root_deep))}else{if(root_deep==ii){var objdiv=$("searchradio_div"+root_deep)}else{if(root_deep<ii){while(ii>=root_deep){Remove_Div("searchradio_div"+ii,"search_checkbox2");ii--}var objdiv=Create_element("div",$("search_checkbox2"),new Array("id","searchradio_div"+root_deep))}}}objdiv.className="search_box_search3_v";objdiv.innerHTML=result;ii=root_deep}else{if(root_deep==ii){Remove_Div("searchradio_div"+ii,"search_checkbox2");ii--}else{if(root_deep<ii){while(ii>=root_deep){Remove_Div("searchradio_div"+ii,"search_checkbox2");ii--}}}}}function SearchShowSubCategory(selected_value,root_deep,backlable){if(parseInt(backlable)){iii=$("search_checkbox2").childNodes.length;if(!iii){iii=1}}url=base_url()+"ajax.php?act=view_searchsub_checkbox&id="+selected_value+"&id_name=searchradio["+root_deep+"]";var result=HTTPGet(url);if(result.length){if(root_deep>iii){var objdiv=Create_element("div",$("search_checkbox2"),new Array("id","searchradio_div"+root_deep))}else{if(root_deep==iii){var objdiv=$("searchradio_div"+root_deep)}else{if(root_deep<iii){while(iii>=root_deep){Remove_Div("searchradio_div"+iii,"search_checkbox2");iii--}var objdiv=Create_element("div",$("search_checkbox2"),new Array("id","searchradio_div"+root_deep))}}}objdiv.className="search_box_search3_v";objdiv.innerHTML=result;iii=root_deep}else{if(root_deep==iii){Remove_Div("searchradio_div"+iii,"search_checkbox2");iii--}else{if(root_deep<iii){while(iii>=root_deep){Remove_Div("searchradio_div"+iii,"search_checkbox2");iii--}}}}}function SubmitSearch(url,type){if(!type){type="gen"}var array_radio=Array();array_radio=getSelectedRadioarray();var len=array_radio.length-1;var type_travel=document.search_form.travel_type_search.value;var type_travel_word="";if(len<0){len=0;array_radio[len]=0}type_travel_word=type;straction=straction=getSelectedlocation("search_continent","search_country","search_city","search_city1");if(straction==89){alert("חובה לבחור יעד טיול");return false}document.location=url+straction+"-"+array_radio[len]+"-"+type_travel+"-"+type_travel_word;return true}function SubmitSearch_blank(url,type){if(!type){type="gen"}var array_radio=Array();array_radio=getSelectedRadioarray();var len=array_radio.length-1;var type_travel=document.search_form.travel_type_search.value;var type_travel_word="";if(len<0){len=0;array_radio[len]=0}type_travel_word=type;straction=straction=getSelectedlocation("search_continent","search_country","search_city","search_city1");if(straction==89){alert("חובה לבחור יעד טיול");return false}window.open(url+straction+"-"+array_radio[len]+"-"+type_travel+"-"+type_travel_word);return true}function getSelectedRadioarray(){var j=0;var array_checked=Array();for(i=0;i<document.search_form.elements.length;i++){if(document.search_form.elements[i].checked){array_checked[j]=document.search_form.elements[i].value;j++}}return array_checked}function getSelectedlocation(id1,id2,id3,id4){var straction="";var ch_location1=$(id1).options[$(id1).selectedIndex].value;var ch_location2=$(id2).options[$(id2).selectedIndex].value;var ch_location3=$(id3).options[$(id3).selectedIndex].value;var ch_location4=$(id4).options[$(id4).selectedIndex].value;if(ch_location4&&ch_location4!=0){straction=ch_location4}else{if(ch_location3&&ch_location3!=0){straction=ch_location3}else{if(ch_location2&&ch_location2!=0){straction=ch_location2}else{if(ch_location1&&ch_location1!=0){straction=ch_location1}else{straction=89}}}}return straction}function removeAllOptions(selectbox){var i;var len=$(selectbox).options.length;for(i=len-1;i>=0;i--){$(selectbox).remove(i)}}function addOption(selectbox,value,text){var optn=document.createElement("OPTION");optn.text=text;optn.value=value;$(selectbox).options.add(optn)}function Create_element(tagName,parentNode,attrArray){var obj=document.createElement(tagName);if(attrArray){for(i=0;i<attrArray.length;i+=2){obj.setAttribute(attrArray[i],attrArray[i+1])}}if(parentNode){if(parentNode.appendChild){parentNode.appendChild(obj)}else{alert("parentNode is probably no HTML ElementNode")}}return obj}function Remove_Div(idel,parent_id){var the_parent_el=$(parent_id);var objel=$(idel);the_parent_el.removeChild(objel)}function Getparenttag(parentelement,depch){for(i=0;i<depch;i++){parentelement=parentelement.parentNode}return parentelement}function close_box(id){for(i=id;i<4;i++){$("the_parent"+i).innerHTML=""}}function extract_map_form_link(mapu){url="/he/"+mapu+"/type-2";if($("ymap_template_id").value.length>0){url=url+"/ymap-"+$("ymap_template_id").value}return url}function show_box(id){if($(id).className=="displaynone"){$(id).className="tbl_cell"}else{$(id).className="displaynone"}}function markread_pm(id){var url=base_url()+"ajax.php?act=markread_pm&id="+id;var result=HTTPGet(url);if(result>0){$("new"+id).className="displaynone"}}function show_com(id){if($("comment"+id).className=="displaynone padding5"){$("comment"+id).className="displayblock padding5";$("comment_title"+id).className="comment_titleo pointer"}else{$("comment"+id).className="displaynone padding5";$("comment_title"+id).className="comment_title pointer"}}function justshow(id){if($(id).className=="displaynone"){$(id).className=""}}function strstr(haystack,needle,bool){var pos=0;haystack+="";pos=haystack.indexOf(needle);if(pos==-1){return false}else{if(bool){return haystack.substr(0,pos)}else{return haystack.slice(pos)}}}function chgtriangle(id){var onC;if(strstr($(id).src,"trianglel")){$(id).src="/images/triangled.gif";onC='$("b'+id.substr(1)+'").className="displaynone";'}else{onC='justshow("b'+id.substr(1)+'");';$(id).src="/images/trianglel.gif"}onC=onC+'chgtriangle("'+id+'")';$(id).onclick=new Function(onC)}function delpmess(title,id,uid){if(confirm(":האם למחוק את ההודעה\n:"+title+"\n?")){window.location="/he/user/"+uid+"/app/delmsg/"+id;return true}else{return false}}function show_fath_folder(folder_id,flg){if(!flg){flg=0}var box=$("box"+folder_id);if(box.innerHTML.length==0){url=base_url()+"ajax.php?act=show_fath_folder&id="+folder_id+"&flg="+flg;var result=HTTPGet(url);box.innerHTML=result;check_childs(folder_id)}else{box.innerHTML=""}}function show_fath_button_menu(parent_id){var box=$("box"+parent_id);url=base_url()+"ajax.php?act=show_fath_button_menu&id="+parent_id;var result=HTTPGet(url);if(box.innerHTML.length==0){if(result.length>0){box.innerHTML=result}}else{box.innerHTML=""}}function favorit_it(folder_id){var fath_nid=$("fath_nid").value;var fath_type=$("fath_type").value;url=base_url()+"he/myfavorit/savelink/"+fath_type+"/"+fath_nid+"/"+folder_id;document.location=url}function get_wsize(){var width;if(navigator.appName=="Netscape"){width=window.innerWidth}if(navigator.appName.indexOf("Microsoft")!=-1){width=document.body.offsetWidth}var less=((width-926)/2);if(navigator.appName.indexOf("Microsoft")!=-1){less=less-32}return less}function checkterms(){if($("term_checkbox").checked==true){return true}else{alert("יש לסמן שקראת את התקנון");$("term_checkbox").focus();return false}}function in_array(needle,haystack,argStrict){var key="",strict=!!argStrict;if(strict){for(key in haystack){if(haystack[key]===needle){return true}}}else{for(key in haystack){if(haystack[key]==needle){return true}}}return false}function chk_fileup(id){var image_exts=new Array("jpeg","jpg","pjpeg","gif","png","bmp");var ext=$(id).value.substr($(id).value.lastIndexOf(".")+1,$(id).value.length-$(id).value.lastIndexOf(".")).toLowerCase();if(!in_array(ext,image_exts)){alert(" !בלבד "+image_exts.join(" ")+" :מוטר לעלות תמונות אם סיום קובץ");$(id).value="";return false}else{return true}}function show_hidden_rows(obj){var disp;if(navigator.appName=="Netscape"){disp="table-row"}else{disp="block"}for(var i=0;i<obj.length;i++){obj[i].style.display=disp}}function font_enlarge(element,size){$(element).style.fontSize=size+"px"}function validate_ski(){if($("search_city").value==0){alert("חובה לבחור אתר סקי!");return false}else{if((($("search_country").value==220)||($("search_country").value==297))&&($("search_city1").value==0)){alert("חובה לבחור אתר סקי!");$("search_city1").focus();return false}else{return true}}}function ski_compare_load_city(country_name){var url="/ajax.php?act=ski_compare_city&name="+country_name;result=HTTPGet(url);$("citybox").innerHTML="<u>אתר</u>"+result}function ski_compare_pallette(){if($("city").value>0){var city_name=$("city").options[$("city").selectedIndex].innerHTML;if($("geos").style.height!="20px"){$("geos").style.height="20px"}$("geos").innerHTML+="<div>"+city_name+'<input type="hidden" name="city['+$("city").value+']" value="'+$("city").value+'"></div>';var el_count=$("geos").getElementsByTagName("div").length;ski_compare_load_city("");$("country").selectedIndex=0;if(el_count<3){}else{$("city").disabled=1;$("country").disabled=1;$("ski_compare_add").style.display="none"}if(el_count>1){$("compare_button").style.height="22px";$("compare_button").innerHTML='<input type="submit" value=" "class="ski_compare_compare">'}}}function ski_clear_pallette(){if(confirm("בטוח שברצונך לאפס את בחירת האתרים?")){$("compare_button").innerHTML="";$("city").disabled=0;$("country").disabled=0;$("ski_compare_add").style.display="block";ski_compare_load_city("");$("country").selectedIndex=0;$("geos").innerHTML="";$("geos").style.height=$("compare_button").style.height="0px"}}function change_skin(val){if(val==0){$("edit-blog_background_image").disabled=0;$("edit-background_color").disabled=0;$("edit-background_item").disabled=0;$("edit-border_color").disabled=0;$("edit-text_color").disabled=0;$("edit-link_color").disabled=0;$("edit-title_color").disabled=0;$("edit-title_background").disabled=0;$("edit-font_family").disabled=0;$("edit-blog_background_image_remove").disabled=0;document.getElementsByName("edit[blog_background_position]")[0].disabled=0;document.getElementsByName("edit[blog_background_position]")[1].disabled=0}else{$("edit-blog_background_image").disabled=1;$("edit-background_color").disabled=1;$("edit-background_item").disabled=1;$("edit-border_color").disabled=1;$("edit-text_color").disabled=1;$("edit-link_color").disabled=1;$("edit-title_color").disabled=1;$("edit-title_background").disabled=1;$("edit-font_family").disabled=1;$("edit-blog_background_image_remove").disabled=1;document.getElementsByName("edit[blog_background_position]")[0].disabled=1;document.getElementsByName("edit[blog_background_position]")[1].disabled=1}get_skin_preview(val)}function get_skin_preview(val){url=base_url()+"ajax.php?act=blog_skin_example&id="+val;var result=HTTPGet(url);$("skin_preview").innerHTML=result}function hotel_chg_citybox(){$("city_box").innerHTML=' <input type="text" onkeyup="GetChar(event)"  onclick="txtCityName_onClick()" language="javascript" name="txtCityName" id="CityName" value="הקלד שם באנגלית" autocomplete="off"><select onclick="return CityList_onclick()"  language="javascript" name="cityname" id="CityList" size="10"><option value="0">null</option></select>'}function txtCityName_onClick(){if($("CityName").value=="הקלד שם באנגלית"){$("CityName").value=""}}function GetChar(event){var keyCode=event.which;if(keyCode==undefined){keyCode=event.keyCode}getcities()}function getcities(){var p=$("CityName").value;p=p.replace(" ","+");if(p.length>=1){url1="/ajax.php?act=hotels_cities&id="+p;var result=HTTPGet(url1);if(result.length>0){if(navigator.userAgent.indexOf("Firefox")!=-1){$("CityList").innerHTML=result}else{$("CityList").outerHTML='<select onclick="return CityList_onclick()"  language="javascript" name="cityname" id="CityList" size="10">'+result+"</select>"}$("CityList").style.display="inline"}else{$("CityList").style.display="none"}}}function CityList_onclick(){var par=$("CityList").value;var CityList_text=$("CityList").options[$("CityList").selectedIndex].text;if(par!=""){$("CityName").value=CityList_text;$("CityCode").value=par;$("xcity").value=par;$("CityList").style.display="none"}}function HotelName_onClick(){var i;var key;var v;v=$("txtHotelName").value;if(v=="הצג הכל / הקלד שם באנגלית"){$("txtHotelName").value=""}}function HotelGetChar(event){var keyCode=event.which;if(keyCode==undefined){keyCode=event.keyCode}txtHotelName_onkeyup()}function txtHotelName_onkeyup(){if($("CityCode").value==""){window.alert(" הקלד את העיר");$("CityCode").value="";return(0)}var p=$("txtHotelName").value.replace(" ","+");if(p.length>=1){$("HotelList").style.display="inline";$("HotelList").style.height=400;var url1="/ajax.php?act=hotels_hotels&xcity="+$("xcity").value+"&id="+p;var result=HTTPGet(url1);if(result.length>0){if(navigator.userAgent.indexOf("Firefox")!=-1){$("HotelList").innerHTML=result}else{$("HotelList").outerHTML='<select dir=ltr  size="10" id="HotelList"   name="txtHotelName" LANGUAGE=javascript onclick="return HotelList_onclick()">'+result+"</select>"}$("HotelList").style.display="inline"}else{$("HotelList").style.display="none"}}}function HotelList_onclick(){if($("HotelList").value!=""){$("HotelCode").value=$("HotelList").value;$("xHotel").value=$("HotelList").value;$("HotelList").style.display="none";$("txtHotelName").value=$("HotelList").options[$("HotelList").selectedIndex].text}}function submit2hotels_search(){var from_date=$("date_start1").value.replace(/-/g,"/");var to_date=$("date_end1").value.replace(/-/g,"/");var adults=$("adults").value;var rooms=$("rooms").value;var xcity=$("xcity").value;var HotelCode=$("HotelCode").value;var url="http://www.ittaa.com/ittaa/sites/Lametayel_6/searchp.aspx?fromdate="+from_date+"&todate="+to_date+"&rooms1="+rooms+"&NumberOfAdults1="+adults;url=url+"&xcity="+xcity+"&country=US&xHotelCode="+HotelCode;var newWindow=window.open(url,"_blank");newWindow.focus();return false}function confirm_delete(valname){if(confirm("בתוח למחוק "+valname+"?")){return true}else{return false}}function print_coupon(key){var hr=$(key).src;var pw=window.open("about:blank","_new");pw.document.open();pw.document.write("<div><img src='"+hr+"'></div>");pw.document.write("<script>window.print();<\/script>");pw.document.close()};
