function editnaspunkt(id,name,curformid) { document.forms(curformid).act.value="edit"; document.forms(curformid).naspid.value=id; document.forms(curformid).naspunkt.value=name; //curform.submit(); } function edittzone(name,tid) { document.forms("tzonefrm").act.value="edittz"; document.forms("tzonefrm").tzoneid.value=tid; document.forms("tzonefrm").tzone.value=name; //curform.submit(); } function makevalue() { document.all("mailusersstatus").selectedIndex=document.all("mailusers").selectedIndex; } function test(eingabe) { var reg1 = /(@.@)|(\.\.)|(@\.)|(\.@)|(^\.)/; var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; if (!reg1.test(eingabe) && reg2.test(eingabe)) { // alert("OK! Этот адрес мне подходит!"); document.forms("mailform").submit(); } else { alert("Ошибка! Впишите правильный адрес."); } } function Sure($href){ if(confirm("Вы уверены?")){ location.href=$href; } else{ return false; } } function Voting(id){ t=''; var frm=document.Vote; var inp;var i=0; while(1){ inp=frm.elements[i]; if(inp==null) break; if((inp.type=='radio'||inp.type=='checkbox')&&inp.checked) t+='&'+inp.name+'='+inp.value; if(inp.type!='radio'&&inp.type!='checkbox') t+='&'+inp.name+'='+inp.value; i++; } window.open("/cgi-bin/opros/vote.cgi?vote=yes&act=vote&id="+id+'&'+t.substring(1),"result",'width=640,height=400'); } function View(img_id, img_w, img_h, ext){ //var w = window.open('/files/open.html?fid='+img_id,'_blank','height='+img_h+'px;width='+img_w+'px'); window.open('/cgi-bin/files/files.cgi?type=file&act=view&fid='+img_id,'file_view','height='+img_h+',width='+img_w); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i