//deleteCookie("glowproducts");
/*var cookieEnabled = false;
if (typeof document.cookie == "string") {	
	if (document.cookie.length == 0) {
		document.cookie = "test";
		cookieEnabled = (document.cookie == "test");
		document.cookie == "";
	} else {
		cookieEnabled = true;
	}
} else;

if (cookieEnabled == false) {
goToPriceList();
} else;

function goToPriceList(){
location.href = "http://www.glowproducts.com/pricing.html";
}*/

	//################################################ Cookie Control ########################################################
	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/; domain=glowproducts.com";
	}
	
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split('|');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	
	function eraseCookie(name) {
		createCookie(name,"",-1);
		
	}
	//################################################ Cookie Control ########################################################
	


function pageload(return_url, includes_url, expires, path, domain, secure)
{
	var path = "/";	
	var value = return_url + "&" + includes_url;
	var name = "glowproducts";	
	var cookie_info = escape(name) + '=' + escape(value);
	cookie_info += (expires ? '; EXPIRES=' + expires.toGMTString() : '');
	cookie_info += (path ? '; PATH=' + path : '');
	cookie_info += (domain ? '; DOMAIN=' + domain : '');
	cookie_info += (secure ? '; SECURE' : '');
	
	document.cookie = cookie_info;
}
function getCookie(name)
{
 	var value =	  null;
	if(document.cookie)	   //only if exists
	{
       	var arr = document.cookie.split((escape(name) + '=')); 
       	if(2 <= arr.length)
       	{
           	var arr2 = arr[1].split(';');
       		value = unescape(arr2[0]);
       	}
	}
	return value;
}

function deleteCookie(name)
{	
	var tmp = getCookie(name);
	if(tmp) 
	{ pageload(name,tmp,(new Date(1))); }
}

function jumpMenu_check() {

var name = document.jump.url.value

   if(name == ""){  //if field is left empty
   return false;  // return false value to onSubmit handler
   }
   else {
   return true; 
   }
} 

/*------------------------------------------------------------
Shopping Cart Direction (GO to Moneris or DXCart)
DXCart Path = http://www.DXcart.com/cart/index.mhtml?id=26146
Moneris Path = http://www.islandnet.com/~glow/shopping/*/
function shoppingCartPath () {
	var path = "http://www.islandnet.com/~glow/shopping/";
	window.location.href = path;
}
