var no_warning = false;

var display_cart_alert = false;
var cart_alert_message = "";

var display_cart_alert_v2 = true;
var cart_alert_v2_message = "";

var display_purchase_alert = true;
var purchase_alert_message = "";

var display_purchase_alert_v2 = false;
var purchase_alert_v2_message = "";

function displayCartAlert() {
	if (display_cart_alert == false) return;
	if (no_warning) return;
	if (cart_alert_message == "") {
		cart_alert_message = "At PC Tools, we care about your privacy and security as much as you do. We want you to know that our shopping cart is secured using SSL technology and has passed rigorous testing by leading independent third parties so you can feel confident shopping with us.";
	}
	pageTracker._trackPageview(promo_product+'/cartalert/');
	return cart_alert_message;
}

function displayCartAlertV2() {
	if (display_cart_alert_v2 == false) return;
	if (no_warning) return;
	if (cart_alert_v2_message == "") {
		cart_alert_v2_message = "A message from PC Tools:\n\nIf you are concerned about placing your order online, we have a PC Tools customer service representative standing by to help you over the phone.\n\nCall us now, toll free at 1 877 454 8986.";
	}
	pageTracker._trackPageview(promo_product+'/cartalertv2/');
	alert(cart_alert_v2_message);
//	return null;
}

function displayPurchaseAlert() {
	if (display_purchase_alert == false) return;
	if (no_warning) return;
	if (purchase_alert_message == "") {
		var coupon_code = "";
		var amount_off = "";
		switch (promo_product) {
			case "spyware-doctor":
				coupon_code = "DONTGO10D";
				amount_off = "$10 OFF";
			break;
			case "spyware-doctor-antivirus":
				coupon_code = "DONTGO25P";
				amount_off = "25% OFF";
			break;
			default:
			break;
		}
		purchase_alert_message = "We care about your security online.\nComplete your purchase now and get "+amount_off+" your order!\nSimply use the following coupon code: "+coupon_code;
	}
	pageTracker._trackPageview(promo_product+'/purchasealert/');
	return purchase_alert_message;
}

function displayPurchaseAlertV2() {
	if (display_purchase_alert_v2 == false) return;
	if (no_warning) return;
	if (purchase_alert_v2_message == "") {
		var coupon_code = "";
		var amount_off = "";
		switch (promo_product) {
			case "spyware-doctor":
				coupon_code = "DONTGO10D";
				amount_off = "$10 OFF";
			break;
			case "spyware-doctor-antivirus":
				coupon_code = "DONTGO25P";
				amount_off = "25% OFF";
			break;
			default:
			break;
		}
		purchase_alert_v2_message = "We care about your security online.\nComplete your purchase now and get "+amount_off+" your order!\nSimply use the following coupon code: "+coupon_code;
	}
	pageTracker._trackPageview(promo_product+'/purchasealertv2/');
	alert(purchase_alert_v2_message);
//	return null;
}

function nowarning(){
	no_warning = true;
}
