function reloadPage() { window.location.reload(); } function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, ',type=fullWindow,fullscreen,scrollbars=no'); return false; } function resetusername() { document.formrec.username.value=""; document.formrec.username.focus(); } function resetemail() { document.formrec.email.value=""; document.formrec.email.focus(); } function DropDownMenu(entered) { // ********** DROP DOWN MENU (c) Henrik Petersen / NetKontoret - All rights reserved **************** // The script is explained along with other useful scripts at: http://www.echoecho.com/javascript.htm // You may freely use this script as long as you do not remove this line and the 2 lines above. with (entered) { ref=options[selectedIndex].value; splitcharacter=ref.lastIndexOf("$"); if (splitcharacter!=-1) {loc=ref.substring(0,splitcharacter); target=ref.substring(splitcharacter+1,1000).toLowerCase();} else {loc=ref; target="_self";}; lowloc=loc.toLowerCase(); if (lowloc=="false") {return;} if (target=="_self") {document.location=loc;} else {if (target=="_top") {top.location=loc;} else {if (target=="_blank") {window.open(loc);} else{if (target=="_parent") {parent.location=loc;} else {parent.frames[target].location=loc;}; } } } } } function sendmodulo(theForm) { if ( theForm.email.value == "") { alert("E-mail obbligatory"); theForm.email.focus(); return (false); } if ( theForm.password.value == "") { alert("Inserire la password"); theForm.password.focus(); return (false); } Richiesta(theForm.email.value+'|'+theForm.password.value+'|'+theForm.files.value,'accesso.asp','dlogin'); } function setemail(theForm) { //alert (theForm) if ( theForm.email.value == "") { alert("Il campo email non puņ essere vuoto"); theForm.email.focus(); return (false); } Richiesta(theForm.email.value,'setemail.asp','setemail'); } function cambiapwd(theForm) { //alert (theForm) if ( theForm.password.value == "") { alert("Il campo password non puņ essere vuoto"); theForm.password.focus(); return (false); } Richiesta(theForm.password.value,'/cambiopwd','setemail'); } function sendrecupera(theForm) { if ( theForm.email.value == "" ) { alert("Inserire email"); theForm.email.focus(); return (false); } Richiesta(theForm.email.value,'recupera.asp','dlogin'); } function invia(azione,theForm) { //alert(azione) document.forms[theForm].action =azione; document.forms[theForm].submit(); } function cpassword(theForm) { if ( theForm.npassword.value == "" ) { alert("Inserire la password"); theForm.npassword.focus(); return (false); } Richiesta(theForm.npassword.value,'/cpassword','pwd'); }