<!--//--><![CDATA[//><!--
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]>

function vr() {
window.open('http://zorg.ua/video.htm','','width=350,height=280');
}
function vr2() {
window.open('http://zorg.ua/video2.htm','','width=375,height=295');
}
function vr3() {
window.open('http://zorg.ua/video3.htm','','width=360,height=288');
}

function vrolik() {
window.open('http://zorg.ua/roliki/index.htm','','width=500,height=450');
}
function vrolik2() {
window.open('http://zorg.ua/roliki/index2.htm','','width=500,height=450');
}
function vrolik3() {
window.open('http://zorg.ua/roliki/index3.htm','','width=500,height=450');
}
function vrolik4() {
window.open('http://zorg.ua/roliki/index4.htm','','width=500,height=450');
}
function vrolik5() {
window.open('http://zorg.ua/roliki/index5.htm','','width=500,height=450');
}
function vrolik6() {
window.open('http://zorg.ua/roliki/index6.htm','','width=500,height=450');
}
function vrolik7() {
window.open('http://zorg.ua/roliki/index7.htm','','width=500,height=450');
}
function vrolik8() {
window.open('http://zorg.ua/roliki/index8.htm','','width=500,height=450');
}
function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function validateForm() {
  var i,p,q,nm,test,num,min,max,errors='',args=validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- Ошибка! Введен неправильный e-mail адрес.\n';
      } else if (test!='R') { num = parseFloat(val);
		 } } else if (test.charAt(0) == 'R') errors += '- Ошибка! Не заполнено обязательное поле.\n'; }
  } if (errors) alert(errors);
  document.returnValue = (errors == '');
}
