	// Constants
	var SKU_ID;												//This is the sku id that will be passed along to the download page in the query string

	/*
	 * This function sets the constant value for the skuId based upon the logic that is
	 * contained within the content frame
	 */
	function initializeSkuId(skuId) {
		SKU_ID = skuId;
	}

	/*
	 * This is a simple function that validates the email address entered by the user.
	 */
	function validate() {
		var element = document.getElementById("dd_email_field");
		if (element.value == '') {
			alert("Please enter a valid email address");
			return false;
		}
	
		if (element.value != '') {
			var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
	   		var regex = new RegExp(emailReg);
	
	   		if (!(regex.test(element.value))) {
			alert("Please enter a valid email address");
			return false;
			}
		}
		return true;
	}
