";
} else {
rubrikstr += "overflow:hidden;\">";
}
return rubrikstr;
}
}
function _ErDerHjaepTilDenneRubrik(amenu) {
tmpHelpSideID = "";
if (amenu != "NO") {
for (i = 1; i < amenu.length; i += 4) {
if (amenu[i] == "H") {
tmpHelpSideID = amenu[i + 1];
return true;
}
}
}
return false;
}
function _ErDerMenupukterTilDenneRubrik(tmpmenu) {
if (tmpmenu != "NO") {
for (i = 1; i < tmpmenu.length; i += 4) {
if (tmpmenu[i] != "H") {
return true;
}
}
}
return false;
}
function _CheckExpand(overskrift, expand) {
exp = false;
if (overskrift == "NO") {
exp = true;
}
if (expand == "disable") {
exp = true;
}
return exp;
}
function _maketitle(gsProdukt,gsStatusType,gsStatusTid,lblOverskr,lblTidovsk,VisEjhelp,VisOpdater,Server,gsSprog,lblHjaelp,gsCurAkt){
var overskrifttxt = '';
var NextObj='';
if ( top.indhold.document.forms[0].gsNextObj.value != null) NextObj=top.indhold.document.forms[0].gsNextObj.value;
if (gsProdukt == "DNB" || gsProdukt == "HDL" || gsProdukt == "DAA" || gsProdukt == "OEF" || gsProdukt == "IKS" || gsProdukt == "INB" || gsProdukt == "DNK" || NextObj == "eAbonment" ){
var checkoverskr = lblOverskr;
if (checkoverskr.substring(0,1) != "&"){
if (gsStatusType == "000" || gsStatusType == "A00" || gsStatusType == "904" || gsStatusType == "N50"){
overskrifttxt += '
| ';
overskrifttxt += lblOverskr + '';
overskrifttxt += ' | ' + lblTidovsk + ' ' + gsStatusTid + ' | ';
if (VisEjhelp != "JA"){
overskrifttxt +=' | ';
overskrifttxt +=' | ';
}
if (VisOpdater == "JA"){
overskrifttxt += ' | ';
overskrifttxt += ' | ';
}
overskrifttxt +=' | ';
overskrifttxt +='
';
}
else
overskrifttxt +="
";
}
}
return overskrifttxt;
}
function _makestyle(){
var gsStyle = "";
if (globalstylefile) gsStyle = '
';
return gsStyle;
}
function _move(id, obj, prd, cur1, cur2, cur3, cur4, cur5){
if(prd=="") prd = "INF";
if(top.gsBrand=="DB"){
//display wait text for netstyr applications
if(top.gsSprog=="EN") displayTXT = "Loading information, please wait...";
else displayTXT = "Henter oplysninger. Vent venligst...";
tempTXT = '
'+displayTXT+'
';
if(top.indhold.document.getElementById("HideShow")){
top.indhold.document.getElementById("HideShow").style.display="none";
top.indhold.document.getElementById("spwait").style.display="";
top.indhold.document.getElementById("spwait").innerHTML = tempTXT;
}}
if(top.indhold.document.Form1){
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();}
else alert("Error - move function failed.");
}
var logo = new logo();
/* global functions */
function _Funktionsmenupktclick(FM, ResetCurItemsTF){
MenuPopupAktiv = false;
eval(jsframe+'hidepopup("Funktionsmenu",false);');
if (FM.Ftype=="A"){
if (FM.Value == null)
eval(logoframe+'move("'+FM.Aktion+'","'+FM.Objekt+'");');
else{
if (FM.Valueposition == null)
eval(logoframe+'move("'+FM.Aktion+'","'+FM.Objekt+'",null,"'+FM.Value+'");');
else{
if (ResetCurItemsTF == null) ResetCurItemsTF = true;
strCurItems = logoframe + 'move("'+FM.Aktion+'","'+FM.Objekt+'",""';
for (i=1; i <= 5; i++){
if (i == parseInt(FM.Valueposition,10))
strCurItems += ',"'+FM.Value+'"';
else{
if ((ResetCurItemsTF) || (!document.getElementById))
strCurItems += ',""';
else{
if (i == 1)
strCurItems += ',"'+eval(targetFrame+'document.getElementsByName("gsCurItem").item(0).value')+'"';
else
strCurItems += ',"'+eval(targetFrame+'document.getElementsByName("gsCurItem' + i+'").item(0).value')+'"';
}
}
}
strCurItems += ');';
eval(jsframe+strCurItems);
}
}
}
if (FM.Ftype=="F"){
if (FM.Value == null || FM.Value == '') /* W-Framework */
eval(targetFrame+FM.Objekt + "()");
else {
/* eval(targetFrame+FM.Objekt+'("' +FM.Value+ '");'); */
eval(targetFrame+FM.Objekt+'("' +FM.Value+ '","'+FM.internID+'");');
}
}
}
function _menufunktionIEC(){
ret = "";
for (i=0; i < this.maxantal; i++) ret += this.Funkmenu[i].FMenutxt + "€" + i + "|" ;
xpos = eval(jsframe+"getOffsetLeft("+targetFrame+"document.getElementById('"+this.imgsID+"'))");
ypos = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))");
OffsetWidth = eval(jsframe+"getOffsetWidth("+targetFrame+"document.getElementById('"+this.imgsID+"'))");
OffsetHeight = eval(jsframe+"getOffsetHeight("+targetFrame+"document.getElementById('"+this.imgsID+"'))");
vf = eval(jsframe+'document.getElementById("Funkmenu").showMenuEv(xpos + '+targetFrame+'screenLeft + 9, ypos + '+targetFrame+'screenTop + 5, ret, xpos + '+targetFrame+'screenLeft, ypos + '+targetFrame+'screenTop, OffsetHeight, OffsetWidth);');
if (vf.length != 0) _Funktionsmenupktclick(this.Funkmenu[vf], this.ResetCurItemsTF);
}
function _menufunktionIE(){
var flip = false;
FMenuHeight = this.maxantal * 15;
FMHeight = eval(targetFrame + "document.body.clientHeight");
FMScroll = eval(targetFrame + "document.body.scrollTop");
ImgPos = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))");
toggleImg = eval(targetFrame+"document.getElementById('"+this.imgsID+"')");
BundPos = FMenuHeight+ImgPos-FMScroll+37;
if (BundPos > FMHeight)
flip = true;
popupinnerHTML = '
';
var leftpos = 0
var toppos = 13
FPopupMenu = eval(targetFrame+'document.getElementById("Funktionsmenu")');
FPopupMenu.innerHTML = popupinnerHTML;
FPopupMenu.style.left = eval(jsframe+"getOffsetLeft("+targetFrame+"document.getElementById('"+this.imgsID+"'))")+leftpos+"px";
FMH = eval(targetFrame+'document.getElementById("Funktionsmenu").clientHeight');
if (flip){
if (FMH > FMenuHeight)
FPopupMenu.style.top = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))")-FMH+"px";
else
FPopupMenu.style.top = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))")-FMenuHeight+"px";
}
else
FPopupMenu.style.top = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))")+toppos+"px";
FPopupMenu.style.display = "";
FMH = eval(targetFrame+'document.getElementById("Funktionsmenu").clientHeight');
if (flip){
if (FMH > FMenuHeight)
FPopupMenu.style.top = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))")-FMH+"px";
else
FPopupMenu.style.top = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))")-FMenuHeight+"px";
}
else
FPopupMenu.style.top = eval(jsframe+"getOffsetTop("+targetFrame+"document.getElementById('"+this.imgsID+"'))")+toppos+"px";
FPopupMenu.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].focus();
}
function _Fmenuobj(ID, MFarray, _value){
Fmenuobjstatus = true;
this.internID = MFarray[ID];
this.FMenutxt = MFarray[ID+1];
this.Ftype = MFarray[ID+2];
this.Objekt = MFarray[ID+3];
this.Aktion = MFarray[ID+4];
this.Valueposition = MFarray[ID+5];
this.Value = _value;
return Fmenuobjstatus;
}
function _Initmenufunktion(InternID, MenuFArr, ShowFunktionsValues, value, imgsID, ResetCurItemsTF){
this.InternID = InternID;
this.MFarray = MenuFArr;
this.VisAllefunktioner = (( ShowFunktionsValues.length == 3) && (ShowFunktionsValues == "ALL"));
this._value = value;
this.imgsID = imgsID;
if (ResetCurItemsTF == null) this.ResetCurItemsTF = true; else this.ResetCurItemsTF = ResetCurItemsTF;
this.Funkmenu = new Array();
this.maxantal = 0;
this.menufunktionIEC = _menufunktionIEC;
this.menufunktionIE = _menufunktionIE;
/* Initier menufunktions objektet : ------*/
var showfunk = new Array();
var tempstr = "";
if (ShowFunktionsValues != "ALL"){
ShowFunktionsValues += '€';
for (i=0; i < MenuFArr.length; i+=6) showfunk[MenuFArr[i]] = false;
for (x=0; x < ShowFunktionsValues.length; x+=1){
if ((ShowFunktionsValues.substr(x,1) == ",") || (ShowFunktionsValues.substr(x,1) == "€")){
showfunk[parseInt(tempstr,10)] = true;
tempstr = "";
}
else
tempstr +=ShowFunktionsValues.substr(x,1);
}
}
if(this.MFarray !=null){
for (i=0; i < this.MFarray.length+1; i+=6){
if (!this.VisAllefunktioner){
if (showfunk[parseInt(this.MFarray[i],10)] == true){
eval("this.Funkmenu["+this.maxantal+"] = new _Fmenuobj("+i+",this.MFarray,this._value);");
this.maxantal++;
}
}
else{
eval("this.Funkmenu["+this.maxantal+"] = new _Fmenuobj("+i+",this.MFarray,this._value);");
this.maxantal++;
}
}
}
if (this.VisAllefunktioner) this.maxantal = this.maxantal -1;
}
function menufunktion(menufarr, showfunktionsvalues, value, imgsid, resetcuritemstf){
eval(targetFrame+"funktionsm = new _Initmenufunktion('xxxx', menufarr, showfunktionsvalues, value, imgsid, resetcuritemstf)");
if (timerID != null) clearTimeout(timerID);
MenuPopupAktiv = true;
FMImgClicked = true;
eval(targetFrame+"funktionsm.menufunktionIE();");
}
function mf(menufarr, showfunktionsvalues, value, imgsid, resetcuritemstf){
menufunktion(menufarr, showfunktionsvalues, value, imgsid, resetcuritemstf);
}
function tFM(fieldObj, mout)
{
var imgObj=eval(targetFrame + "document.getElementById('" + fieldObj.id + "')");
if (mout)
imgObj.src= getFunctionMenuImgPath('fmpil') + "/fmpil.gif";
else
imgObj.src= getFunctionMenuImgPath('fmpilo') + "/fmpilo.gif";
}
// Internal funktion for getting function menu image path
function getFunctionMenuImgPath(imgID)
{
fmBrand = top.gsBrand;
if (top.ishomepage){
return getFMGeneralImgPath() + imgID + fmBrand.toLowerCase() + "/$File/";
}
else if (top.indhold){
return getFMGeneralImgPath() + fmBrand.toUpperCase();
}
}
// General funktion for getting general image path
function getFMGeneralImgPath()
{
if (top.ishomepage){
return location.protocol + "//" + top.domain_domino + "/image/"
}
else if (top.indhold){
return location.protocol + "//" + location.host + "/img/";
}
}
function getOffsetLeft(el){
var ol = el.offsetLeft;
while ((el = el.offsetParent) != null) { ol += el.offsetLeft; }
return ol;}
function getOffsetTop(el){
var ot = el.offsetTop;
while((el = el.offsetParent) != null) { ot += el.offsetTop; }
return ot;}
function getOffsetWidth(el){ return el.offsetWidth; }
function getOffsetHeight(el){ return el.offsetHeight; }
function cancelhide(MenuPopup){
if(MenuPopupAktiv){
FMImgClicked = true;
if(MenuPopup == "popmenu") rubrikhide = false;
if(MenuPopup == "Funktionsmenu") FunkMhide = false;
}
}
function hp(MenuPopup, TimeoutTF){
if(MenuPopup == "fm") MenuPopup = "Funktionsmenu"
hidepopup(MenuPopup, TimeoutTF)
}
function hidepopup(MenuPopup, TimeoutTF){
if(MenuPopup == "popmenu") rubrikhide = true;
if(MenuPopup == "Funktionsmenu") FunkMhide = true;
if (MenuPopupAktiv && FMImgClicked)
{
FMImgClicked = false;
if (FMTimeOutDone == false)
if (timerID != null)
clearTimeout(timerID);
if((TimeoutTF != null) && (TimeoutTF)){
FMTimeOutDone = false;
timerID = setTimeout("hidepopup2('"+MenuPopup+"')", 500);
}
else{
eval("hidepopup2('"+MenuPopup+"')");
}
}
}
function hidepopup2(MenuPopup){
temphide = false;
if(MenuPopup == "Funktionsmenu") temphide = FunkMhide;
if(MenuPopup == "popmenu") temphide = rubrikhide;
if((temphide) && (eval(targetFrame+'document.getElementById("'+MenuPopup+'") != null'))){
eval(targetFrame+'document.getElementById("'+MenuPopup+'").style.display = "none"');
MenuPopupAktiv = false;
FMTimeOutDone = true;
}
}
function getgsImage(imgId,imgType,func,imgTooltip){
if ("" + imgTooltip == "undefined"){
imgTooltip="";
}
if ("" + func == "undefined" || "" + func == ""){
str = "
 + ")
";
}
else {
str = "
 + ")
";
}
return str;
}
function getgsImageURL(imgType){
if (top.ishomepage){
// homepage frameset
var brand = top.gsBrand;
return location.protocol + "//" + top.domain_domino + "/image/" + "imagelib" + brand.toLowerCase() + "/$File/ico_" + imgType + ".gif";
}
else if (top.indhold){
// netbank frameset
var brand = top.brand;
brand = brand.toUpperCase();
return location.protocol + "//" + location.host + "/img/" + brand + "/ico_" + imgType + ".gif";
}
}