function cookieinput(){ var MM,NN,j;with(document)for(j=0;j<forms.length;j++) if(forms[j].FROM&&forms[j].mail)with(forms[j]) {NN=FROM.value;MM=mail.value;} setCookie("NAME",NN);setCookie("MAIL",MM);}
function setCookie(key, val, tmp) {tmp=key+"="+escape(val)+"; ";tmp+="expires=Fri, 31-Dec-2030 23:59:59;"; tmp+="path="+location.pathname+"; ";document.cookie=tmp;}