function parameter_select_check()
{
	var parameter_ckecked=0;
	for (var i_counter=1, len_counter=5; i_counter<len_counter; i_counter++)
	{
	if (document.getElementById("enum"+i_counter))
	if (document.getElementById("enum"+i_counter).value>0) parameter_ckecked++;
	}
	return(parameter_ckecked);
}

function PID(GoodId)
{
o=document.getElementById('SearchHDD'); 
if (GoodId>0) o.src='/price/search_hdd.php?good_id='+GoodId;
else
 {
	for (var i=".$input_start.", len=".$input_finish."; i<len; i++)
	{
		checkgood=document.getElementsByTagName('input')[i];
		if (checkgood) checkgood.checked=false;
	}
	o.src='/price/search_hdd.php?reset=1';
 }
}

function InsPos(id, CurrencyCode, cur_idc)
{
if (isMSIE)
{
	if (parent.Basket==null) 
		{
		document.location.href='http://www.nix.ru/price/virtualshop.html?golink='+document.location.href+'&bask='+id+'&element='+document.activeElement.sourceIndex+'&CurCode='+CurrencyCode+'&cur_idc='+cur_idc;
		}
	else 
		{
		if (parent.IDs!=null){
			if (parent.Basket.CompTable.style.display=="none"){
				parent.InsertPosition(id, top.Price.document.activeElement.sourceIndex, CurrencyCode, cur_idc);
			}else{
				parent.InsertIntoProduct(id, CurrencyCode, cur_idc);
			}
		}
		}
}
else alert('Извините, но корзина работоспособна только в Internet Explorer!\nДля браузера Firefox Вы можете воспользоваться расширением IEtab\nhttp://ietab.mozdev.org/\nЕсли Вы используете Linux, то воспользуйтесь Java-магазином\nhttp://www.nix.ru/VirtualNixShop20/VirtualNixShop20.html');
}

function InsConfPar(id, CurrencyCode, cur_idc)
{
if (isMSIE)
{
	if (parent.Basket==null) 
		{	
		document.location.href='http://www.nix.ru/price/virtualshop.html?golink='+document.location.href+'&bask='+id+'&element='+document.activeElement.sourceIndex+'&CurCode='+CurrencyCode+'&cur_idc='+cur_idc+'&show_conf=1';
		}
	else 
		{
		if (parent.IDs!=null){
			if (parent.Basket.CompTable.style.display=="none"){
				parent.InsertPosition(id, top.Price.document.activeElement.sourceIndex, CurrencyCode, cur_idc);
				parent.ShowConfiguration(parent.ProductID, 2);
			}else{
				parent.InsertIntoProduct(id, CurrencyCode, cur_idc);
			}
		}
		}
}
else alert('Извините, но корзина работоспособна только в Internet Explorer!\nДля браузера Firefox Вы можете воспользоваться расширением IEtab\nhttp://ietab.mozdev.org/\nЕсли Вы используете Linux, то воспользуйтесь Java-магазином\nhttp://www.nix.ru/VirtualNixShop20/VirtualNixShop20.html');
}

function LinkControl()
{
var basket_size=top.frames.Basket.BasketTable.scrollHeight;
if (basket_size==55) 
	{
	var coll = document.all.tags("a");
	if (coll!=null)
	{
    for (i=0; i<coll.length; i++) 
    coll[i].target="_top";
	}
	}
}

function OverCell(which) 
{ 
document.all['name'+which].style.background = '#eeeeee'; 
document.all['c1'+which].style.background = '#eeeeee'; 
document.all['c2'+which].style.background = '#eeeeee'; 
document.all['c3'+which].style.background = '#eeeeee'; 
}

function OutCell(which) 
{ 
document.all['name'+which].style.background = '#ffffff'; 
document.all['c1'+which].style.background = '#ffffff'; 
document.all['c2'+which].style.background = '#ffffff'; 
document.all['c3'+which].style.background = '#ffffff'; 
}

function ClkBtnRM(divname) 
{ 
objr=document.getElementById(divname);
if (objr.style.display=='block')
{
objr.style.display='none';
}
else
{
objr.style.display='block';
}
}

isDOM=document.getElementById; //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
isOpera=isOpera5=window.opera && isDOM; //Opera 5+
isMSIE=document.all && document.all.item && !isOpera; //Microsoft Internet Explorer 4+
jsHover = function() {
    var hEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0, len=hEls.length; i<len; i++) {
      hEls[i].onmouseover=function() { this.className+=" jshover"; }
      hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
    }
  }
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
