function can_i_delete() { aa = confirm(' האם למחוק את הרשומה? '); if(aa == true) { alert("true") return true; } else { alert("false") return false; } } /************************************************************************************************************/ function confirm1(page_id, page_place, page_father, show_all) { input_box = confirm("?האם אתה בטוח"); if(input_box==true) { window.location = 'index.php?todo=delete_page&page_id=' + page_id +'&page_place=' + page_place+'&page_father=' + page_father + "&show_all=" + show_all; } } /************************************************************************************************************/ function edit_content(page_id, page_type) { var height,left; width=780; height=500; window.open("content.php?page_id="+ page_id+ "&page_type=" + page_type ,"", "menubar=yes,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,location=yes,width="+width+",height="+height+",top=50,left=50"); } /************************************************************************************************************/ function pop_gallery(page_id) { var height,left; width=780; height=500; window.open("gallery.php?page_id="+ page_id ,"", "menubar=yes,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,location=yes,width="+width+",height="+height+",top=50,left=50"); } /************************************************************************************************************/ function pop_edit_article(article_id, page_id) { var height,left; width=800; height=600; window.open("pop_article.php?article_id="+article_id+"&page_id="+page_id,"", "menubar=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=2,left=70"); } /**************************************************************************************/ function pop_edit_headline(headline_id) { width=430; height=430; window.open("pop_edit_headline.php?headline_id="+headline_id,"", "menubar=no,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=20,left=200"); } /**************************************************************************************/ function pop_choose_pages(headline_id) { var height,left; width=600; height=700; window.open("pop_choose_pages.php?headline_id="+headline_id ,"", "menubar=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=2,left=70"); } /**************************************************************************************/ function pop_choose_where_to_move(item_id, page_id, type) { var height,left; width=600; height=700; window.open("pop_choose_where_to_move.php?item_id=" + item_id + '&page_id=' +page_id + '&item_type=' + type ,"", "menubar=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=2,left=70"); } /**************************************************************************************/ function update_active(page_id, show_all) { var active = new String; evalv = eval('document.all.page_active_' + page_id); active = evalv.value; //alert(active); window.location = 'index.php?todo=update_active&page_id=' + page_id + '&page_active=' + active + '&show_all=' + show_all; } /************************************************************************************************************/ function update_type(page_id, show_all) { var page_type = new String; evalv = eval('document.all.page_kind_' + page_id); page_type = evalv.value; //alert(page_type); window.location = 'index.php?todo=update_page_type&page_id=' + page_id + '&page_type=' + page_type + '&show_all=' + show_all; } /************************************************************************************************************/ function move_to_archive(article_id, page_id, article_place) { aa = confirm(" 'OK' לאישור המעבר לארכיון לחץ על "); if(aa == true){ window.location = 'content.php?todo=move_to_archive&page_id=' + page_id + '&page_type=1&article_id=' + article_id + '&article_place=' + article_place; } else {} } /************************************************************************************************************/ function move_back_to_page(article_id, page_id) { aa = confirm(" 'OK' לאישור המעבר חזרה לדף לחץ על "); if(aa == true){ window.location = 'content.php?todo=move_back_to_page&page_id=' + page_id + '&page_type=1&article_id=' + article_id; } else {} } /************************************************************************************************************/ function archive_articles(page_id, archive) { window.location = 'content.php?page_id=' + page_id + '&page_type=1&archive=' + archive; } /************************************************************************************************************/ function update_place(page_id, page_father, original_page_place, show_all) { var place = new String; evalv = eval('document.all.page_place_' + page_id); place = evalv.value; //alert(show_all); window.location = 'index.php?todo=update_place&page_id=' + page_id + '&page_place=' + place+ '&page_father=' + page_father + '&original_page_place=' + original_page_place + '&show_all=' + show_all; } /************************************************************************************************************/ function update_link_order(link_id, page_id, original_link_place) { var place = new String; evalv = eval('document.all.link_place_' + link_id); place = evalv.value; window.location = 'content.php?todo=update_link_order&link_id=' + link_id + '&page_id=' + page_id + '&link_place=' + place+ '&original_link_place=' + original_link_place; } /************************************************************************************************************/ function update_article_order(article_id, page_id, original_article_place) { var place = new String; evalv = eval('document.all.article_place_' + article_id); place = evalv.value; window.location = 'content.php?todo=update_article_order&article_id=' + article_id + '&page_id=' + page_id + '&article_place=' + place+ '&original_article_place=' + original_article_place; } /************************************************************************************************************/ function update_name(page_id, show_all) { var name = new String; evalv = eval('document.all.page_name_' + page_id); name = evalv.value; //alert(name); window.location = 'index.php?todo=update_name&page_id=' + page_id + '&page_name=' + name + '&show_all=' + show_all; } /************************************************************************************************************/ function show_all(what) { window.location = 'index.php?type=1&show_all=' + what; } /************************************************************************************************************/ function can_i_delete(page_id, link_id, link_place) { aa = confirm(" 'OK' לאישור המחיקה לחץ על "); if(aa == true){ window.location = 'content.php?todo=delete_link&link_place=' + link_place+ 'page_id=' + page_id + '&link_id=' + link_id; } else{} } /**************************************************************************************/ function can_i_delete3(page_id, article_id, article_place) { aa = confirm(" 'OK' לאישור המחיקה לחץ על "); if(aa == true){ window.location = 'content.php?todo=delete_article&article_place=' + article_place+ '&page_id=' + page_id + '&article_id=' + article_id; } else{} } /**************************************************************************************/ function can_i_delete2(link_id) { aa = confirm(" 'OK' לאישור המחיקה לחץ על "); if(aa == true){ window.location = 'pop_link.php?todo=delete_pic&link_id=' + link_id; } else{} } /**************************************************************************************/ function can_i_delete4(article_id) { aa = confirm(" 'OK' לאישור המחיקה לחץ על "); if(aa == true){ window.location = 'pop_article.php?todo=delete_pic&article_id=' + article_id; } else{} } /**************************************************************************************/ function pop_new_page(seniority, father, type, lang) { var height,left; width=750; height=60; window.open("pop_new_page.php?seniority="+ seniority+ "&page_father=" + father + "&page_type=" + type + "&page_lang=" + lang,"", "menubar=no,resizable=no,scrollbars=no,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=120,left=50"); } /************************************************************************************************************/ function pop_edit_content(link_id, page_id) { var height,left; width=550; height=640; window.open("pop_link.php?link_id="+link_id+"&page_id="+page_id+"&page_type=2","", "menubar=no,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=20,left=50"); } /**************************************************************************************/ function pop_edit_picture(link_id, page_id) { var height,left; width=450; height=500; window.open("pop_edit_picture.php?link_id="+link_id+"&page_id="+page_id+"&page_type=2","", "menubar=no,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=120,left=370"); } /**************************************************************************************/ function move_to_type(type) { if(type ==4 ) { window.location = '../forum/admin/index.php'; } else { window.location = 'index.php?type=' + type; } } /**************************************************************************************/ function pop_move_to(page_id) { var height,left; width=500; height=400; //alert(page_id); window.open("pop_move_to.php?page_id="+page_id+"&page_type=2","", "menubar=no,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=120,left=370"); } /**************************************************************************************/ function pop_move_to_articles(page_id) { var height,left; width=500; height=400; //alert(page_id); window.open("pop_move_to_article.php?page_id="+page_id+"&page_type=1","", "menubar=no,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=120,left=370"); } /**************************************************************************************/ function window_closer(page_id, page_type) { window.close(); if(page_type == 2 || page_type == 1) { parent.opener.location.href='content.php?page_type=' + page_type + '&page_id=' + page_id; } } /**************************************************************************************/ function window_closer_1(page_id, page_type) { window.close(); parent.opener.location.href='pop_move_to_article.php?page_type=' + page_type + '&page_id=' + page_id; } /**************************************************************************************/ function window_closer_2(page_id, page_type) { window.close(); parent.opener.location.href='content.php?page_type=' + page_type + '&page_id=' + page_id; } //////////////////// MAIN PAGE ///////////////////////////////////////////////////////////// function show_all_sons(page_father, number) { //alert(number); //alert(page_father); var i; for(i = 1 ; i <= number ; i++) { evalv = eval('document.all.page_'+ page_father +'_'+ i +'.style'); if(evalv) evalv.display=''; } } /************************************************************************************************************/ function contact_us() { var url = new String; evalv = eval('window.location'); url = evalv.href; x = url.length; page = url.substring(0,x); window.location='index.php?type=5&from=' + page; } /************************************************************************************************************/ function send_to() { var height,left; width=320; height=320; window.open("send_to_friend.php","", "menubar=no,resizable=no,scrollbars=no,toolbar=no,status=no,location=no,width="+width+",height="+height+",top=120,left=350"); } /************************************************************************************************************/