function ChangeTopBar(obj,openOrClose,LeftorTop)
	{
		if(openOrClose)
		{
			if(LeftorTop)
				obj.className="TopBarActive"
			else
				obj.className="LeftActive"
			
		}
		else
		{
			obj.style.backgroundImage=''
			if(LeftorTop)
			{
				obj.className="TopBarNonActive"
			}
			else
			{
				obj.className="LeftNONActive"
			}
			
		}
	}

function ChangeTopBar_heb(obj,openOrClose,LeftorTop)
	{
		if(openOrClose)
		{
			if(LeftorTop)
				obj.className="TopBarActive_heb"
			else
				obj.className="LeftActive_heb"
			
		}
		else
		{
			obj.style.backgroundImage=''
			if(LeftorTop)
			{
				obj.className="TopBarNonActive_heb"
			}
			else
			{
				obj.className="LeftNONActive_heb"
			}
			
		}
	}

	function OpenDiv(obj,num,openClose,LeftorTop)
	{
		var theDiv
		if(LeftorTop)	//top
			theDiv=document.all["TopMenu" + num]
		else
			theDiv=document.all["LeftMenu" + num]

		if(openClose)
		{
			theDiv.style.display=''
		}
		else
		{
			theDiv.style.display='none'
		}
	}


	function ChangeDivsTR(obj,openOrClose)
	{
		if(openOrClose)
		{
				obj.className="LeftDivActive"
		}
		else
		{
				obj.className="LeftDivNonActive"
		}
	}

	function ChangeDivsTR_heb(obj,openOrClose)
	{
		if(openOrClose)
		{
				obj.className="LeftDivActive_heb"
		}
		else
		{
				obj.className="LeftDivNonActive_heb"
		}
	}


	//Functions of Bag.asp

function add(num,price,item) 
{
	var theName
	if (item=="0")
	{
		theName="sum" + num + "_" + price + "_"
	}
	else
		theName="sum" + num + "_" + price + "_" +item
	
	document.form1.elements[theName].value=eval(document.form1.elements[theName].value)+1
}

function minus(num,price,item) 
{	
	var theName
	if (item=="0")
	{
		theName="sum" + num + "_" + price + "_"
	}
	else
		theName="sum" + num + "_" + price + "_" +item
	
	if (document.form1.elements[theName].value>0)
		document.form1.elements[theName].value=eval(document.form1.elements[theName].value)-1
}


function DelRow(num)
{
	document.form1.elements[num-1].value=0
	document.form1.submit()
}

//Lets numbers only to press	
function CheckNumbers()
{
	var TheKey=event.keyCode
	if(((TheKey<48 || TheKey>57) &&(TheKey<96 || TheKey>105) ) && TheKey!=8  && TheKey!=9) 
	{
		event.returnValue=false;
	}
}	//-----------------------------------