function WL_setCookie(name, value, expires, path, domain, secure) { var today = new Date(); today.setTime(today.getTime()); if(expires) { expires=expires*24*60*60*1000; } var expires_date = new Date(today.getTime()+(expires)); document.cookie = name + "=" +escape(value)+ ((expires)?";expires=" + expires_date.toGMTString(): "")+ ((path)?";path=" + path : "")+ ((domain)?";domain=" + domain : "")+ ((secure)?";secure" : ""); } function WL_getCookie(search_name) { var tab_cookies = document.cookie.split( ';' ); for ( i = 0; i < tab_cookies.length; i++ ) { var cookie_tmp = tab_cookies[i].split('='); var cookie_name = cookie_tmp[0].replace(/^\s+|\s+$/g, ''); if(cookie_name==search_name) { if (cookie_tmp.length>1) return unescape( cookie_tmp[1].replace(/^\s+|\s+$/g, '') ); return null; } } return null; } function WL_Track(S) { var I=WL_getCookie("WL_GUID"); if(I==null || I=="") { I="C23460EE-D61C-4870-8D32-057CC2B41601"; WL_setCookie("WL_GUID",I,365); } var U=document.location; var R=document.referrer; var A=navigator.userAgent; U=(U?escape(U):"");R=(R?escape(R):"");A=(A?escape(A):""); url="http://metamedia.no/WebLog.asp?S="+S+"&I="+I+"&U="+U+"&R="+R+"&A="+A+"&"+Math.random(); document.write(""); }