function setCookie(N,V){
document.cookie=N + "=" + V + ";path=/;";
}
function getCookie(N){
var objCookie,objPair,intI;
objCookie=document.cookie.split(";");
for(intI=0;intI<objCookie.length;intI++){
objPair=objCookie[intI].split("=");
if(objPair[0].toString().indexOf(N)>=0){return objPair[1];}}
return null;
}
function VideoSubmit(v){
if(isNetShift){}else{document.forms[v].target="video"; window.open('/video/video_pop_up.jsp','video','dependent=yes,directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=492,height=260');}
document.forms[v].submit();
}
function VideoLinkStart(t,f){
if(isNetShift){document.write("<A href='JavaScript:VideoSubmit("+(document.forms.length -1)+")' title='"+ t +"'>");}else{document.write("<A href='"+ f +"' title='"+ t +"'>");}
}
function VideoLinkEnd(){
document.write("</A>");
}
function httpChangeIMR(){
var local = this.document.location.href;
if(local.indexOf('https') > -1){document.write("<applet code='Measure.class' codebase=https://server-dk.imrworldwide.com width='1' height='2'><textflow><img src='https://server dk.imrworldwide.com/cgi/count'></textflow></applet>");}else{document.write("<applet code='Measure.class' codebase=http://server-dk.imrworldwide.com width='1' height='2'><textflow><img src='http://server-dk.imrworldwide.com/cgi/count'></textflow></applet>");}
}
function httpChangeCIA(id){
var local = this.document.location.href;
if(local.indexOf('https') > -1){document.write("<img src='https://www.ciastat.dk/measure.asp?FID=" + id + "' width='1' height='1' border ='0'>");}else{document.write("<img src='http://www.ciastat.dk/measure.asp?FID=" + id + "' width='1' height='1' border ='0'>");}
}
