var jsROOT = 'http://www.clubgusto.es'; // per obrir "trabaja con nosotros" function openjobs(){ open(jsROOT+"/jobs.html","jobs","titlebar=no,left=200,top=50,width=450,height=300,alwaysRaised=yes"); } // per obrir "nota legal" function opennota(){ open(jsROOT+"/notalegal.html","notalegal","titlebar=no,left=200,top=50,width=450,height=600,scrollbars=yes, alwaysRaised=yes"); } // per obrir "normas contratacion" a la pàgina de compraonline function opencontracte(){ open(jsROOT+"/contratacion.html","contratacion","titlebar=no,left=200,top=50,width=475,height=450,scrollbars=yes, alwaysRaised=yes"); } // per obrir "la ley de proteccion de datos" a la pàgina de compraonline function openley(){ open(jsROOT+"/protecciondatos.html","protecciondatos","titlebar=no,left=200,top=50,width=450,height=450,scrollbars=yes, alwaysRaised=yes"); } function contacto(){ open(jsROOT+"/contacto.php","contacto","titlebar=no,left=200,top=50,width=475,height=600,scrollbars=yes, alwaysRaised=yes"); } function amigo(id){ open(jsROOT+"/email_amigo.php?id="+id,"amigo","titlebar=no,left=200,top=50,width=475,height=650,scrollbars=yes, alwaysRaised=yes"); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);} String.repeat = function(chr,count) { var str = ""; for(var x=0;x -1) format = format.replace("yyyy",year.toString()); else if (format.indexOf("yy") > -1) format = format.replace("yy",year.toString().substr(2,2)); format = format.replace("dd",date.getDate().toString().padL(2,"0")); var hours = date.getHours(); if (format.indexOf("t") > -1) { if (hours > 11) format = format.replace("t","pm") else format = format.replace("t","am") } if (format.indexOf("HH") > -1) format = format.replace("HH",hours.toString().padL(2,"0")); if (format.indexOf("hh") > -1) { if (hours > 12) hours - 12; if (hours == 0) hours = 12; format = format.replace("hh",hours.toString().padL(2,"0")); } if (format.indexOf("mm") > -1) format = format.replace("mm",date.getMinutes().toString().padL(2,"0")); if (format.indexOf("ss") > -1) format = format.replace("ss",date.getSeconds().toString().padL(2,"0")); return format; }