function ColorBg(id,clr) { id.bgColor = clr; } var minutes; var seconds; var hours; function go(){ thetime = new Date(); if(thetime.getMinutes() < 10){minutes = "0"}else minutes = ""; if(thetime.getSeconds() < 10){seconds = "0"}else seconds = ""; hours = "" + thetime.getHours() + ":" + minutes+thetime.getMinutes() + " " + seconds+thetime.getSeconds() + ""; document.all.mess.innerHTML = hours; setTimeout("go()",1000)} function PopWind(name, width, height, lang) { var newWindow = window.open("contatti/cartina.html?img=" + name + "&width=" + width + "&height="+ height + "&lang=" + lang,"IMG","height=" + height + ",width=" + width + ",toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes"); } function PopWind2(name, width, height, lang) { var newWindow = window.open("contatti/cartina2.html?img=" + name + "&width=" + width + "&height="+ height + "&lang=" + lang,"IMG","height=" + height + ",width=" + width + ",toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes"); } function popUp(page, width, height, lang) { var newWindow = window.open(page,"titolo","height=" + height + ",width=" + width + ",toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes"); } function PopSend(path, title, url, lang) { var newWindow = window.open(path + "html/send.html" + "?title=" + title + "&url=" + url + "&lang=" + lang, "sendlink","height=530, width=450,toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes"); } function validate(form) { //alert(form); var j = 0; msg = ""; for(var i = 0;i < ele.length;i++) { if(isBlank(form, ele[i])) { invalid(form, ele[i]); msg = msg + msgs[i] +"\n"; j = j +1; } } if(j == 0) { return true; } else { alert(alertMsg + "\n"+ msg); return false; } } function validate2(form) { //alert(form); var j = 0; msg = ""; for(var i = 0;i < ele.length;i++) { if(isBlank(form, ele[i])) { invalid(form, ele[i]); msg = msg + msgs[i] +"\n"; j = j +1; } } if(j == 0) { return true; } else { alert(alertMsg + "\n"+ msg); return false; } } function invalid(form, ele) { if(!document.layers) { document.forms[form].elements[ele].style.borderColor = '#000099'; document.forms[form].elements[ele].style.background = '#FFFFDD'; } return msg; } function isBlank(form,ele) { str = document.forms[form].elements[ele].value; if(str == "") { return true; } else { return false; } }