 url = document.location.href;
 if ( url.indexOf('php/?') > 0 )
	 document.location.href = '/index.php';

function S(w, h, n, t)
{
	wn = window.open("_blank", "w", "width="+w+" height="+h);
	wn.document.write('<html><head><title>'+t+'</title></head><body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0"><a href="javascript: window.close()"><img src="'+n+'" border="0"><br></a></body></html>');
}

function add2cart(id)
{
	wn = window.open("/add2cart.php?id="+id, "w", "width=300 height=125");
}

function foget()
{
	wn = window.open("/fogetpwd.php", "w", "width=400 height=200");
}

