// JavaScript Document

function DoPurchase()
{
		var sale_option = document.frmPurchase.selectDownload.value;
		/*options would be 1, 2, 3, 5, 10*/
		var check1 = false;
		var check2 = false;
		var URL = "hello";
		if(document.frmPurchase.checkbox2.checked)
		{
			check1 = true;
		}
		if(document.frmPurchase.checkbox3.checked)
		{
			check2 = true;
		}
		switch(parseInt(sale_option))
		{
			case 1:
				
				if(check1==true && check2==true)
				{
					//1 Computer both checkbox checked
					//URL = "custom URL HERE 1+1+1";
					URL = "http://7.regicleans.pay.clickbank.net/";
				}
				else
				{
					if(check1==true)
					{
						//1 Computer online protection ($9.95) checkbox checked
						//URL = "custom URL HERE 1+1+0";
						URL = "http://6.regicleans.pay.clickbank.net/";
					}
					else
					{
						if(check2==true)
						{
							//1 Computer Active Protection ($9.95) checkbox checked
							//URL = "custom URL HERE 1+0+1";
							URL = "http://5.regicleans.pay.clickbank.net/";
						}
						else
						{
							//1 Computer only without any checkbox checked
							//URL = "custom URL HERE 1+0+0";
							URL = "http://1.regicleans.pay.clickbank.net/";
						}
					}
				}
				break;
			case 2:
				if(check1==true && check2==true)
				{
					//2 Computer both checkbox checked
					//URL = "custom URL HERE 2+1+1";
					URL = "http://8.regicleans.pay.clickbank.net/";
				}
				else
				{
					if(check1==true)
					{
						//2 Computer online protection ($9.95) checkbox checked
						//URL = "custom URL HERE 2+1+0";
						URL = "http://9.regicleans.pay.clickbank.net/";
					}
					else
					{
						if(check2==true)
						{
							//2 Computer Active Protection ($9.95) checkbox checked
							//URL = "custom URL HERE 2+0+1";
							URL = "http://10.regicleans.pay.clickbank.net/";
						}
						else
						{
							//2 Computer only without any checkbox checked
							//URL = "custom URL HERE 2+0+0";
							URL = "http://2.regicleans.pay.clickbank.net/";
						}
					}
				}
				break;
			case 3:
				if(check1==true && check2==true)
				{
					//2 Computer both checkbox checked
					//URL = "custom URL HERE 2+1+1";
					URL = "http://20.regicleans.pay.clickbank.net/";
				}
				else
				{
					if(check1==true)
					{
						//2 Computer online protection ($9.95) checkbox checked
						//URL = "custom URL HERE 2+1+0";
						URL = "http://18.regicleans.pay.clickbank.net/";
					}
					else
					{
						if(check2==true)
						{
							//2 Computer Active Protection ($9.95) checkbox checked
							//URL = "custom URL HERE 2+0+1";
							URL = "http://19.regicleans.pay.clickbank.net/";
						}
						else
						{
							//2 Computer only without any checkbox checked
							//URL = "custom URL HERE 2+0+0";
							URL = "http://17.regicleans.pay.clickbank.net/";
						}
					}
				}
				break;
			case 5:
				if(check1==true && check2==true)
				{
					//1 Computer both checkbox checked
					//URL = "custom URL HERE 5+1+1";
					URL = "http://14.regicleans.pay.clickbank.net";
				}
				else
				{
					if(check1==true)
					{
						//5 Computer online protection ($9.95) checkbox checked
						//URL = "custom URL HERE 5+1+0";
						URL = "http://16.regicleans.pay.clickbank.net";
					}
					else
					{
						if(check2==true)
						{
							//5 Computer Active Protection ($9.95) checkbox checked
							//URL = "custom URL HERE 5+0+1";
							URL = "http://15.regicleans.pay.clickbank.net";
						}
						else
						{
							//5 Computer only without any checkbox checked
							//URL = "custom URL HERE 5+0+0";
							URL = "http://3.regicleans.pay.clickbank.net/";
						}
					}
				}
				break;
			case 10:
				if(check1==true && check2==true)
				{
					//10 Computer both checkbox checked
					//URL = "custom URL HERE 10+1+1";
					URL = "http://12.regicleans.pay.clickbank.net";
				}
				else
				{
					if(check1==true)
					{
						//10 Computer online protection ($9.95) checkbox checked
						//URL = "custom URL HERE 10+1+0";
						URL = "http://13.regicleans.pay.clickbank.net";
					}
					else
					{
						if(check2==true)
						{
							//10 Computer Active Protection ($9.95) checkbox checked
							//URL = "custom URL HERE 10+0+1";
							URL = "http://11.regicleans.pay.clickbank.net";
						}
						else
						{
							//10 Computer only without any checkbox checked
							//custom URL HERE 10+0+0
							URL = "http://4.regicleans.pay.clickbank.net/";
						}
					}
				}
				break;
		}
		//alert(URL);
		window.location.href = URL;
}
