<!--//--><![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 show(n){ 
eval("document.all.my"+n+".style.display='block';"); 
eval("document.all.showmy"+n+".style.display='none';"); 
eval("document.all.hidemy"+n+".style.display='inline';"); 
} 
function hide(n){ 
eval("document.all.my"+n+".style.display='none';"); 
eval("document.all.showmy"+n+".style.display='inline';"); 
eval("document.all.hidemy"+n+".style.display='none';"); 
} 




function checkform(f) {
  var errMSG = "";            
  for (var i = 0; i<f.elements.length; i++) 
    if (null!=f.elements[i].getAttribute("required")) 
        if (isEmpty(f.elements[i].value))
            errMSG += "" +  + "\n";

        if ("" != errMSG) {
            alert("Все поля обязательны для заполнения!\n");
            return false;
        }
}

function isEmpty(str) {
   for (var i = 0; i < str.length; i++)
      if (" " != str.charAt(i))
          return false;
      return true;
}



