// для баннеров	

var ps=7;
var as=3;
var sp=3;

var ps1=Math.round(Math.random()*(ps-1));
var as1=Math.round(Math.random()*(as-1));
var sp1=Math.round(Math.random()*(sp-1));


var q100t=Math.round(Math.random()*10000);
var q100b=Math.round(Math.random()*10000);
var q468=Math.round(Math.random()*10000);

function image(htmlfile)
{
window.open(htmlfile,'links','height=600, width=600, status=0,toolbar=0,menubar=0,location=0,directories=0,top=10,left=10,alwaysRaised=1,alwaysLowered=0,scrollbars=1');
}

function imageb(htmlfile)
{
window.open(htmlfile,'links','height=800, width=800, status=0,toolbar=0,menubar=0,location=0,directories=0,top=10,left=10,alwaysRaised=1,alwaysLowered=0,scrollbars=1');
}

function resvote()
{
window.open("votes_old.html",'winresv','height=500, width=600, status=0,toolbar=0,menubar=0,location=0,directories=0,top=10,left=10,alwaysRaised=1,alwaysLowered=0,scrollbars=1');
}

function res()
{
window.open("http://sch297.portal.ru/cgi-bin/scvote.pl",'winres','height=500, width=600, status=0,toolbar=0,menubar=0,location=0,directories=0,top=10,left=10,alwaysRaised=1,alwaysLowered=0,scrollbars=1');
}

function loadstyle()
{
if (navigator.appName!='Microsoft Internet Explorer')
{
document.write('<link href="stylens.css" rel="stylesheet" type="text/css">')
} 
else 
{
document.write('<link href="style.css" rel="stylesheet" type="text/css">')
}

}

function fnone(img)
{
if (navigator.appName=='Microsoft Internet Explorer')
{
img.style.filter="gray()";
} 
else 
{
return true;
}
}

function fgray(img)
{
if (navigator.appName=='Microsoft Internet Explorer')
{
img.style.filter="none";
} 
else 
{
return true;
}
}

function restrig()
{

otv=document.trig.otvet.value;

// передача параметров в новый html

var page='restrig.html?res='+otv;

window.open(page,'links','height=400, width=500, status=0,toolbar=0,menubar=0,location=0,directories=0,top=10,left=10,alwaysRaised=1,alwaysLowered=0,scrollbars=1');
return false;

}
// конец функции

function CheckFormAdd_AQ()
{

var ss=document.Add_AQ.v_fio.value;
//проверка пустой строки
if (ss=="")
{
alert('Не введено имя. Повторите ввод!');
return false;
}

var ss=document.Add_AQ.v_vopr.value;
//проверка пустой строки
if (ss=="")
{
alert('Не введен вопрос. Повторите ввод!');
return false;
}

return true;
}


