String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,'');} var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var imgs="/artworks"; var url_tobookmark="Maria Etcheverry"; var id_idioma=1 function abrirVentana(url, width, height, name) { if (name==null) {name='nueva_ventana';} var str = "height=" + height + ",innerHeight=" + height; str += ",width=" + width + ",innerWidth=" + width; if (window.screen) { var ah = screen.availHeight - 30; var aw = screen.availWidth - 10; var xc = (aw - width) / 2; var yc = (ah - height) / 2; str += ",left=" + xc + ",screenX=" + xc; str += ",top=" + yc + ",screenY=" + yc; } str += ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no"; objwin=window.open(url, name, str); objwin.focus(); } function getObj(id) {if (document.getElementById) {return document.getElementById(id)} else if (document.all) {return document.all[id]} else {return document.all[id]}} function setget_attr(obj, prop, val) { if (!val) return obj.getAttribute(prop); else { if (prop=="onmouseover" || prop=="onmouseout" || prop=="onclick" || typeof val=="function") { //Parche IE8 if (BrowserDetect.browser=="Explorer" && BrowserDetect.version=="8") obj.attachEvent(prop, new Function('"+val+"'), false); else { if (BrowserDetect.browser=="Explorer") val = Function(val); } } obj.setAttribute(prop,val); } } var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i 0) { DHTMLALERT(mensaje); obj_focus=form.email; return false; } if (valor!=confirm_email) {DHTMLALERT(mensaje_extra);obj_focus=form.email;return false;} } else { if (valor=="") {DHTMLALERT(mensaje);obj_focus=eval("form."+campo);return false;} } } var o=getObj("btn_submit"); if (o!=null) {o.disabled=true;} return true; } function clear_input(o,l) { if (o.value==l) {o.value='';} } function check_form_registro_home(form) { var aux="Dirección de correo incorrecta o email no válido.|Los emails no coinciden.".split("|"); if (form.tiny_email.value.indexOf('@') < 0 || form.tiny_email.value.indexOf('.') < 0 || form.tiny_email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); form.tiny_email.focus();return false;} return true; } function cambiar_estilos(ID_STYLE,seccion) { var file="/scripts/set_styles.php?id_style="+ID_STYLE; if (seccion!=undefined) {file+="&seccion="+seccion;} crear_script_tag(file); } function crear_script_tag(arch) { var sc_obj="JS_SCRIPT_OBJECT"; var obj_head = document.getElementsByTagName("head").item(0) scriptTag = document.getElementById(sc_obj); if(scriptTag!=null) { obj_head.removeChild(scriptTag); delete scriptTag; scriptTag=null; } scriptTag = document.createElement("SCRIPT"); var vch="?"; if (arch.indexOf("?")!=-1) vch="&"; scriptTag.src = arch+vch+Math.random()*1000000; scriptTag.type = 'text/javascript'; scriptTag.id = sc_obj; obj_head.appendChild(scriptTag); } function validar_recomendar(form) { if (form.miemail.value.indexOf('@') < 0 || form.miemail.value.indexOf('.') < 0 || form.miemail.value.indexOf(',') > 0) { DHTMLALERT('Indique su email'); form.miemail.focus(); return false; } if (form.minombre.value == '') { DHTMLALERT('Indique su nombre'); form.minombre.focus(); return false; } if (form.tunombre.value == '') { DHTMLALERT('Indique el nombre de la persona a quien nos recomienda'); form.tunombre.focus(); return false; } if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) { DHTMLALERT('Indique el email de la persona a quien nos recomienda'); form.tuemail.focus(); return false; } return true; }