function user(Brugernavn, Fornavn, Efternavn, Kundenummer, Telefonarbejde, Telefonprivat, Mobiltelefon, Epostarbejde, Epostprivat, Vejnavn, Husnummer, Etage, Boligposition, Landsby, Postnummer, By, Kunderaadgiver, Telefonafdeling) { this.Brugernavn = Brugernavn this.Fornavn = Fornavn this.Efternavn = Efternavn this.Kundenummer = Kundenummer this.Telefonarbejde = Telefonarbejde this.Telefonprivat = Telefonprivat this.Mobiltelefon = Mobiltelefon this.Epostarbejde = Epostarbejde this.Epostprivat = Epostprivat this.Vejnavn = Vejnavn this.Husnummer = Husnummer this.Etage = Etage this.Boligposition = Boligposition this.Landsby = Landsby this.Postnummer = Postnummer this.By = By this.Kunderaadgiver = Kunderaadgiver this.Telefonafdeling = Telefonafdeling } var bruger = new user('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') function ClientSniffer() { //methods this.setJavaVersion = _setJavaVersion; this.setJavaVendor = _setJavaVendor; this.getJavaVersion = _getJavaVersion; this.getJavaVendor = _getJavaVendor; this.ua = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); if (navigator.appMinorVersion) this.appMinorVersion = navigator.appMinorVersion; if (this.ua.indexOf("mac") != -1) this.opsys = "mac" else this.opsys = "win" if (document.addEventListener && document.removeEventListener) this.dom2events = true; if (document.getElementById) this.dom1getbyid = true; this.xp=(this.ua.indexOf("windows nt 5.1")!=-1); this.server2003 =(this.ua.indexOf("windows nt 5.2")!=-1); this.vista=(this.ua.indexOf("windows nt 6.0")!=-1); this.opera = this.ua.indexOf('opera') != -1; this.gecko = this.ua.indexOf('gecko') != -1; this.safari = this.ua.indexOf('safari') != -1; this.liveconnect = (!this.safari); if (this.opera) { this.opera5 = (this.ua.indexOf("opera 5") != -1 || this.ua.indexOf("opera/5") != -1); return; } this.ie = this.ua.indexOf('msie') != -1; if (this.ie) { this.ie3 = this.major < 4; this.ie4 = (this.major == 4 && this.ua.indexOf('msie 5') == -1 && this.ua.indexOf('msie 6') == -1 && this.ua.indexOf('msie 7') == -1); this.ie4up = this.major >= 4; this.ie5 = (this.major == 4 && this.ua.indexOf('msie 5.0') != -1); this.ie5up = !this.ie3 && !this.ie4; this.ie6 = (this.major == 4 && this.ua.indexOf('msie 6.0') != -1); this.ie6up = (!this.ie3 && !this.ie4 && !this.ie5 && this.ua.indexOf("msie 5.5") == -1); this.ie7 = (this.major == 4 && this.ua.indexOf('msie 7.0') != -1); this.ie7up = (!this.ie3 && !this.ie4 && !this.ie5 && !this.ie6); if (this.xp) this.iexp_sp2 = this.appMinorVersion.indexOf('SP2') != -1; return; } this.hotjava = this.ua.indexOf('hotjava') != -1; this.webtv = this.ua.indexOf('webtv') != -1; this.aol = this.ua.indexOf('aol') != -1; if (this.hotjava || this.webtv || this.aol) return; this.nav = (this.ua.indexOf('mozilla') != -1 && this.ua.indexOf('spoofer') == -1 && this.ua.indexOf('compatible') == -1); if (this.nav) { this.nav4 = this.major == 4; this.nav4up= this.major >= 4; this.nav5up= this.major >= 5; this.nav6 = this.major == 5; this.nav6up= this.nav5up; if ((this.opsys == "win") && (this.nav5up)) this.liveconnect = false; } } window.is = new ClientSniffer(); function _getJavaVersion() { if (this.javaVersion) return this.javaVersion else return "notSet"; } function _setJavaVersion(version) { this.javaVersion=version; } function _getJavaVendor() { if (this.javaVendor) return this.javaVendor; else return "notSet"; } function _setJavaVendor(vendor) { this.javaVendor=vendor; } function SetCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookieVal(offset) { var endstr = document.cookie.indexOf(";", offset); if( endstr==-1 ) { endstr = document.cookie.length; } return unescape(document.cookie.substring(offset, endstr)); } function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if( document.cookie.substring(i,j)==arg ) { return getCookieVal(j); } i = document.cookie.indexOf(" ", i) + 1; if( i==0 ) { break; } } return " "; } function move(id, obj, prd, cur1, cur2, cur3, cur4, cur5) { if (id != null) top.indhold.document.forms[0].gsNextAkt.value = id; if (obj != null) top.indhold.document.forms[0].gsNextObj.value = obj; if ( cur1 != null) top.indhold.document.forms[0].gsCurItem.value = cur1; if ( cur2 != null) top.indhold.document.forms[0].gsCurItem2.value = cur2; if ( cur3 != null) top.indhold.document.forms[0].gsCurItem3.value = cur3; if ( cur4 != null) top.indhold.document.forms[0].gsCurItem4.value = cur4; if ( cur5 != null) top.indhold.document.forms[0].gsCurItem5.value = cur5; top.indhold.document.forms[0].submit(); } function help(hp) { hp = hp.replace(/ /g, "") if (top.pagehelp_windowwidth) w = top.pagehelp_windowwidth else w = 410 if (top.pagehelp_windowheight) h = top.pagehelp_windowheight else h = 160 var p = "" if (top.pagehelp_version2) p = "€" + top.brand + "€" + top.pagehelp_product + "€" + top.gsSprogHelpbook // if (top.help) // { // top.help(hp) // return 1 // } if (hp == null) hp = parent.indhold.gsHelpSide if (hp != "") { if (hp == "hbog.htm") helpwin = window.open(top.helpbook_path,'ord','scrollbars=1,resizeable=0,width=' + w + ',height=' + h); else helpwin = window.open(top.pagehelp_path + hp.substring(0,hp.indexOf('.') == -1 ? hp.length : hp.indexOf('.')) + p,'ord','scrollbars=1,resizable=0,width=' + w + ',height=' + h); } } // COOKIES- START var opl = ""; var foropl = " "; var bagopl = ""; var cook = ""; var j = 0; var tmpForm; var str = ""; var dummy = ""; var tmpAfstem; function splitcookie() { foropl = " "; bagopl = ""; cook = GetCookie("rbcookie"); if (cook == " ") { cook = " |"; } var restcook = cook; var slut; var aft =""; str = ""; var ind; var fundet = 0; while (fundet != 1 && restcook != "") { slut = restcook.indexOf("|"); str = restcook.substring(0, slut); ind = str.indexOf("$"); aft = str.substring(0, ind); if ((slut + 1) != restcook.length) { restcook = restcook.substring(slut + 1, restcook.length); } else { restcook = ""; } if (aft == gsAftlnr) { fundet = 1; opl = str; bagopl = restcook; } else { if (str != " ") foropl = foropl + "|" + str; } } } function domaine() { var dm = ""; if (parent.indhold.document.Form1.gsProdukt.value == "DNB") { dm=document.domain; while(dm.indexOf(".")!=dm.lastIndexOf(".")) {dm=dm.substring(dm.indexOf(".")+1)}; document.domain=dm; dm = "." + dm; } if (parent.indhold.document.Form1.gsProdukt.value == "DKR") { dm = ".danskekredit.dk"; } return dm; } function initsog() { //HENT COOKIE var done = false; splitcookie(); //Skip første 18 felter i cookie i=1; while (i < 19) { dummy = nextvalandre(); i=i+1; } tmpAfstem = nextvalandre(); } function nextvalandre() { tmp = opl; ind = opl.indexOf("$"); opl = opl.substring(ind + 1, opl.length); return tmp.substring(0, ind); } function pathNoURL() { var tmp = path(); // return(tmp.substring(tmp.indexOf(".dk") + 3, tmp.length)); tmp = tmp.substring(tmp.indexOf("//")+ 2, tmp.length); return tmp.substring(tmp.indexOf("/"), tmp.length); } function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookieVal(offset) { var endstr = document.cookie.indexOf(";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i,j) == arg) return getCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return " "; } // Statistik // var valstart = "<"; var valend = ">"; var valcook = "statcookcommon"; function getBigCookie(name) { bigcook=GetCookie(valcook); if (bigcook) findstart=bigcook.indexOf(name+valstart); else findstart=-1; if (findstart>-1 ) { findend=bigcook.indexOf(valend,findstart); if (findend>-1) { return bigcook.substring(findstart+name.length+1,findend) } } else return null; } // COOKIES SLUT