function printPage()
{
   var options = "menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=460;"
   url = top.location.href;
   if (url.indexOf("#")>0) url = url.substring(0, url.indexOf("#"));
   if (url.indexOf("?")>0) url = url + "&print=yes";
   else url = url + "?print=yes";
   printWindow=window.open(url,"_blank",options);
}

function printPageEn()
{
   var options = "menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=460;"
   url = top.location.href;
   if (url.indexOf("#")>0) url = url.substring(0, url.indexOf("#"));
   if (url.indexOf("?")>0) url = url + "&print=yes&eng=yes";
   else url = url + "?print=yes&eng=yes";
   printWindow=window.open(url,"_blank",options);
}

function popup(url, width, height)
{
      var options = "toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+";"
      popupWindow=window.open(url,"_blank",options);
}

function wjPopup(url, width, height)
{
      var options = "toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+";"
      popupWindow=window.open(url,"_blank",options);
}

var oldDivId;
oldDivId = "0";

function openClose(divId)
{
   if(document.getElementById)
   {
      if (oldDivId!="") document.getElementById(oldDivId).style.display="none";
      document.getElementById(divId).style.display="block";
      oldDivId = divId;
   }
   else if(document.all)
   {
      if (oldDivId!="") document.all[oldDivId].style.display="none";
      document.all[divId].style.display="block";
      oldDivId = divId;
   }
   else
   {

   }
}

function openCloseNR(divId)
{
document.cookie = "vuczaOblast=" + divId ;

   oblastOld = "oblast"+oldDivId;      
   oblast = "oblast"+divId;
   if(document.getElementById)
   {
      if (oldDivId!="") document.getElementById(oblastOld).style.display="none";
      document.getElementById(oblast).style.display="block";
      oldDivId = divId;
   }
   else if(document.all)
   {
      if (oldDivId!="") document.all[oblastOld].style.display="none";
      document.all[oblast].style.display="block";
      oldDivId = divId;
   }
   else
   {

   }
}

