<!-- 
function na_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 closeWinPopUp() 
{
	if (document.login.test2.value!='')
	{  
		popupWin.close();
	}
}
function ExpandOrderContent(NumOrder)
{
	if (document.getElementById("bt_"+NumOrder).className.match(/\bbg_down\b/))
	{
		document.getElementById("order_"+NumOrder).style.visibility="inherit";
		document.getElementById("order_"+NumOrder).style.position="static";
		document.getElementById("bt_"+NumOrder).className ="bg_up";
	}					
	else 
	{
		document.getElementById("order_"+NumOrder).style.visibility="hidden";
		document.getElementById("order_"+NumOrder).style.position="absolute";
		document.getElementById("bt_"+NumOrder).className ="bg_down";
	}
}
function colorize(fff)
{
var ddd = document.order.test.value;
var sss = document.order.test2.value;
if(ddd!='')
	{	document.getElementById(ddd).style.cssText = sss;
	}
	document.order.test.value = fff;
	document.order.test2.value =document.getElementById(fff).style.cssText;
	document.getElementById(fff).style.cssText = "BACKGROUND-COLOR: #fafad2";
}
function CnnStep(s)
{
	document.searchform2.new_step.value = s;
	document.searchform2.submit();
}
function CnnSort(s)
{
	document.searchform2.new_sort.value = s;
	document.searchform2.submit();
}
function CnnPage(s)
{
	document.searchform2.PageNo.value = s;
	document.searchform2.submit();
}

function PlusOrder(fff)
{
	var i = fff-1;
	var ddd = document.order.Kl(i).value;
	ddd=ddd+1
	document.order.Kl(i).value = ddd;
}


function main() 
{
  top.location.href = '/';
}

function getBigImage(imgPath)
{
	var progressWin = document.getElementById('progressBar');
	var progressArea = document.getElementById('progressFormArea');
	progressWin.style.left = progressArea.offsetLeft + (progressArea.offsetWidth+100)/2 + 'px';
	progressWin.style.top = progressArea.offsetTop - 60 + 'px';
	progressWin.style.display='inline';
	var i = document.getElementById('BidImg');
	i.src = 'ImagesProduct/500/' + imgPath;
}

function imgchange (id, object) {
 	if (window.document.images[id]) {
		window.document.images[id].width = object.width;
		window.document.images[id].height = object.height;
		window.document.images[id].src = object.src;
	}
}	
function HideElement(id)
		{
		var b = document.getElementById(id);
		//b.style.visibility='hidden';
		b.style.display='none';
		}
function HidePlayer(id)
		{
		var b = document.getElementById(id);
		b.style.visibility='hidden';
		b.style.display='none';
		}
function VisiblePlayer(id)
		{
		var b = document.getElementById(id);
		b.style.visibility='visible';
		b.style.display='block';
		}
function ShowSave(ddd)
		{
		var b = document.getElementById("upart_" + ddd);
		if(b.checked == true )
			{
			var s = document.getElementById("sTrue_" + ddd);
			s.style.visibility='visible';
			var n = document.getElementById("sFalse_" + ddd);
			n.style.visibility='hidden';
			}
		else
			{
			var s = document.getElementById("sTrue_" + ddd);
			s.style.visibility='hidden';
			var n = document.getElementById("sFalse_" + ddd);
			n.style.visibility='visible';
			}
		}

// -->
