//<!--

function go(s) { if (s!=0) document.location.href=""+s+""; }

function ViewFullPic(pic_id, pic_name, pic_width, pic_height) {
var 
	winwidth = screen.availWidth - 50;
	winheight = screen.availHeight - 50;
	if ((pic_width + 30) < winwidth) winwidth = pic_width + 30;
	if ((pic_height + 250) < winheight) winheight = pic_height + 250;
	window.open("/fun-pics/view/"+pic_id+"/"+pic_name+"",""+pic_name+"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1, width="+winwidth+", height="+winheight+", top=3,left=10");

}

function ViewFullPicOpt(pic_id, pic_name, pic_width, pic_height) {
var 
	winwidth = screen.availWidth - 50;
	winheight = screen.availHeight - 50;
	if ((pic_width + 30) < winwidth) winwidth = pic_width + 30;
	if ((pic_height + 250) < winheight) winheight = pic_height + 250;
	window.open("/optical/view/"+pic_id+"/"+pic_name+"",""+pic_name+"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1, width="+winwidth+", height="+winheight+", top=3,left=10");
}

function Check_Form() {
	if (document.art_vote.rate.value == 'empty') { alert("Вы не выбрали сколько баллов добавить !"); return false; }
	return true;
}

function doAction() {
stroka=document.pvdsubs.email.value; ind=stroka.indexOf('\@');
//if (document.pvdsubs.email.value.indexOf('@semen.com')<0 && document.pvdsubs.email.value.indexOf('@fincom.com')<0) {
	if (ind>0 && ind<stroka.length-1) {
	  pvdWin= open("", "pvdwin", "width=350,height=200");
	  pvdWin.focus(); pvdWin.document.open();
	  pvdWin.document.write("<html><head><title>Обработка данных... ");
	  pvdWin.document.write("</title></head>");
	  pvdWin.document.write("<body topmargin=0 bgcolor=#B2C2CF leftmargin=0 marginwidth=0 marginheight=0>");
	  pvdWin.document.write("<table width=100% height=100% align=center><tr><td align=center>Минуточку...</td></tr></table>");
	  pvdWin.document.write("</body></html>");
	  pvdWin.document.close();  
	  document.pvdsubs.submit();
	} else {alert('Введен неверный E-Mail');}
//} else {alert('Подписка на данный адрес не разрешена. Введите другой адрес email.');}
}


function check_sform() {
	t=document.forms.search;
	if (t.search.value<=0) { alert('Вы не ввели поисковый запрос!'); return false; }
	if (t.search.value.length<=2) { alert('Поисковый запрос минимум 3 символа!'); return false; }
	t.action="/seek/"+t.search.value;
	return true;
}
function check_gform() {
	t=document.forms.gsearch;
	if (t.search.value<=0) { alert('Вы не ввели поисковый запрос!'); return false; }
	if (t.search.value.length<=2) { alert('Поисковый запрос минимум 3 символа!'); return false; }
	t.action="/seek/"+t.search.value;
	return true;
}

//-->