function rpop(address) //всплывающее окно
{
tp = Math.ceil((screen.height-550)/2);
lf = Math.ceil((screen.width-600)/2);
window.open(address, "ViewMessage", "toolbar=0, width=600, height=550, top="+tp+", left="+lf+", scrollbars=yes");
}

function rmini(address) //всплывающее для проигрывания музыки
{
tpm = Math.ceil((screen.height-150)/2);
lfm = Math.ceil((screen.width-350)/2);
window.open(address, "ViewMessage2", "toolbar=0, width=350, height=150, top="+tpm+", left="+lfm+", scrollbars=yes");
}

function do18(val) // запрос на 18 лет
{
if ( window.confirm("Я подтверждаю, что мне больше 18 лет.")) { location.href=val };
}

function chmod() // для списка телефонов
{
var l=document.forms.mform.md.length;
for(var c=l;c>0;c--) { document.forms.mform.md[c]=null;}
numberarray=document.forms.mform.mark.selectedIndex;
for (var c=0; c<sumos[numberarray]; c++) 
{document.forms.mform.md.options[c]=new Option(opt[numberarray][c*2], opt[numberarray][c*2+1]);}
}