
	jsHover = function() {
		if(document.getElementById("nav")==null) return;
		var hEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0, len=hEls.length; i<len; i++) {
			hEls[i].onmouseover=function() { this.className+=" jshover"; }
			hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
		}
	}
	if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);

/*
<!--[if IE 6]>
<script type="text/javascript" src="images/fixpng.js"></script>
<style type="text/css"> 
.iePNG, IMG, img.iePNG { filter:expression(fixPNG(this)); } 
.iePNG A { position: relative; } /* стиль для нормальной работы ссылок в элементах с PNG-фоном */ /*
</style>
<![endif]-->
*/


function openwin(fn,sz){     
	try { pw.close(); }	catch (exception) {};
	 pw=window.open("","pw","toolbar=0,location=0,"+sz);
     pw.document.open();
     pw.document.writeln("<HTML><TITLE> Фото </TITLE><BODY BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
     pw.document.writeln("<IMG SRC='"+fn+"' BORDER=0></BODY></HTML>");
}


/*
function openpic(pic,wh) { 
	try { ow.close(); } catch (exception) {};
//	ow=open("?m=picture&pic="+pic, "ow1", wh+",status=no,toolbar=no,menubar=no,scrollbars=no");
	ow=open(pic, "ow1", wh+",status=no,toolbar=no,menubar=no,scrollbars=no");
}

function openwin(url,wh) { 
	try { ow.close(); } catch (exception) {};
	ow=open(url, "ow1", wh+",status=yes,toolbar=1,menubar=1,scrollbars=1");
}
*/


function cle(el){
	if(el=="undefined") return
	if (typeof(el.mark) == 'undefined') {
		if(el.name!="text") el.value='' 
		else el.innerHTML=''
		el.mark=1;
	}
}



function imgopen(imgf,tit){

rand_id='image'+(Math.round(Math.random()*1000));
outf="<html>"
  +"<head>"
  +"<title>"+tit+"</title>"
  +"<style>body{margin:0px}</style>"
  +"</head>"
  +"<"+"body"+" leftmargin=0 topmargin=0>"
  +"<img src=\""+imgf+"\">";

iopen="iwin = self.open('"+imgf+"', '"+rand_id+"', 'width='+(img1.width)+',height='+(img1.height)+',top=0,left=0');"
    +"iwin.document.write('"+outf+"');"
    +"iwin.focus();";

img1=new Image();
img1.src=imgf;

if(img1.width!=0) eval(iopen);

else{
iwin = self.open('about:blank', 'f'+rand_id, 'width=100,height=100,top=0,left=0');
iwin.document.write("<html>"
+"<"+"body"+">Загрузка...<br>"
  +"<"+"script>"
    +"function imo(img1){"+iopen
    +"self.close();"
  +"}<"+"/script>"
  +"<img src='"+imgf+"' onload='imo(this);'>");
  }
}


function pollgo(){
	p=pform.ansid
	for(i=0;i<p.length;i++)
		if(p[i].checked) {
			pform.submit()
			return true
		}
	alert("Выберите ответ!")
}

function pollcheck(p){
	for(i=0;i<p.length;i++)
		if(p[i].checked) {
			vform.submit()
			return true
		}
	alert("Выберите ответ!")
//	return false
}

