/* Создание нового объекта XMLHttpRequest для общения с Web-сервером */
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function openIt() {
 currEl = event.srcElement;
 if (currEl.className == "subhead") {
 newId = currEl.id + "vis" 
 imgId = currEl.id
 showIt = document.all(newId) ;
 if (showIt.style.display == "none") {
 showIt.style.display = "" ;
 document.images(imgId).src = 'img/minus.gif' 
 } else {
 showIt.style.display = "none" ;
 document.images(imgId).src = 'img/plus.gif' 
 }
 }
}

function OvrCellServ(src)
{ 
src.style.backgroundColor = '#CC0000';
	return true;
}


function OutCellServ(src)
{ 
src.style.backgroundColor = '#1D3A67';
	return true;
}


function OvrCellNav(src)
{ 
src.style.cursor = 'hand';
src.style.backgroundColor = '#787878';
if(event.srcElement.tagName=='TD') {window.status=src.children.tags('A')[0];
}
	return true;
}


function OutCellNav(src)
{ 
src.style.cursor = 'default';
src.style.backgroundColor = '';
window.status='';
	return true;
}
function OvrCellNav0(src)
{ 
src.style.cursor = 'hand';
src.style.backgroundColor = '#4897C6';
if(event.srcElement.tagName=='TD') {window.status=src.children.tags('A')[0];
}
	return true;
}


function OutCellNav0(src)
{ 
src.style.cursor = 'default';
src.style.backgroundColor = '';
window.status='';
	return true;
}

function OCN(src)
{ 
src.style.cursor = 'hand';
src.style.backgroundColor = '#4897C6';
window.status='';
if(event.srcElement.tagName=='TD') {window.status=src.children.tags('A')[0];}
	return true;
}
function OCN1(src)
{ 
src.style.cursor = 'hand';
src.style.backgroundColor = '';
window.status='';
	return true;
if(event.srcElement.tagName=='TD') {window.status=src.children.tags('A')[0];}
}




function tst(idrec){
alert(idrec);
}


function calccol(idrec){
var colvo=document.getElementById('count'+idrec).value;
var price=document.getElementById('price'+idrec).value;
var su=price*colvo;
document.getElementById('itog'+idrec).innerHTML=su;
document.getElementById('c'+idrec).value=colvo;
}
