// calculator javascript
	function addCommas(nStr)
	{
		nStr += '';
		x = nStr.split('.');
		x1 = x[0];
		x2 = x.length > 1 ? '.' + x[1] : '';
		var rgx = /(\d+)(\d{3})/;
		while (rgx.test(x1)) {
			x1 = x1.replace(rgx, '$1' + ',' + '$2');
		}
		return x1 + x2;
	}

	function numCerts(){
		var type = document.certForm.certtype.options[document.certForm.certtype.selectedIndex].value;
		var num = document.certForm.q1.options[document.certForm.q1.selectedIndex].value;
		var numyears = document.certForm.years.options[document.certForm.years.selectedIndex].value;
		
		var cost = 0;
		
		if(type == "VeriSign Secure Site"){
			if(numyears==1){
				
					if(num < 4){
						cost = 399;
					}
					else if(num <= 6){
						cost = 379;
					}
					else if(num <= 9){
						cost = 359;
					}
					else if(num <= 14){
						cost = 343;
					}
					else if(num <= 25){
						cost = 331;
					}
				
			}
			else if(numyears==2){
				
					if(num < 4){
						cost = 695;
					}
					else if(num <= 6){
						cost = 660;
					}
					else if(num <= 9){
						cost = 626;
					}
					else if(num <= 14){
						cost = 598;
					}
					else if(num <= 25){
						cost = 577;
					}
		
			}
			else if(numyears==3){
				
					if(num < 4){
						cost = 995;
					}
					else if(num <= 6){
						cost = 945;
					}
					else if(num <= 9){
						cost = 896;
					}
					else if(num <= 14){
						cost = 856;
					}
					else if(num <= 25){
						cost = 826;
					}
					
			}
		}
		else if(type == "VeriSign Secure Site with EV"){
			if(numyears ==1){
				
					if(num < 4){
						cost = 995;
					}
					else if(num <= 6){
						cost =  935;
					}
					else if(num <= 9){
						cost = 876;
					}
					else if(num <= 14){
						cost = 836;
					}
					else if(num <= 25){
						cost = 806;
					}
					
			}
			else if(numyears==2){
				
					if(num < 4){
						cost = 1790;
					}
					else if(num <= 6){
						cost = 1683;
					}
					else if(num <= 9){
						cost = 1575;
					}
					else if(num <= 14){
						cost = 1504;
					}
					else if(num <= 25){
						cost = 1450;
					}
			}
			else{
				alert("3 years not allowed for this product");
				document.certForm.currentprice.value = "";
				return;
			}
		}
		else{
			alert("Please choose type of certificate");
			document.certForm.currentprice.value = "";
			return;
		}
		document.certForm.currentprice.value = cost;
	}
	
	
	//compare
	function compareCerts(type){
		var num = 0;
		var user_price = 0;
		var savings_cost = 0;
		var total_savings = 0;
		var ts1 = 0;
		var ts2 = 0;
		var ts3 = 0;
		var savings_pct = 0;
		var num = document.certForm.q1.options[document.certForm.q1.selectedIndex].value;
		if(document.certForm.userprice.value != ""){
			user_price = document.certForm.userprice.value;
				
		}
		
		var years = document.certForm.years.value;
		
		var cost = 0;
		
		if(type == "VeriSign Secure Site"){
				
				if(num < 4){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+399+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+695+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+995+" /cert";	
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+399+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+695+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+995+" /cert";
					}
					
					//entu
					document.certForm.entrust_1yr_ssl.value = "$"+275+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+398+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+522+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+total_savings;
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 124;
							document.certForm.savings_1yr_ssl.value = "$"+124+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+total_savings;
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+total_savings;
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 297;
							document.certForm.savings_2yr_ssl.value = "$"+297+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+total_savings;
						}
						
						if(years == 3){
							savings_cost = user_price - 522;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+total_savings;
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 473;
							document.certForm.savings_3yr_ssl.value = "$"+473+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+total_savings;
						}
						
					}
					else{
						ts1 = num * 124;
						ts2 = num * 297;
						ts3 = num * 473;
						document.certForm.savings_1yr_ssl.value = "$"+124+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+297+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+473+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+ts1;
						document.certForm.total_2yr_ssl.value = "$"+ts2;
						document.certForm.total_3yr_ssl.value = "$"+ts3;
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 31+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 43+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 48+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 31+"%";
						document.certForm.savings_pct_2yr_ssl.value = 43+"%";
						document.certForm.savings_pct_3yr_ssl.value = 48+"%";
					}
					
				}
				else if(num == 4){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+379+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+660+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+945+" /cert";
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+379+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+660+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+945+" /cert";
					}
					
					
					document.certForm.entrust_1yr_ssl.value = "$"+275+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+398+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+522+" /cert";
					
					//savings
					if(user_price != 0){
						//alert(user_price);
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 104;
							document.certForm.savings_1yr_ssl.value = "$"+104+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 262;
							document.certForm.savings_2yr_ssl.value = "$"+262+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 3){
							savings_cost = user_price - 522;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 423;
							document.certForm.savings_3yr_ssl.value = "$"+423+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						
						ts1 = num * 104;
						ts2 = num * 262;
						ts3 = num * 423;
						document.certForm.savings_1yr_ssl.value = "$"+104+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+262+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+423+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+addCommas(ts1);
						document.certForm.total_2yr_ssl.value = "$"+addCommas(ts2);
						document.certForm.total_3yr_ssl.value = "$"+addCommas(ts3);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 27+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 40+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 45+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 27+"%";
						document.certForm.savings_pct_2yr_ssl.value = 40+"%";
						document.certForm.savings_pct_3yr_ssl.value = 45+"%";
					}
					
				}
				else if(num <= 6){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+379+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+660+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+945+" /cert";
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+379+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+660+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+945+" /cert";
					}
					
					
					document.certForm.entrust_1yr_ssl.value = "$"+199+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+312+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+435+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 199;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 180;
							document.certForm.savings_1yr_ssl.value = "$"+180+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 312;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 348;
							document.certForm.savings_2yr_ssl.value = "$"+348+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 3){
							savings_cost = user_price - 435;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 510;
							document.certForm.savings_3yr_ssl.value = "$"+510+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 180;
						ts2 = num * 348;
						ts3 = num * 510;
						document.certForm.savings_1yr_ssl.value = "$"+180+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+348+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+510+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+addCommas(ts1);
						document.certForm.total_2yr_ssl.value = "$"+addCommas(ts2);
						document.certForm.total_3yr_ssl.value = "$"+addCommas(ts3);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 48+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 53+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 54+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 48+"%";
						document.certForm.savings_pct_2yr_ssl.value = 53+"%";
						document.certForm.savings_pct_3yr_ssl.value = 54+"%";
					}
					
				}
				else if(num <= 9){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+359+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+626+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+896+" /cert";
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+359+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+626+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+896+" /cert";
					}
					
					
					document.certForm.entrust_1yr_ssl.value = "$"+199+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+312+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+435+" /cert";
					
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 199;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 160;
							document.certForm.savings_1yr_ssl.value = "$"+160+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 312;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 314;
							document.certForm.savings_2yr_ssl.value = "$"+314+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 3){
							savings_cost = user_price - 435;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 461;
							document.certForm.savings_3yr_ssl.value = "$"+461+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 160;
						ts2 = num * 314;
						ts3 = num * 461;
						document.certForm.savings_1yr_ssl.value = "$"+160+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+314+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+461+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+addCommas(ts1);
						document.certForm.total_2yr_ssl.value = "$"+addCommas(ts2);
						document.certForm.total_3yr_ssl.value = "$"+addCommas(ts3);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 45+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 50+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 51+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 45+"%";
						document.certForm.savings_pct_2yr_ssl.value = 50+"%";
						document.certForm.savings_pct_3yr_ssl.value = 51+"%";
					}
					
				}
				else if(num == 10){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+343+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+598+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+856+" /cert";
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+343+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+598+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+856+" /cert";
					}
					
					
					document.certForm.entrust_1yr_ssl.value = "$"+199+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+312+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+435+" /cert";
					
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 199;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 144;
							document.certForm.savings_1yr_ssl.value = "$"+144+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 312;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 286;
							document.certForm.savings_2yr_ssl.value = "$"+286+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 3){
							savings_cost = user_price - 435;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 421;
							document.certForm.savings_3yr_ssl.value = "$"+421+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 144;
						ts2 = num * 286;
						ts3 = num * 421;
						document.certForm.savings_1yr_ssl.value = "$"+144+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+286+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+421+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+addCommas(ts1);
						document.certForm.total_2yr_ssl.value = "$"+addCommas(ts2);
						document.certForm.total_3yr_ssl.value = "$"+addCommas(ts3);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 42+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 48+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 49+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 42+"%";
						document.certForm.savings_pct_2yr_ssl.value = 48+"%";
						document.certForm.savings_pct_3yr_ssl.value = 49+"%";
					}
					
				}
				
				else if(num <= 14){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+343+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+598+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+856+" /cert";
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+343+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+598+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+856+" /cert";
					}
					
					
					document.certForm.entrust_1yr_ssl.value = "$"+185+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+290+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+405+" /cert";
					
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 185;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 158;
							document.certForm.savings_1yr_ssl.value = "$"+158+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 290;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 308;
							document.certForm.savings_2yr_ssl.value = "$"+308+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 3){
							savings_cost = user_price - 405;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 451;
							document.certForm.savings_3yr_ssl.value = "$"+451+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 158;
						ts2 = num * 308;
						ts3 = num * 451;
						document.certForm.savings_1yr_ssl.value = "$"+158+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+308+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+451+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+addCommas(ts1);
						document.certForm.total_2yr_ssl.value = "$"+addCommas(ts2);
						document.certForm.total_3yr_ssl.value = "$"+addCommas(ts3);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 46+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 51+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 53+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 46+"%";
						document.certForm.savings_pct_2yr_ssl.value = 51+"%";
						document.certForm.savings_pct_3yr_ssl.value = 53+"%";
					}
					
				}
				else if(num <= 25){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr_ssl.value = "$"+331+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr_ssl.value = "$"+577+" /cert";
						}
						
						if(years == 3){
							document.certForm.verisign_3yr_ssl.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_3yr_ssl.value = "$"+826+" /cert";
						}
						
					}
					else{
						document.certForm.verisign_1yr_ssl.value = "$"+331+" /cert";
						document.certForm.verisign_2yr_ssl.value = "$"+577+" /cert";
						document.certForm.verisign_3yr_ssl.value = "$"+826+" /cert";
					}
					
					
					document.certForm.entrust_1yr_ssl.value = "$"+185+" /cert";
					document.certForm.entrust_2yr_ssl.value = "$"+290+" /cert";
					document.certForm.entrust_3yr_ssl.value = "$"+405+" /cert";
					
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 185;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 146;
							document.certForm.savings_1yr_ssl.value = "$"+146+" /cert";
							document.certForm.total_1yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 290;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 287;
							document.certForm.savings_2yr_ssl.value = "$"+287+" /cert";
							document.certForm.total_2yr_ssl.value = "$"+addCommas(total_savings);
						}
						
						if(years == 3){
							savings_cost = user_price - 405;
							total_savings = num * savings_cost;
							document.certForm.savings_3yr_ssl.value = "$"+savings_cost+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 421;
							document.certForm.savings_3yr_ssl.value = "$"+421+" /cert";
							document.certForm.total_3yr_ssl.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 146;
						ts2 = num * 287;
						ts3 = num * 421;
						document.certForm.savings_1yr_ssl.value = "$"+146+" /cert";
						document.certForm.savings_2yr_ssl.value = "$"+287+" /cert";
						document.certForm.savings_3yr_ssl.value = "$"+421+" /cert";
						
						document.certForm.total_1yr_ssl.value = "$"+addCommas(ts1);
						document.certForm.total_2yr_ssl.value = "$"+addCommas(ts2);
						document.certForm.total_3yr_ssl.value = "$"+addCommas(ts3);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr_ssl.value = 44+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr_ssl.value = 50+"%";
						}
						
						if(years == 3){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_3yr_ssl.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_3yr_ssl.value = 51+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr_ssl.value = 44+"%";
						document.certForm.savings_pct_2yr_ssl.value = 50+"%";
						document.certForm.savings_pct_3yr_ssl.value = 51+"%";
					}
					
				}
				
				if(user_price != 0){
					if(years == 1){
						document.getElementById('year2_ssl').style.display = "none";
						document.getElementById('year3_ssl').style.display = "none";
					}
					else if(years == 2){
						document.getElementById('year1_ssl').style.display = "none";
						document.getElementById('year3_ssl').style.display = "none";
					}
					if(years == 3){
						document.getElementById('year1_ssl').style.display = "none";
						document.getElementById('year2_ssl').style.display = "none";
					}
				}
				
		}
		else if(type == "VeriSign Secure Site with EV"){
				
				if(num < 4){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+995+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1790)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+995+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1790)+" /cert";
					}
					
					
					//entrust
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+398+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+total_savings;
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 720;
							document.certForm.savings_1yr.value = "$"+720+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1392;
							document.certForm.savings_2yr.value = "$"+1392+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 720;
						ts2 = num * 1392;
						
						document.certForm.savings_1yr.value = "$"+720+" /cert";
						document.certForm.savings_2yr.value = "$"+1392+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 72+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 78+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 72+"%";
						document.certForm.savings_pct_2yr.value = 78+"%";
					}
					
				}
				else if(num == 4){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+935+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1683)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+935+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1683)+" /cert";
					}
					
					
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+398+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+total_savings;
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 660;
							document.certForm.savings_1yr.value = "$"+660+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 1285;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1285;
							document.certForm.savings_2yr.value = "$"+1285+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 660;
						ts2 = num * 1285;
						document.certForm.savings_1yr.value = "$"+660+" /cert";
						document.certForm.savings_2yr.value = "$"+1285+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 71+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 76+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 71+"%";
						document.certForm.savings_pct_2yr.value = 76+"%";
					}
					
				}
				else if(num <= 6){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price;+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+935+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1683)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+935+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1683)+" /cert";
					}
					
					
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+398+" /cert";
					
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 660;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 660;
							document.certForm.savings_1yr.value = "$"+660+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 1285;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1285;
							document.certForm.savings_2yr.value = "$"+1285+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 660;
						ts2 = num * 1285;
						document.certForm.savings_1yr.value = "$"+660+" /cert";
						document.certForm.savings_2yr.value = "$"+1285+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 71+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 76+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 71+"%";
						document.certForm.savings_pct_2yr.value = 76+"%";
					}
					
				}
				else if(num <= 9){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+876+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1575)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+876+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1575)+" /cert";
					}
					
					
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+199+" /cert";
					
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 601;
							document.certForm.savings_1yr.value = "$"+601+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1177;
							document.certForm.savings_2yr.value = "$"+1177+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 601;
						ts2 = num * 1177;
						document.certForm.savings_1yr.value = "$"+601+" /cert";
						document.certForm.savings_2yr.value = "$"+1177+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 69+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 75+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 69+"%";
						document.certForm.savings_pct_2yr.value = 75+"%";
					}
					
				}
				else if(num == 10){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+836+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1504)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+836+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1504)+" /cert";
					}
					
					
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+398+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 561;
							document.certForm.savings_1yr.value = "$"+561+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1106;
							document.certForm.savings_2yr.value = "$"+1106+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 561;
						ts2 = num * 1106;
						document.certForm.savings_1yr.value = "$"+561+" /cert";
						document.certForm.savings_2yr.value = "$"+1106+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 67+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 74+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 67+"%";
						document.certForm.savings_pct_2yr.value = 74+"%";
					}
				}
				else if(num <= 14){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+836+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1504)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+836+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1504)+" /cert";
					}
					
					
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+398+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 561;
							document.certForm.savings_1yr.value = "$"+561+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1106;
							document.certForm.savings_2yr.value = "$"+1106+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 561;
						ts2 = num * 1106;
						document.certForm.savings_1yr.value = "$"+561+" /cert";
						document.certForm.savings_2yr.value = "$"+1106+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 67+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 74+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 67+"%";
						document.certForm.savings_pct_2yr.value = 74+"%";
					}
					
				}
				else if(num <= 25){
					//verisign
					if(user_price != 0){
						if(years == 1){
							document.certForm.verisign_1yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_1yr.value = "$"+806+" /cert";
						}
						
						if(years == 2){
							document.certForm.verisign_2yr.value = "$"+user_price+" /cert";
						}
						else{
							document.certForm.verisign_2yr.value = "$"+addCommas(1450)+" /cert";
						}
				
					}
					else{
						document.certForm.verisign_1yr.value = "$"+806+" /cert";
						document.certForm.verisign_2yr.value = "$"+addCommas(1450)+" /cert";
					}
					
					
					document.certForm.entrust_1yr.value = "$"+275+" /cert";
					document.certForm.entrust_2yr.value = "$"+398+" /cert";
					
					//savings
					if(user_price != 0){
						if(years == 1){
							savings_cost = user_price - 275;
							total_savings = num * savings_cost;
							document.certForm.savings_1yr.value  = "$"+savings_cost+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 531;
							document.certForm.savings_1yr.value = "$"+531+" /cert";
							document.certForm.total_1yr.value = "$"+addCommas(total_savings);
						}
						
						if(years == 2){
							savings_cost = user_price - 398;
							total_savings = num * savings_cost;
							document.certForm.savings_2yr.value = "$"+savings_cost+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
							if(savings_cost < 0){
								
								document.getElementById("customQuote").innerHTML = "<p><strong>Since you have a custom price, we'd like to work with you to to reach a savings figure. Please call 1-866-267-9297 for a custom quote.</strong></p>";	
							}
						}
						else{
							total_savings = num * 1052;
							document.certForm.savings_2yr.value = "$"+1052+" /cert";
							document.certForm.total_2yr.value = "$"+addCommas(total_savings);
						}
						
					}
					else{
						ts1 = num * 531;
						ts2 = num * 1052;
						document.certForm.savings_1yr.value = "$"+531+" /cert";
						document.certForm.savings_2yr.value = "$"+1052+" /cert";
						
						document.certForm.total_1yr.value = "$"+addCommas(ts1);
						document.certForm.total_2yr.value = "$"+addCommas(ts2);
					}
					
					
					//pct
					if(user_price != 0){
						if(years == 1){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_1yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_1yr.value = 66+"%";
						}
						
						if(years == 2){
							savings_pct = Math.round((savings_cost / user_price) * 100) ;
							document.certForm.savings_pct_2yr.value = savings_pct+"%";
						}
						else{
							document.certForm.savings_pct_2yr.value = 73+"%";
						}
						
					}
					else{
						document.certForm.savings_pct_1yr.value = 66+"%";
						document.certForm.savings_pct_2yr.value = 73+"%";
					}
					
				}
			
				if(user_price != 0){
					if(years == 1){
						document.getElementById('year2_ev').style.display = "none";
						
					}
					else if(years == 2){
						document.getElementById('year1_ev').style.display = "none";
						
					}
					
				}
			
		}
		
		
		//document.certForm.currentprice.value = cost;
	}