function delf(name,isins,isin){if(confirm(wishto()+"удалить файл "+name.substring(7)+"? Ссылки на него в ваших сообщениях не будут работать, пока вы не закачаете другой файл с таким же именем и теми же правами на скачивание!"))
{strval='http://'+location.hostname+'/quit.php?n='+name;
if(isins){strval=strval+'&ins='+String(isins)}else{if(isin){strval=strval+'&in='+isin}}
location.href=strval}}

function setftype()
{if(document.getElementById("fmfn").value)
{strval=document.getElementById("fmfn").value;
intval=strval.lastIndexOf('.');
if(intval>0 && strval.length-intval>2)
{strval=strval.substr(intval+1);
strval=strval.toLowerCase();
switch(strval)
{case 'jpg':
case 'jpeg':
case 'jpe':
case 'jif':
case 'gif':
case 'bmp':
case 'rle':
case 'dib':
case 'bga':
case 'vga':
case 'rle':
case 'rl4':
case 'rl8':
case 'pcx':
case 'tga':
case 'png':
case 'tif':
intval=1;
break;
case 'avi':
case 'div':
case 'mov':
case 'qt':
case 'dl':
case 'cel':
case 'flc':
case 'fli':
case 'flv':
case 'wmv':
case 'mpg':
case 'm1v':
case 'mpe':
case 'mpv':
case 'asf':
intval=2;
break;
case 'mp1':
case 'mp2':
case 'mp3':
case 'voc':
case 'wav':
case 'snd':
case 'wma':
case 'au':
case 'mid':
case 'rmi':
case 'midi':
case 'aif':
case 'aifc':
case 'aiff':
intval=3;
break;
default:
intval=9}}else{intval=9}
document.getElementById("fmft").value=intval}}
