
function setCookie(name, value, expires, path, domain, secure) { 
var curCookie = name + "=" + escape(value) + 
                ((expires) ? "; expires=" + expires.toGMTString() : "") + 
                ((path) ? "; path=" + path : "") + 
                ((domain) ? "; domain=" + domain : "") + 
                ((secure) ? "; secure" : ""); 
document.cookie = curCookie; return;
}


function SW_toCart() { // get location, set cookie, go to cart
		locat = location.href;  // pathname of the page
		setCookie("redirect",locat,"","/",false,false);
		location.href = "http://shopping.netsuite.com/s.nl?ext=T&c=ACCT138578&sc=3&ext=T";
	}

