// JavaScript Document

	//function select_phone(reff)
//	{
//		var reffgo = reff.value;
//		document.getElementById(50).action = "Phone_Deal.asp?Ph="+ reffgo 
//		document.getElementById(50).submit();
//	}

	function select_phone(reff,Type,net,t)
	{
		
		var reffgo = reff.value;
		//window.location = "Phone_Deal.asp?Ph="+ reff 
	if(reff != "")
	{
		if (t == 1)
		{
		window.location = "Phone_Deal.asp?Ph="+ reff + "&t="+t
		}
		else if (Type=='Upgrade')
		{	
		document.frm_head.action = "upgrade.asp";
		document.frm_head.submit();
		}
		else if (net!='')
		{
		window.location = "Phone_Deal.asp?Ph="+ reff + "&net="+net
		}
		else if (Type=='C' && net=="")
		{
			window.location = "Phone_Deal.asp?Ph="+ reff 
			//document.getElementById(50).submit();
		}
		else if (Type=='Clearance')
		{
			window.location = "clearance_deal.asp?Ph="+ reff 
			//document.getElementById(50).submit();
		}
		else if (Type=='S')
		{
			document.getElementById(50).action = "Phone_Dealsimfree.asp?Ph="+ reff 
			document.getElementById(50).submit();
		}
	//	else if (Type=='P' && net !='')
//		{
//			document.getElementById(50).action = "Phone_Dealpayg.asp?Ph="+ reff + "&net="+net
//			document.getElementById(50).submit();
//		}
		else if(Type=='P')
		{
			document.getElementById(50).action = "Phone_Dealpayg.asp?Ph="+ reff 
			document.getElementById(50).submit();
		}
		else
		{
			window.location = "Phone_Deal.asp?Ph="+ reff 
		}
	}
	}
	function select_phonenet(reff,net)
	{
		//alert(reff,Type);
		window.location = "netPhone_Deal.asp?Ph="+ reff +"&netid="+net
		
	}
	function select_rsH(reff)
	{
			document.getElementById(50).action = "tariff_deal.asp?tariff="+ reff.value;
			document.getElementById(50).submit();
	}
		
	
	function select_qdf(reff)
	{
			document.getElementById(50).action = "QuickDealFinder.asp?id_value="+ reff.value;
			document.getElementById(50).submit();
	}
	
	function redirectPage(phid,gift)
	{
		var phoneId = phid.value;
		var giftId = gift;	
		document.getElementById(99).action = "gift_deal.asp?gift="+giftId+"&phid="+phoneId
		document.getElementById(99).submit();
	}

function submitSimOnly(val)
{
	document.formphtype.action = "simonly.asp";
	document.getElementById("hidSimOnly").value =  val ;  
	document.formphtype.submit();

}
