function fnChange0Color(){
 var aReturn=document.getElementById("td1000");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange0Color1(){
 var aReturn=document.getElementById("td1000");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange1Color(){
 var aReturn=document.getElementById("td1001");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange1Color1(){
 var aReturn=document.getElementById("td1001");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange2Color(){
 var aReturn=document.getElementById("td1002");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange2Color1(){
 var aReturn=document.getElementById("td1002");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange3Color(){
 var aReturn=document.getElementById("td1003");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange3Color1(){
 var aReturn=document.getElementById("td1003");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange4Color(){
 var aReturn=document.getElementById("td1004");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange4Color1(){
 var aReturn=document.getElementById("td1004");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange5Color(){
 var aReturn=document.getElementById("td1005");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange5Color1(){
 var aReturn=document.getElementById("td1005");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange6Color(){
 var aReturn=document.getElementById("td1006");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange6Color1(){
 var aReturn=document.getElementById("td1006");
 if (aReturn) aReturn.className = 'bgv';
}
function fnChange7Color(){
 var aReturn=document.getElementById("td1007");
 if (aReturn) aReturn.className = 'bgv1';
}

function fnChange7Color1(){
 var aReturn=document.getElementById("td1007");
 if (aReturn)  aReturn.className = 'bgv';
}
/*var dateMod = document.lastModified ;
var month = dateMod.substring(0,2);
var day = dateMod.substring(3,5);
var year = dateMod.substring(6,10);
  if(month == 01)
  {
    month = "января";
  }

  if(month == 02)
  {
    month = "февраля";
  }

  if(month == 03)
  {
    month = "марта";
  }

  if(month == 04)
  {
    month = "апреля";
  }

  if(month == 05)
  {
    month = "мая";
  }

  if(month == 06)
  {
    month = "июня";
  }

  if(month == 07)
  {
    month = "июля";
  }

  if(month == 08)
  {
    month = "августа";
  }

  if(month == 09)
  {
    month = "сентября";
  }

  if(month == 10)
  {
    month = "октября";
  }

  if(month == 11)
  {
    month = "ноября";
  }

  if(month == 12)
  {
    month = "декабря";
  }
*/
function popUpPic(URL) {
  var inc_y = 49;
  var inc_x = 11;
  params = "top=5,left=5,width=600,height=650,Status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=yes";
  popupWin = window.open("","popupWin",params);
  popupWin.focus();     
  popupWin.document.open();
  popupWin.document.write("<html><head><title></title><base href=\"http://www.avim.ru\"></head>");
  popupWin.document.write("<script language = JavaScript>");
  popupWin.document.write("function closeWindow() {");
  popupWin.document.write("parent.window.close();}");
  popupWin.document.write("function resize(){");
//  popupWin.document.write("alert('ok');");
  popupWin.document.write(" if(window.document.images[0].height > (window.screen.height-100))");
  popupWin.document.write(" {q = window.screen.height-100;}");
  popupWin.document.write("else{q = window.document.images[0].height;}");
//  popupWin.document.write("alert(q);");
//  popupWin.document.write("alert(window.screen.height-150);");
  popupWin.document.write("window.resizeTo(window.document.images[0].width+"+inc_x+",q+"+inc_y+");}");
  popupWin.document.write("</scri"+"pt>");
  popupWin.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><a href=''><img src='"+URL+"' border='0' name='cha1' onClick='closeWindow()' onLoad='resize();' alt=''></a></body></html>");
  popupWin.document.close();
}

function changePic(id,picbig,pics,ws,hs)
{

  idel=document.getElementById(id);
  idel.innerHTML="<a onClick=\"popUpPic('images/port/"+picbig+"')\" style=\"cursor: hand; cursor: pointer;\"><img src=\"images/port/"+pics+"\" width=\""+ws+"\" height=\""+hs+"\" border=\"0\" style=\"border: 1px solid #8B0404;\"></a>";
}  