function isNull(val){return(val==null);} function show_hide_div(select_field_name,show_value,show_hide_field_name) { var select_field = window.document.getElementsByName(select_field_name); var ucodigousuario_layer_1 = window.document.getElementsByName("layer_" + show_hide_field_name + "_1"); var ucodigousuario_layer_2 = window.document.getElementsByName("layer_" + show_hide_field_name + "_2"); var ucodigousuario_field = window.document.getElementsByName(show_hide_field_name); if (select_field.item(0).options[select_field.item(0).selectedIndex].value == show_value) { ucodigousuario_layer_1.item(0).style.display = "block"; ucodigousuario_layer_2.item(0).style.display = "block"; } else { ucodigousuario_layer_1.item(0).style.display = "none"; ucodigousuario_layer_2.item(0).style.display = "none"; ucodigousuario_field.item(0).value = ""; } } function show_selected_div(select_field_name,show_field_name) { var select_field = window.document.getElementsByName(select_field_name); var select_field_value = select_field.item(0).options[select_field.item(0).selectedIndex].value; //alert(select_field.item(0).options[select_field.item(0).selectedIndex].value); var show_layer_1 = window.document.getElementsByName("layer_" + show_field_name + select_field.item(0).options[select_field.item(0).selectedIndex].value + "_1"); var show_layer_2 = window.document.getElementsByName("layer_" + show_field_name + select_field.item(0).options[select_field.item(0).selectedIndex].value + "_2"); var show_field = window.document.getElementsByName(show_field_name); var shown_layer_field = window.document.getElementsByName("shown_layer"); var shown_layer_value = shown_layer_field.item(0).value; if (shown_layer_value != "") { var last_shown_layer_field_1 = window.document.getElementsByName(shown_layer_value + "_1"); var last_shown_layer_field_2 = window.document.getElementsByName(shown_layer_value + "_2"); last_shown_layer_field_1.item(0).style.display = "none"; last_shown_layer_field_2.item(0).style.display = "none"; } show_layer_1.item(0).style.display = "block"; show_layer_2.item(0).style.display = "block"; shown_layer_field.item(0).value = "layer_" + show_field_name + select_field_value; } function get_file_modified_date() { var modified_date = new Date(document.lastModified); var year = modified_date.getYear(); var month = modified_date.getMonth() + 1; var day = modified_date.getDate(); modified_date = day + "/" + month + "/" + year; // + "(" + modified_date + ")"; document.write (modified_date); } function get_file_created_date() { //var created_date = new Date(document.lastCreated); //var year = created_date.getYear(); //var month = created_date.getMonth() + 1; //var day = created_date.getDate(); //created_date = day + "/" + month + "/" + year; // + "(" + created_date + ")"; //document.write (created_date); } function verify_delete_record(nombre,url,recordtype) { if (nombre != "") { nombre = " '" + nombre + "'"; } var confirm_action = false; var confirm_text = "¿Eliminar " + recordtype + nombre + "?"; confirm_action = confirm(confirm_text); if (confirm_action) { document.location.href = url; } } function verify_modify_record(nombre,recordtype) { if (nombre != "") { nombre = " '" + nombre + "'"; } var confirm_action = false; var confirm_text = "Modificar " + recordtype + nombre + "?"; confirm_action = confirm(confirm_text); return confirm_action; } function array_search(search_item,search_array) { var index_found = -1; if (search_array.length > 0) { for (i=0; i < search_array.length; i++) { if (search_array[i] == search_item) { index_found = i; return index_found; } } } return index_found; } function build_menu(MainColor,MenuMainBgColor,MainColorAlternative,MainColorOpposited,PageBorderColor,MenuMainFontColor,MenuTopAllWidth,PageWidth,ContentWidth,me,content,language,debug) { stm_mainm_direction = 0; // 0: horizontal; 1: vertical stm_mainm_alignment = 1; menu_bg_color = MainColorAlternative; //""; menu_font_color = MainColorOpposited; //MenuMainFontColor; menu_bg_color_selected = MainColorAlternative; //MenuMainFontColor; menu_font_color_selected = MainColor; //MenuMainBgColor; stm_mainm_fontcolor = menu_font_color; stm_mainm_bgcolor = menu_bg_color; // 0: left; 1: center; 2: right stm_mainm_bordercolor = menu_bg_color; stm_mainm_fontcolor_selected = menu_font_color_selected; stm_mainm_bg_selected = menu_bg_color_selected; stm_mainm_bordercolor_selected = stm_mainm_bg_selected; //stm_mainm_fontcolor_selected; // menu_bg_color_selected; stm_mainm_shadow_transparency = 0; // 1: default transparency stm_mainm_shadow_width = 0; stm_mainm_shadow_color = "#000000"; // 4: default shadow stm_mainm_position = 4; // 1: left; 2: right; 3: top; 4: under stm_mainm_position_x = 0; // default: 0 stm_mainm_position_y = 0; // default: 0 stm_mainm_cellspacing = 0; // default: 0 stm_mainm_cellpadding = 4; // default: 4 stm_mainm_leftspacing = 0; // default: 0 stm_mainm_rightspacing = 0; // default: 0 stm_mainm_transparency_grade = 100; // default: 71 stm_subm_direction = 1; // 0: horizontal; 1: vertical stm_subm_alignment = 1; stm_subm_bg_transparency = 0; stm_subm_fontcolor = menu_font_color; stm_subm_bgcolor = menu_bg_color; stm_subm_bordercolor_in = menu_bg_color; stm_subm_bordercolor_out = "transparent"; // default: "transparent"; stm_subm_bgcolor_selected = menu_bg_color_selected; stm_subm_fontcolor_selected = menu_font_color_selected; stm_subm_bordercolor_top_selected = stm_subm_fontcolor_selected; //menu_bg_color_selected; stm_subm_bordercolor_right_selected = stm_subm_fontcolor_selected; //menu_bg_color_selected; stm_subm_bordercolor_bottom_selected = stm_subm_fontcolor_selected; //menu_bg_color_selected; stm_subm_bordercolor_left_selected = stm_subm_fontcolor_selected; //menu_bg_color_selected; stm_subm_bg_transparency_selected = 0; stm_subm_shadow = 0; // default: 1 stm_subm_shadow_width = 4; // default: 4 stm_subm_shadow_color = menu_bg_color_selected; stm_subm_position = 4; // 1: left; 2: right; 3: top; 4: under stm_subm_position_x = 0; // default: 0 stm_subm_position_y = 0; // default: 0 stm_subm_cellspacing = 1; // default: 0 stm_subm_cellpadding = 4; // default: 4 stm_subm_leftspacing = 1; // default: 1 stm_subm_rightspacing = 1; // default: 1 stm_subm_transparency_grade = 100; // default: 71 stm_subsubm_direction = 1; // 0: horizontal; 1: vertical stm_subsubm_alignment = 0; stm_subsubm_bg_transparency = 0; stm_subsubm_fontcolor = menu_font_color; stm_subsubm_bgcolor = menu_bg_color; stm_subsubm_bordercolor_in = menu_bg_color; stm_subsubm_bordercolor_out = "transparent"; // default: "transparent"; stm_subsubm_fontcolor_selected = menu_font_color_selected; stm_subsubm_bgcolor_selected = menu_bg_color_selected; stm_subsubm_bordercolor_top_selected = stm_subsubm_fontcolor_selected; //menu_bg_color_selected; stm_subsubm_bordercolor_right_selected = stm_subsubm_fontcolor_selected; //menu_bg_color_selected; stm_subsubm_bordercolor_bottom_selected = stm_subsubm_fontcolor_selected; //menu_bg_color_selected; stm_subsubm_bordercolor_left_selected = stm_subsubm_fontcolor_selected; //menu_bg_color_selected; stm_subsubm_bg_transparency_selected = 0; stm_subsubm_shadow = 0; // default: 1 stm_subsubm_shadow_width = 4; // default: 4 stm_subsubm_shadow_color = menu_bg_color_selected; stm_subsubm_position = 2; // 1: left; 2: right; 3: top; 4: under stm_subsubm_position_x = 0; // default: 0 stm_subsubm_position_y = 0; // default: 0 stm_subsubm_cellspacing = 1; // default: 0 stm_subsubm_cellpadding = 4; // default: 4 stm_subsubm_leftspacing = 1; // default: 1 stm_subsubm_rightspacing = 1; // default: 1 stm_subsubm_transparency_grade = 100; // default: 71 stm_3dborder = 0; // default: 3 stm_3dborder_width = 0; // default: 8 submenu_effect_in_duration = 0; // default: 0.42 submenu_effect_out_duration = 0; // default: 0.42 var stm_menu_item = new Array; var stm_submenu_item = new Array; var stm_subsubmenu_item = new Array; var stm_menu_index = -1; var stm_submenu_index = -1; var stm_subsubmenu_index = -1; stm_menu_index = stm_menu_index + 1; stm_submenu_index = -1; stm_menu_item[stm_menu_index] = new Array(4); stm_menu_item[stm_menu_index][0] = "INICIO"; stm_menu_item[stm_menu_index][1] = me + "?content=start"; stm_menu_item[stm_menu_index][2] = "_self"; stm_menu_item[stm_menu_index][3] = "Inicio"; stm_menu_item[stm_menu_index][4] = menu_font_color; if (language == 'en') { stm_menu_item[stm_menu_index][0] = "START"; stm_menu_item[stm_menu_index][3] = "Start"; } if (content == 'start' || content == '') { stm_menu_item[stm_menu_index][4] = menu_font_color_selected; } else { stm_menu_item[stm_menu_index][4] = menu_font_color; } stm_menu_index = stm_menu_index + 1; stm_submenu_index = -1; stm_menu_item[stm_menu_index] = new Array(4); stm_menu_item[stm_menu_index][0] = "Ofertas"; stm_menu_item[stm_menu_index][1] = me + "?content=ofertas"; (debug.length > 0)?stm_menu_item[stm_menu_index][1] = stm_menu_item[stm_menu_index][1] + '&debug=' + debug : ''; stm_menu_item[stm_menu_index][2] = "_self"; stm_menu_item[stm_menu_index][3] = "Ofertas"; if (language == 'en') { stm_menu_item[stm_menu_index][0] = "Offers"; stm_menu_item[stm_menu_index][3] = "Offers"; } if (content == 'ofertas') { stm_menu_item[stm_menu_index][4] = menu_font_color_selected; } else { stm_menu_item[stm_menu_index][4] = menu_font_color; } stm_menu_index = stm_menu_index + 1; stm_submenu_index = -1; stm_menu_item[stm_menu_index] = new Array(4); stm_menu_item[stm_menu_index][0] = "Promociones"; stm_menu_item[stm_menu_index][1] = me + "?content=promociones"; (debug.length > 0)?stm_menu_item[stm_menu_index][1] = stm_menu_item[stm_menu_index][1] + '&debug=' + debug : ''; stm_menu_item[stm_menu_index][2] = "_self"; stm_menu_item[stm_menu_index][3] = "Promociones"; if (language == 'en') { stm_menu_item[stm_menu_index][0] = "Promotions"; stm_menu_item[stm_menu_index][3] = "Promotions"; } if (content == 'promociones') { stm_menu_item[stm_menu_index][4] = menu_font_color_selected; } else { stm_menu_item[stm_menu_index][4] = menu_font_color; } stm_menu_index = stm_menu_index + 1; stm_submenu_index = -1; stm_menu_item[stm_menu_index] = new Array(4); stm_menu_item[stm_menu_index][0] = "Inmuebles"; stm_menu_item[stm_menu_index][1] = me + "?content=inmuebles"; (debug.length > 0)?stm_menu_item[stm_menu_index][1] = stm_menu_item[stm_menu_index][1] + '&debug=' + debug : ''; stm_menu_item[stm_menu_index][2] = "_self"; stm_menu_item[stm_menu_index][3] = "Inmuebles"; if (language == 'en') { stm_menu_item[stm_menu_index][0] = "Properties"; stm_menu_item[stm_menu_index][3] = "Properties"; } if (content == 'inmuebles') { stm_menu_item[stm_menu_index][4] = menu_font_color_selected; } else { stm_menu_item[stm_menu_index][4] = menu_font_color; } stm_submenu_item[stm_menu_index] = new Array(); stm_submenu_index = stm_submenu_index + 1; stm_subsubmenu_index = -1; stm_submenu_item[stm_menu_index][stm_submenu_index] = new Array(4); stm_submenu_item[stm_menu_index][stm_submenu_index][0] = "Desarrollo de software"; stm_submenu_item[stm_menu_index][stm_submenu_index][1] = me + "?content=software"; stm_submenu_item[stm_menu_index][stm_submenu_index][2] = "_self"; stm_submenu_item[stm_menu_index][stm_submenu_index][3] = "Desarrollo de software"; stm_submenu_index = stm_submenu_index + 1; stm_subsubmenu_index = -1; stm_submenu_item[stm_menu_index][stm_submenu_index] = new Array(4); stm_submenu_item[stm_menu_index][stm_submenu_index][0] = "Servicios web"; stm_submenu_item[stm_menu_index][stm_submenu_index][1] = me + "?content=web" stm_submenu_item[stm_menu_index][stm_submenu_index][2] = "_self"; stm_submenu_item[stm_menu_index][stm_submenu_index][3] = "Servicios web"; stm_menu_index = stm_menu_index + 1; stm_submenu_index = -1; stm_menu_item[stm_menu_index] = new Array(4); stm_menu_item[stm_menu_index][0] = "Servicios"; stm_menu_item[stm_menu_index][1] = me + "?content=servicios&nc=1&nsc=1"; (debug.length > 0)?stm_menu_item[stm_menu_index][1] = stm_menu_item[stm_menu_index][1] + '&debug=' + debug : ''; stm_menu_item[stm_menu_index][2] = "_self"; stm_menu_item[stm_menu_index][3] = "Servicios"; if (content == 'servicios') { stm_menu_item[stm_menu_index][4] = menu_font_color_selected; } else { stm_menu_item[stm_menu_index][4] = menu_font_color; } stm_menu_index = stm_menu_index + 1; stm_submenu_index = -1; stm_menu_item[stm_menu_index] = new Array(4); stm_menu_item[stm_menu_index][0] = "Contacto"; stm_menu_item[stm_menu_index][1] = me + "?content=contact"; (debug.length > 0)?stm_menu_item[stm_menu_index][1] = stm_menu_item[stm_menu_index][1] + '&debug=' + debug : ''; stm_menu_item[stm_menu_index][2] = "_self"; stm_menu_item[stm_menu_index][3] = "Página de contacto"; if (content == 'contact') { stm_menu_item[stm_menu_index][4] = menu_font_color_selected; } else { stm_menu_item[stm_menu_index][4] = menu_font_color; } stm_mainm_menu_items = stm_menu_item.length; stm_mainm_width = 550; var menu_width; if (MenuTopAllWidth.length > 0 && (MenuTopAllWidth == 'true' ||MenuTopAllWidth == '1')) { menu_width = PageWidth; } else { menu_width = ContentWidth; } menu_items = 5; if (menu_width.indexOf('px') > -1) { menu_width = menu_width.replace("px",""); } if (menu_width.indexOf('%') > -1) { menu_width = '0'; } stm_mainm_width = menu_width; if (stm_mainm_width == '0') { var scr_w = screen.availWidth; var scr_h = screen.availHeight; var browseWidth, browseHeight; if (document.layers) { //alert("OK (document.layers)"); browseWidth=window.innerWidth; browseHeight=window.innerHeight; } if (document.all) { //alert("OK (document.all)"); browseWidth=document.body.clientWidth; browseHeight=document.body.clientHeight; } if (is.ns) { browseWidth = document.body.clientWidth; browseHeight = window.innerHeight - 120; } if (is.ie) { browseWidth = document.body.clientWidth; (PageBorderColor.length > 0)?browseWidth = browseWidth - 2:''; browseHeight = document.body.clientHeight - 136; } stm_mainm_width = browseWidth; } if (PageBorderColor.length > 0) { stm_mainm_width = stm_mainm_width - 2; } stm_mainm_cell_width = (stm_mainm_width / stm_mainm_menu_items) - 10; //stm_mainm_width = ""; //stm_mainm_cell_width = ""; stm_bm(["phpjchr",400,"images/","pixel.gif",0,"","",0,0,0,0,50,0,0,0,""],this); stm_bp("p0",[stm_mainm_direction,stm_mainm_position,stm_mainm_position_x,stm_mainm_position_y,stm_mainm_cellspacing,stm_mainm_cellpadding,stm_mainm_leftspacing,stm_mainm_rightspacing,stm_mainm_transparency_grade,"",-2,"",-2,90,stm_mainm_shadow_transparency,stm_mainm_shadow_width,stm_mainm_shadow_color,"transparent","",3,stm_3dborder,stm_3dborder_width,"#ffffff",stm_mainm_width,stm_mainm_cell_width]); mainmenu_index = 0; submenu_index = 0; for (menu_index=0; menu_index < stm_menu_item.length; menu_index++) { stm_ai("p0i" + mainmenu_index,[0,stm_menu_item[menu_index][0],"","",-1,-1,0,stm_menu_item[menu_index][1],stm_menu_item[menu_index][2],"",stm_menu_item[menu_index][3],"","",0,0,0,"","",0,0,0,stm_mainm_alignment,1,stm_mainm_bgcolor,0,stm_mainm_bg_selected,0,"","",3,3,1,1,stm_mainm_bordercolor,stm_mainm_bordercolor_selected,stm_menu_item[menu_index][4],stm_mainm_fontcolor_selected,"bold 10pt Arial","bold 10pt Arial",0,0]); if (stm_submenu_item.length > 0) { //alert(stm_submenu_item[menu_index]); if (!(stm_submenu_item[menu_index] == undefined)) { if (stm_submenu_item[menu_index].length > 0) { //alert("stm_submenu_item[" + menu_index + "].length = " + stm_submenu_item[menu_index].length); stm_bpx("p" + submenu_index,"p0",[stm_subm_direction,stm_subm_position,stm_subm_position_x,stm_subm_position_y,stm_subm_cellspacing,stm_subm_cellpadding,stm_subm_leftspacing,stm_subm_rightspacing,stm_subm_transparency_grade,"progid:DXImageTransform.Microsoft.Iris(irisStyle=SQUARE,motion=out,enabled=0,Duration=" + submenu_effect_in_duration + ")",1,"progid:DXImageTransform.Microsoft.Wheel(spokes=16,enabled=0,Duration=" + submenu_effect_out_duration + ")",-2,68,stm_subm_shadow,stm_subm_shadow_width,stm_subm_shadow_color,stm_subm_bordercolor_out,"#000000",3,0,0]); for (sub_index=0; sub_index < stm_submenu_item[menu_index].length; sub_index++) { //alert("stm_submenu_item[" + menu_index + "][" + sub_index + "][0] = " + stm_submenu_item[menu_index][sub_index][0]); stm_aix("p" + submenu_index + "i0","p0i0",[0,stm_submenu_item[menu_index][sub_index][0],"","",-1,-1,0,stm_submenu_item[menu_index][sub_index][1],stm_submenu_item[menu_index][sub_index][2],"",stm_submenu_item[menu_index][sub_index][3],"","",0,0,0,"","",0,0,0,stm_subm_alignment,1,stm_subm_bgcolor,stm_subm_bg_transparency,stm_subm_bgcolor_selected,stm_subm_bg_transparency_selected,"","",3,3,1,1,stm_subm_bordercolor_in,stm_subm_bordercolor_top_selected + " " + stm_subm_bordercolor_right_selected + " " + stm_subm_bordercolor_bottom_selected + " " + stm_subm_bordercolor_left_selected,stm_subm_fontcolor,stm_subm_fontcolor_selected]); if (!(stm_subsubmenu_item[menu_index] == undefined)) { if (stm_subsubmenu_item[menu_index].length > 0) { if (!(stm_subsubmenu_item[menu_index][sub_index] == undefined)) { if (stm_subsubmenu_item[menu_index][sub_index].length > 0) { //alert("stm_subsubmenu_item[" + menu_index + "][" + sub_index + "].length = " + stm_subsubmenu_item[menu_index][sub_index].length); stm_bpx("p" + submenu_index,"p0",[stm_subsubm_direction,stm_subsubm_position,stm_subsubm_position_x,stm_subsubm_position_y,stm_subsubm_cellspacing,stm_subsubm_cellpadding,stm_subsubm_leftspacing,stm_subsubm_rightspacing,stm_subsubm_transparency_grade,"progid:DXImageTransform.Microsoft.Iris(irisStyle=SQUARE,motion=out,enabled=0,Duration=" + submenu_effect_in_duration + ")",1,"progid:DXImageTransform.Microsoft.Wheel(spokes=16,enabled=0,Duration=" + submenu_effect_out_duration + ")",-2,68,stm_subsubm_shadow,stm_subsubm_shadow_width,stm_subsubm_shadow_color,stm_subsubm_bordercolor_out,"",3,0,0]); for (subsub_index=0; subsub_index < stm_subsubmenu_item[menu_index][sub_index].length; subsub_index++) { //alert("stm_subsubmenu_item[" + menu_index + "][" + sub_index + "][" + subsub_index + "][0] = " + stm_subsubmenu_item[menu_index][sub_index][subsub_index][0]); stm_aix("p" + submenu_index + "i0","p0i0",[0,stm_subsubmenu_item[menu_index][sub_index][subsub_index][0],"","",-1,-1,0,stm_subsubmenu_item[menu_index][sub_index][subsub_index][1],stm_subsubmenu_item[menu_index][sub_index][subsub_index][2],"",stm_subsubmenu_item[menu_index][sub_index][subsub_index][3],"","",0,0,0,"","",0,0,0,stm_subsubm_alignment,1,stm_subsubm_bgcolor,stm_subsubm_bg_transparency,stm_subsubm_bgcolor_selected,stm_subsubm_bg_transparency_selected,"","",3,3,1,1,stm_subsubm_bordercolor_in,stm_subsubm_bordercolor_top_selected + " " + stm_subsubm_bordercolor_right_selected + " " + stm_subsubm_bordercolor_bottom_selected + " " + stm_subsubm_bordercolor_left_selected,stm_subsubm_fontcolor,stm_subsubm_fontcolor_selected]); } stm_ep(); } } } } submenu_index = submenu_index + 1; } stm_ep(); } } } stm_ep(); mainmenu_index = mainmenu_index + 1; } stm_ep(); stm_em(); }