function popup(path,x,y){
        win= open(path,"win","toolbar=no,location=no,directories=no,"+
        "status=no,scrollbars=yes,resizable=no,"+
        "copyhistory=no,width="+x+",height="+y);
}
function confirmDelete() { //подтверждение удаления пользователя
	return window.confirm('Delete?');
};

function FormPath(w,h){
        k= document.vote.elements.length;
        for (i=1;i<k;i++){
                if (document.vote.elements[i].checked){
                        CheckElem= document.vote.elements[i].value;
                        break;
                }
        }
        param="/cgi-bin/vote/tigvote.cgi?action=submit&file="+document.vote.file.value+"&tigvote="+CheckElem;
        popup(param,w,h);
}
function mail(w,h){
var CheckElem = "";
k= document.txtlist.type.length;
        for (i=0;i<k;i++){
                if (document.txtlist.type[i].checked){
                        CheckElem= document.txtlist.type[i].value;
                        break;
                }
        }
popup('/maillist/index.php?sub=go&email='+document.txtlist.email.value+'&type='+CheckElem,w,h);
}