
function add_item(data_id)
{
	var url_1='/shcart/?data_id='+data_id+'&step=0&mode=add';
	window.top.frames["win_basket"].location = url_1;

//	var url_1='/shcart/?data_id='+data_id+'&step=2&nstep=2&mode=add';
//	document.location=url_1;

	CreateShMess();
}





toMesHide = null;
tmSh = null;



function CreateShMess()
{
	removeShMess();
	message = "Товар добавлен в корзину";
	var text = document.createTextNode(message);

	var elem = document.createElement("div");

	elem.setAttribute('id', 'fixme');
	elem.setAttribute('onclick', 'removeShMess();');

	elem.appendChild(text);

	document.getElementsByTagName("body")[0].appendChild(elem);

	toMesHide = elem;

	tmSh = window.setTimeout(removeShMess, 3000);

}



function removeShMess()
{
	if (tmSh)	clearTimeout(tmSh);
	if (toMesHide)
	{
		document.getElementsByTagName("body")[0].removeChild(toMesHide);
		toMesHide = null;
	}
}

		function go_shcart()
		{	
			if (window.frames['win_basket'])
			{
				if(navigator.appName=="Netscape")
				{
					parent.document.location.href="/shcart/?step=2&amp;nstep=2&amp;currency_id="+window.frames['win_basket'].document.shcart.currency_id.value+"&amp;url="+escape(parent.document.location.href);
				}
				else
				{
					parent.document.location.href="/shcart/?step=2&amp;nstep=2&amp;currency_id="+document.frames['win_basket'].document.shcart.currency_id.value+"&amp;url="+escape(parent.document.location.href);
				}
			}
			else
			{
				document.location.href="/shcart/?step=2&amp;nstep=2";
			}
		}


