function createPrintCookie(url, linktype, language, list, sitekey) {
//	alert(language);
//	if (window.navigator.cookieEnabled) {
		var expires = new Date();
		var week = expires.getTime() + (365 * 24 * 60 * 60 * 1000);
		expires.setTime(week);
	
		setCookie('SEBprint', "URL=" + url + ";LINKTYPE=" + linktype + ";LANG=" + language + ';LISTID=' + list + ';SITEKEY=' + sitekey + '; ', expires, "/pow");
//	}
}

function swapStylesheets() {
	var s = getCookie('SEBdisplay');
	if (s) {	
		if (parent.frames["b"]) {
			if (parent.frames["b"].document.styleSheets.length >= 3 ) {
				parent.frames["b"].document.styleSheets[0].disabled = (s.substr(0,1) == '1' ? false : true);
				parent.frames["b"].document.styleSheets[1].disabled = (s.substr(0,1) == '2' ? false : true);
				parent.frames["b"].document.styleSheets[2].disabled = (s.substr(0,1) == '3' ? false : true);
			}
		}

		if(parent.frames["l2"]) {
    			if (parent.frames["l2"].document.styleSheets.length >= 3) {		
				parent.frames["l2"].document.styleSheets[0].disabled = (s.substr(1,1) == '1' ? false : true);
				parent.frames["l2"].document.styleSheets[1].disabled = (s.substr(1,1) == '2' ? false : true);
				parent.frames["l2"].document.styleSheets[2].disabled = (s.substr(1,1) == '3' ? false : true);
			}
		}
	}
	return false;
}

function openStyleEditor(url)
{
	newwindow = window.open(url,'name','status=no,toolbar=no,height=320,width=540,directories=no');
	if (window.focus) {
		newwindow.focus()
	}
	return false;
}

