
function show(id)
{
	for (i=1;i<=3;i++)
	{
		document.getElementById("top_"+i).className="mode_out";
		document.getElementById("btm_"+i).className="hide";
	}
	document.getElementById("top_"+id).className="mode_over";
	document.getElementById("btm_"+id).className="show";
	
}

function OpenSearchResult()
{
url = document.getElementById("key").value;
url0 = document.getElementById("typeid").value;
url="product.asp?key="+url &typeid=+url0;
document.location.href = url;
}
function check_payment(id)
{
	var free_price=document.getElementById("free_price").value;
	var totalcash=document.getElementById("totalcash").value;
	var total=document.getElementById("total_price");
	if (id=="CREDIT CARD" || id=="Paypal")
	{
		total.innerText=totalcash;
		location.assign("buy.asp?payment="+id);
	}
	else
	{
		total.innerText=free_price;
		location.assign("buy.asp?payment="+id);
	}
}
