Mikä mielestänne kusi Sampo

tanskalaisten hynttyiden yhdistämisessä??

Oisko ollu liian halpa tarjous työn suorittamiseen...?
233105
Äänestä

Muut lukivat myös

Vastaukset 23

Vanhimmat

Ei ole vaikea arvata miksi homma meni reisille. Homma arvatenkin tuupattiin tehtäväksi suotuisan kustannustason maihin. Pawel ja Kabul väänsivät yhdessä tuumin koodia ja kun kysyttiin että toimiihan koodi nyt, niin vastaus oli: "Yes Sir, it is tested throughly and works perfectly!".

Todellisuudessa Pawel oli saanut aikaiseksi yhden test casen, jonka Kabul oli saanut pyörähtämään spagettikasaa "lievästi modifioimalla".

Asiaan liittyen, tällä palstallahan arvailtiin joku aika sitten, että toisen rahoituslaitoksen asiakastietojen vuoto vääriin käsiin johtui luultavasti myös halvasta ja hyvästä.

Äänestä
  • "Asiaan liittyen, tällä palstallahan arvailtiin joku aika sitten, että toisen rahoituslaitoksen asiakastietojen vuoto vääriin käsiin johtui luultavasti myös halvasta ja hyvästä. "

    Mikä juttu tää on? Mikä rahoituslaitos kyseessä?

    Äänestä

Lehtiotsikoiden perusteella ihan liian moni asia mennyt pieleen. Verkkopankin ongelmat ovat olleet vain jäävuoren huippu. Ongelmia oli useammissa järjestelmissä eli ihan kaikki mennyt täysin vituralleen. Aivan harvinaisen törkeä tapaus!!! Onkohan näin isoa pannukakkua nähty vielä missään?!

Aikanaan verottajan tietojärjestelmäuudistus oli haasteellinen, kun se tuotti useita vääriä verolippuja. Kesti pitkään korjata, mutta muistaakseni tiedottaminen oli kohdallaan.

Espoon kaupungin sosiaalitoiminnan järjestelmät (muistaakseni) olivat tenuttajan ansiosta täysin perällään joku vuosi sitten, mutta nekin saatiin toimimaan.

En kyllä muista kotimaasta pahempaa sotkua kuin mitä Sammossa saatiin aikaisiksi. Onnittelut vaan sinne it-osastolle historiallisesta suorituksesta =)! Keep up the good work!

Äänestä

Porukka ei vaan osaa. Isolla rahalla kyllä rekrytaan porukkaa joka Ei Vaan Osaa.

Äänestä
  • systeemin tekijät ja kehittäjät lienee vastavalmistuneita insinöörejä jotka hallitsee paremmin sen toisen insinööritieteen eli ryyppäämisen.

    Äänestä

  • Jokainen kokenut koodari näkee heti että tämä Sampopankin javakoodipätkä on amatöörin harakanpesä vailla mitään tolkkua. Varsinainen viritelmä!


    _______ DANSKE BANKIN KOODIA __________________

    function setSletcurs(){
    //CurItem skal nulstilles hvis man springer mellem objekter idet kerne ikke kan håndtere forkert input
    if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession)
    f=top.indhold.document.Form1;
    else f=top.postframe.document.Form1;
    if (nextobj!=curobj){
       sletcur1=true;
       
       if((curobj=="Netaftale") || ((curobj=="Depot") && (nextobj=="Fondsordre")) || ((curobj=="Modtager") && (nextobj=="Betaling")) || ((curobj=="Konto") && (nextobj=="BetalingNO")) || ((curobj=="Konto") && (nextobj=="BetalingSE")) || ((curobj=="Konto") && (nextobj=="BetalingIR")) || ((curobj=="Konto") && (nextobj=="BetalingFI")) || ((curobj=="Konto") && (nextobj=="Betaling")) || ((curobj=="Links") && (nextobj=="Værdipapir")) || (nextakt=="VPList") || (nextakt=="VPSogListe"))
          sletcur1=false;
       
       if(((curakt=="DBInit") && (nextakt=="DIDetalj")) || ((curakt=="DBList") && (nextakt=="DIDetalj")) || ((curakt=="VPKursLst") && (nextakt=="PRFRetI")))
          sletcur1=false;
       if(((curakt=="DBList") || (curakt=="DBInit")) && ((nextakt=="DBKomList") || (nextakt=="DBSumList")))
          sletcur1=false;
       if(((curakt=="InvBasDK") || (curakt=="InvBasNO")) && ((nextakt=="IPExpListS") || (nextakt=="IPExpKnowS") || (nextakt=="IPKndListe")))
          sletcur1=false;
       if((curakt=="KuNivStr") && (nextakt=="DBList"))
          sletcur1=false;
       if((curobj=="Netaftale") && (nextobj=="Fondsordre"))
          sletcur1=true;
       if(curobj=="SRListR")
          sletcur1=false;
       if(curobj=="Kvittering" && nextobj!="Depot")
          sletcur1=false;
       if((curobj=="BetalingIR" || curobj=="BetalingFI" ) && nextobj=="Kvittering")
          sletcur1=false;
    }
    if((curakt.substring(0,1)=="L") && (curakt!="Logon") && (nextakt.substring(0,1)=="K")){
       if(!((curakt=="LBList") && (nextakt=="KBMedVis")) &&!((curakt=="LBList") && (nextakt=="KBDetVis")))
          sletcur1=true;   //Går fra lån til konto
    }
    if(((curakt.substring(0,2)=="PA") && (nextakt.substring(0,2)=="PM")) || ((curakt.substring(0,2)=="PM") && (nextakt.substring(0,2)=="PA")))
       sletcur1=true;   //mellem modtaget og afsendt

    if((curakt=="KTList") || (curakt=="KTListS") || (curakt=="Logon") || (curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBLinkS") || (curakt=="KBListD")){
       if((nextakt!="KTList") && (nextakt!="KTListS") && (nextakt!="KBList") && (nextakt!="KBListS") && (nextakt!="KBListD") && (nextakt!="KBDetVis") && (nextakt!="OVNy") && (nextakt!="IKNy") && (nextakt!="CHNy") && (nextakt!="GINy") && (nextakt!="KONyS") && (nextakt!="RENyS") && (nextakt!="OINyS") && (nextakt!="PANyS") && (nextakt!="UdlNy") && (nextakt!="PGNy") && (nextakt!="OFNy") && (nextakt!="LONy") && (nextakt!="PBNy") && (nextakt!="BGNy") && (nextakt!="KBMedVis") && (nextakt!="DBInit") && (nextakt!="KBSletVal") && (nextakt.substring(0,9)!="KBSletAcc") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="VPList") && (nextakt!="VPSogListe") && (nextakt.substring(0,9)!="KTVilkVis") && (nextakt.substring(0,7)!="KTIndst") && (nextakt!="KTNvRet") && (nextakt!="PSVis") && (nextakt!="PSNejLogon") && (nextakt!="INVis"))
          sletcur1=true;
    }
    if(curakt=="DEList"){
       if((nextakt!="DIList") && (nextakt!="FONy") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIVisTotal") && (nextakt!="DENvRet") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((curakt=="DBList") || (curakt=="DBInit")){
       if((nextakt!="VPDetalj") && (nextakt!="DEList") && (nextakt!="DIList") && (nextakt!="DBDetalj") && (nextakt!="DIDetalj") && (nextakt!="DBSumList") && (nextakt!="DBKomList") && (nextakt!="DBSletVal") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((nextakt=="DBList") || (nextakt=="DBInit")){
       if((curakt!="DIList") && (curakt!="DBList") && (curakt!="DBInit") && (nextakt!="DBKomList") && (nextakt!="DBSumList") && (nextakt!="DBDetalj") && (nextakt!="VPDetalj") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur2=true;
    }
    if(curakt=="DIList"){
       if((nextakt!="DAList") && (nextakt!="FONy") && (nextakt!="DEList") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIDetalj") && (nextakt!="DIVisTotal") && (nextakt!="DEVisTotal") && (nextakt!="DIGTgrnd") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if(curakt=="BHOvSigtN"){
       if((nextobj=="Fondsordre") || (nextobj=="Depot") || (nextobj=="Værdipapir") || (nextobj=="Nyheder") || (nextobj=="Fonde"))
          sletcur1=false;
    }
    if(curakt=="DLIndB"){
       if((nextakt=="DLDIHdl"))
          sletcur1=true;
    }
    if((curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBListD")){
       if((nextakt!="KBMedVis") && (nextakt!="KBDetVis") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="KBList"))
          sletcur2=true;
    }
    if((curakt.substring(0,4)=="FONy") || (curakt=="VPHKurs") || (curobj=="Valuta")){
       if(nextakt=="VPKursLst")
          sletcur2=true;
    }
    if((curakt=="ANAnalyB") || (curakt=="ANAnalyC") || (curakt=="ANAnalyD") || (curakt=="FNGrundlNy") || (curakt=="FNListFH") || (curakt=="FNListFHSl") || (curakt=="FNListFHRt")){
       if(nextakt=="FNOprFH")
          sletcur2=true;
    }
    if((nextobj=="Fondsordre") && ((nextakt=="FoHanStru1") || (nextakt=="FoHanStru2") || (nextakt=="FoHanStru3") || (nextakt=="FoHanStru4"))){
       sletcur1=false;
    }
    if((nextobj=="Fonde") && ((nextakt=="FOByt") || (nextakt=="FONyFKS") || (nextakt=="FONyFSS"))){
       sletcur1=false;
       sletcur4=false;
    }
    if((nextakt=="VPList") || (nextakt=="VPKursLst"))
       sletcur1=false;
    if(nextakt=="KBListD"){
       sletcur1=false;
       sletcur2=false;
    }
    if(nextakt=="FKNy")
       sletcur2=true;
    if(nextakt=="FUNy")
       sletcur2=true;
    if((curakt=="AKNRes") && (nextakt.substring(0,9)=="KTVilkVis")){
       sletcur1=false;
       sletcur2=false;
    }
    if(curobj=="Overblik"){
       sletcur1=true;
       sletcur2=false;
       if (nextakt=="PMVis")
          sletcur1=false
    }
    if(nextakt=="OBDybden"){
       sletcur1=false
       sletcur2=true;
    }
    if(nextakt=="VPFACTS"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="VPFACTS" || curakt=="VPHKurs") && nextakt=="VPIXUdv"){
       sletcur1=true;
       sletcur2=true;
    }
    if(nextakt=="SRList"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="SRList") && ((nextakt!="SRList") && (nextakt!="NYVis"))){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(nextakt=="EBSignon"){
       sletcur2=true;
       sletcur3=true;
    }
    //FOKUS
    if(curakt=="BEHist")
       if(nextakt=="RENyS"){
          sletcur1=true;
          sletcur2=true;
       }
    if(curakt=="RENyS")
       if(nextakt=="BEHistInit"){
          sletcur1=true;
          sletcur2=true;
       }
    if((nextakt=="MOSog") || (curakt=="MOSog")){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="BEHist")){
       if (nextakt=="KBDetVis")
          sletcur1=false;
    }
    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="RERetS") || (nextakt=="REKopS") || (nextakt=="KORetS") || (nextakt=="KOKopS") ||(nextakt=="OIRetS") || (nextakt=="OIKopS") || (nextakt=="PGRet") || (nextakt=="PGKop") || (nextakt=="OFRet") || (nextakt=="OFKop") || (nextakt=="LORet") || (nextakt=="LOKop") || (nextakt=="OLRet") || (nextakt=="OLKop")){
          sletcur1=false;
          sletcur4=true;
       }
    }

    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="PARetS") || (nextakt=="PAKopS") ||(nextakt=="DDRetS")){
          sletcur1=false;
       }
    }

    if(curakt=="KBDetVis" || curakt.substring(0,2)=="UB"){
       if (nextakt=="EGVisFakt" || nextakt=="EGRet")
           sletcur1=false;
    }
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="UBList")
       sletcur1=false
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="OTList")
       sletcur1=false
    if(curobj=="Forside" && nextobj=="Post")
       sletcur1=false
    if((curobj=="DanicaLink" || curobj=="DanicaNyPr") && nextobj=="Værdipapir" && nextakt=="VDPapir")
       sletcur1=false
    if((curobj=="DanicaLink" && (curakt=="DLDIList" || curakt=="DLKBList")) && (nextobj=="DanicaLink" && nextakt=="DLDIList"))
       sletcur1=true
    if((curobj=="DanicaNyPr" && (curakt=="DLKBList2" || curakt=="DLDBList3" || curakt=="DLKBDetVis")) && (nextobj=="DanicaNyPr" && nextakt=="DLDIList2"))
       sletcur1=true
    if((curobj!="Privat") && (nextobj=="Privat") && (f.gsProdukt.value=="DNB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curobj=="Privat"){
       //De steder hvor curItem3 bliver sat til en specifik fond, skal curItem3 have fondid.
       //inden man fortsætter til transaktioner.
       if((curakt.substring(0,7)=="DLSProf") || (curakt.substring(0,7)=="DLSCPro") || (curakt.substring(0,7)=="DLSHand") || (curakt=="DLSForsik") && (nextakt.substring(0,7)=="DLSTran")){
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
       }
    }
    if((curobj=="Depot" || curobj=="Værdipapir") && (nextakt=="AGOpretI"))
       sletcur2=false
    if((curobj=="Værdipapir") && ((nextakt.substring(0,2)=="DA") ||(nextakt.substring(0,2)=="DI")) && (nextakt!="DIList")){
       sletcur2=false
       sletcur1=false;
    }
    if((curobj=="Værdipapir" && curakt=="VPHKurs") && (nextobj=="Depot" && nextakt=="DAPGTList"))
       sletcur1=true
    if(curakt.substring(0,6)=="UBList" || curakt.substring(0,5)=="UBGod" || curakt.substring(0,6)=="UBSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="KORetS") || (nextakt=="RERetS")|| (nextakt=="OIRetS") || (nextakt=="PGRet") || (nextakt=="OFRet") || (nextakt=="LORet"))
          sletcur1=false;
       if((nextakt=="RERetS"))
          sletcur1=false;
    }
    if(curakt.substring(0,6)=="OTList" || curakt.substring(0,5)=="OTGod" || curakt.substring(0,6)=="OTSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="PARetS") || (nextakt=="DDRetS"))
          sletcur1=false;
    }
    if((nextakt=="SRList") ||(nextakt=="NYVis")){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=false;
       sletcur5=true;
    }
    if((curakt=="HEIKList")){
       if(nextakt=="BAList"){
          sletcur1=true;
          sletcur2=true;
          sletcur3=true;
          sletcur4=true;
          sletcur5=true;
       }
    }
    if(curakt=="RERetUdb" || curakt=="KORetUdb" || curakt=="OIRetUdb" || curakt=="PARetUdb" || curakt=="OVRetUdb" || curakt=="IKRetUdb" || curakt=="PGRetUdb" || curakt=="OFRetUdb" || curakt=="LORetUdb"){
       if(nextakt=="KBDetVis")
          sletcur1=false;
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) || ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) || ((curakt=="DLNForsik") && (nextakt=="DLNTrans"))){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=true;
       sletcur5=false;
       parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) ||
        ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) ||
        ((curakt=="DLNForsik") && (nextakt=="DLNTrans")) ||
        ((curakt!="DLNProfil") && (nextakt=="DLNProfil"))
       )
       {if(f.gsProdukt.value=="DNB"){   
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
          }
       }
    if((curobj!="DLINKNorge") && (nextobj=="DLINKNorge") && (f.gsProdukt.value=="DNB" || f.gsProdukt.value=="INB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curakt=="KTRubUFor" && nextakt=="INVis"){
       sletcur1=false;
    }
    if(curakt=="BSBrevS" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="eDKOvs" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="VDDybdS"){
       sletcur1=true;
    }
    if(nextakt=="DNBForside" || nextakt=="DNBForsid2" || nextakt=="NBForside" || nextakt=="NBForside2" || nextakt=="NIBForside" || nextakt=="NIBForsid2" || nextakt=="SAMForside" || nextakt=="SAMForsid2"){
       nrubrikNotesIDer=new Array('DefaultNetbank1','DefaultNetbank2','DefaultNetbank3','DefaultNetbank4','DefaultNetbank5');
    //   trubrikNotesIDer=new Array('TipsNetbank1','TipsNetbank2','TipsNetbank3','TipsNetbank4','TipsNetbank5');
       if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession) f = top.indhold.document.Form1;
       else f = top.postframe.document.Form1;

       var chalresp2=getChallenge(chalresp);

       f.action = top.postaction;
    //   f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))] "&trubrikNDID=" trubrikNotesIDer[Math.round(Math.random() * (trubrikNotesIDer.length-1))];
       f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))];
       f.action = "&gsAftlnr=" f.gsAftlnr.value;
       f.action = "&gsSession=" f.gsSession.value;
       f.action = "&gsSprog=" f.gsSprog.value;
       f.action = "&gsProdukt=DNB";
       f.action = "&gsNextObj=Forside";
       f.action = "&gsNextAkt=" nextakt;
       f.action = "&gsChalResp=" encodeURIComponent(chalresp2);
    }} //function setSletcurs END

    function setSletcursPF(){
       sletcur1=true;
       sletcur2=true;
    }

    function findobject(id){
    var sstr=id.substring(0,2);
    nextakt=id;
    if((id=="VPHKursAdA") || (id=="VPHKursAdO") || (id=="VPHKursAdI"))
       selectedStocks=null;
    if((sstr=="KT") || (sstr=="KB") || (sstr=="LN") || (sstr=="LB"))
       nextobj="Konto";
    if((sstr=="OV") || (sstr=="IK") || (sstr=="CH") || (sstr=="GI") || (sstr=="BE") || (sstr=="UB") || (sstr=="OT") || (id=="EIKIKNy") || (nextakt=="EIKIKNyVal")||(sstr=="Ud") )
       nextobj="Betaling";
    if((sstr=="KO") || (sstr=="RE")) //FOKUS
       nextobj="BetalingNO";
    if(sstr=="OL") //Luxembourg
       nextobj="BetalingLU";
    if((sstr=="BG") || (sstr=="PG") ||(sstr=="OF") ||(sstr=="LO")) //hembanken
       nextobj="BetalingSE";
    if((sstr=="OI")) //Irland
       nextobj="BetalingIR";
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARetNy") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    if((id=="OVMoGem") || (id=="OVMoGemAcc") || (id=="IKMoGem") || (id=="IKMoGemAcc"))
       nextobj="Modtager";
    if(sstr=="MO")
       nextobj="Modtager";
    if(sstr=="VA")
       nextobj="Valuta";
    if(sstr=="DL")
       nextobj="DanicaLink";
    if(id=="DLSForsik")
       nextobj="Privat";
    if((id=="DLDBInit1") || (id=="DLDBList3") || (id=="DLDEList3") || (id=="DLDIList2") || (id=="DLKBList2") || (id=="DLRetNv2") || (id=="DLRetN2Acc") || (curobj=="DanicaNyPr" && id=="DLKBDetVis"))
       nextobj="DanicaNyPr";
    if(sstr=="BV")
       nextobj="Bestilling";
    if(sstr=="AN"){
       nextobj="FNanalyse";
       if(nextakt.substring(0,7)=="ANAnaly")
          lastFN=nextakt;
    }
    if(sstr=="FN"){
       nextobj="FNanalyse";
       if(nextakt=="FNOpretA")
          nextakt=lastFN;
       if(nextakt=="FNGrundAcc")
          nextakt="FNGrndAcc" lastFN.substring(7,8); //A, B eller C
    }
    if(sstr=="SR")
       nextobj="Nyheder";
    if(sstr=="KB"){
       if(id=="KBDetVisM")
          parent.indhold.VisDetaljerM();
    }
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem5.value=="AVG")
          nextakt="AGRet";
    }
    if(sstr=="KT"){
       if(id=="KTEksport")
          parent.indhold.Eksporter();
       if(id=="KTGemKopi")
          parent.indhold.GemKopi();
       if(id=="KTHentKopi")
          parent.indhold.HentKopi();
    }
    if(sstr=="VP"){
       var theForm;
       if(postframeactive || hostpagegone)
          theForm=parent.postframe.document.Form1
       else
          theForm=parent.indhold.document.Form1

       nextobj="Værdipapir";
       if(id=="VPDetalj" && (theForm.gsProdukt.value=="INB" || theForm.gsProdukt.value=="OEF")){
          nextakt="VPFACTS"
          theForm.gsCurItem.value=theForm.gsCurItem2.value;
       }
       if(id=="VPListA"){
          theForm.gsCurItem.value="AKT";
          nextakt="VPList";
       }
       if(id=="VPListO"){
          theForm.gsCurItem.value="OBL";
          nextakt="VPList";
       }
       if(id=="VPListUA"){
          theForm.gsCurItem.value="UAK";
          nextakt="VPList";
       }
       if(id=="VPListINV"){
          theForm.gsCurItem.value="INV";
          nextakt="VPList";
       }
       if(id=="VPSogListeA"){
          theForm.gsNextUObj.value="aktie";
          nextakt="VPSogListe";
       }
       if(id=="VPSogListeO"){
          theForm.gsNextUObj.value="oblig";
          nextakt="VPSogListe";
       }
       if(id=="VPHKursNEW"){
          deleteAllCurves();
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPHKurs";
       }
       if(id=="VPFONy"){
          parent.indhold.Udvaelg();
          nextakt="FONy";
          nextobj="Fondsordre";
       }
       if(id=="VPVPDetalj"){
          parent.indhold.Udvaelg();
          nextakt="VPDetalj";
       }
       if(id=="VPKursLstB"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstS"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstO"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPAktierGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000001";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(id=="VPObligationerGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000002";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(nextakt=="VPSRListR"){
          nextakt="SRList";
          nextobj="Nyheder"
          theForm.gsCurItem.value="REUTER";
       }
       if(id=="VPKursLs2B"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2S"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2O"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
    }
    if((sstr=="Sa") || (sstr=="Ea"))
       nextobj="eAbonment";
    if((sstr=="DB") || (sstr=="DE") || (sstr=="DI") || (sstr=="DF") || (sstr=="DP") || (sstr=="DA"))
       nextobj="Depot";
    if((sstr=="FO") || (id=="DBSletVal") || (id=="DBSletAcc"))
       nextobj="Fondsordre";
    if((sstr=="MC") || (sstr=="LA") || (sstr=="MA") || (sstr=="AL") || (sstr=="AK") || (sstr=="AM")) //CEN
       nextobj="Ansøgning";
    if((sstr=="PM") || (sstr=="PA") || (sstr=="PO") || (sstr=="PS"))
       nextobj="Post";
    if((sstr=="AF") || (sstr=="IN"))
       nextobj="Netaftale";
    if((sstr=="KP")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if((sstr=="MD")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if(sstr=="OK")
       if (id=="OKSoeg")
          parent.indhold.Ok();
    if(sstr=="Lo")
       nextobj="Netaftale";
    if((sstr=="RL") || (sstr=="KS") || (sstr=="RD") || (sstr=="DN") || (sstr=="RT") || (sstr=="R4"))
       nextobj="Realkredit";
    if(sstr=="RB")
       nextobj="RKBeregn";
    if(sstr=="MB")
       nextobj="MBAftale";
    if(id.substring(0,3)=="MBK")
       nextobj="MBKoder";
    if(sstr=="PR")
       nextobj="Profil";
    if((sstr=="BS") || (sstr=="BA") || (sstr=="FK") || (sstr=="FU")|| (nextakt=="EIKNy") || (nextakt=="EIKList") || (nextakt=="EIKListST") || (nextakt=="HEIKList"))
       nextobj="BetAftaler";
    if((sstr=="NH") || (sstr=="NS")|| (sstr=="NA") || (sstr=="NY"))
       nextobj="Nyheder";
    if(nextakt=="AKTest")
       nextobj="AKTester";
    if(sstr=="EB")
       nextobj="e-Boks";
    if(sstr=="OB")
       nextobj="Overblik";
    if(sstr=="AG")
       nextobj="Agenter";
    if(sstr=="NE")
       nextobj="SingleSign";
    if(sstr=="SA")
       nextobj="Selvadm";
    if(sstr=="ES")
       nextobj="eSafeKey";
    if(nextakt=="FOSSLsBehS")
       nextobj="Insider";
    if(nextakt=="FOSSLSFS")
       nextobj="Insider";
    if(sstr=="BU" ||
    id=="RegnArkNy" ||
    id=="RgnArkGra" ||
    id=="RgnArkINy" ||
    id=="RgnArkIRet" ||
    id=="RgnArkIUNA" ||
    id=="RgnArkIUNG" ||
    id=="RgnArkIURA" ||
    id=="RgnArkIURG" ||
    id=="RgnOver" ||
    id=="RgnOverslt" ||
    id=="RgnOverF" ||
    id=="RgnOverFS" ||
    id=="RSKatBvAcc" ||
    id=="RSKatBvNy" ||
    id=="RSKatBvNyK" ||
    id=="RSKatBvNyP" ||
    id=="RSKatBvNyR" ||
    id=="RSKatBvRet" ||
    id=="RSKatBvSlB")
    nextobj="Budget";
    //FINLAND
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARet") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    //FOKUS
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc")
       nextobj="BetAftaler";
    if(id=="AGStatVal" || id=="AGStatAcc")
       nextobj="Konto";
    if((sstr=="KO") || (sstr=="RE") || (id=="BEHist") || (id=="BEHistInit"))
       nextobj="BetalingNO";
    if(id=="BADetVis")
       nextobj="BetAftaler";
    if(id=="BASleDVal")
       nextobj="BetAftaler";
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc" )
       nextobj="BetAftaler";
    if(sstr=="eF")
       nextobj="BetalingNO";
    if(sstr=="EG" || sstr=="GT")
       nextobj="BetalingSE";
    if(id=="eFListEgne" || id=="eFListAlle" || id=="eFKobNy" || id=="eFKobNyAcc" || id=="eFKobSlet" || id=="eFKobSlAcc" || id=="eFKobVis" || id=="eFUsrEmail")
       nextobj="Kontrpanel";
    if(id=="POStart")
       nextobj="PensOvs";
    if(id=="FOKForside" || id=="DNBForside" || id=="OEBForside" || id=="LUXForside" || id=="NFUForside" || id=="NIBForside" || id=="NBForside" || id=="SAMForside" ||
    id=="FOKForsid2" || id=="DNBForsid2" || id=="OEBForsid2" || id=="LUXForsid2" || id=="NFUForsid2" || id=="NIBForsid2" || id=="NBForsid2" || id=="SAMForsid2")
       nextobj="Forside";
    if(id=="Netbank021")
       nextobj="Skabeloner";
    if(id=="PreLogoff")
       nextobj="Netaftale";
    if(id=="ACLogon")
       nextobj="ACLogon";
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="4" || parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="F"){
          nextakt="AGRet";
          nextobj="BetAftaler";
       }
    }
    if(id=="DPNy" || id=="DPNyVal" || id=="FOList" || id=="FOVisa" || id=="FOVisa2" || id=="MSAndra" || id=="MSAndraVal" || id=="MSGodk" || id=="MSList" || id=="MSNy" || id=="MSNyVal")
       nextobj="FondSE";
    if(id=="ekhent")
       nextobj="DLINKNorge";
    }

    if(top.brand == "FOK") {
       document.write("");
    }

    Äänestä

  • Koodari 70 luvulta kirjoitti:

    Jokainen kokenut koodari näkee heti että tämä Sampopankin javakoodipätkä on amatöörin harakanpesä vailla mitään tolkkua. Varsinainen viritelmä!


    _______ DANSKE BANKIN KOODIA __________________

    function setSletcurs(){
    //CurItem skal nulstilles hvis man springer mellem objekter idet kerne ikke kan håndtere forkert input
    if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession)
    f=top.indhold.document.Form1;
    else f=top.postframe.document.Form1;
    if (nextobj!=curobj){
       sletcur1=true;
       
       if((curobj=="Netaftale") || ((curobj=="Depot") && (nextobj=="Fondsordre")) || ((curobj=="Modtager") && (nextobj=="Betaling")) || ((curobj=="Konto") && (nextobj=="BetalingNO")) || ((curobj=="Konto") && (nextobj=="BetalingSE")) || ((curobj=="Konto") && (nextobj=="BetalingIR")) || ((curobj=="Konto") && (nextobj=="BetalingFI")) || ((curobj=="Konto") && (nextobj=="Betaling")) || ((curobj=="Links") && (nextobj=="Værdipapir")) || (nextakt=="VPList") || (nextakt=="VPSogListe"))
          sletcur1=false;
       
       if(((curakt=="DBInit") && (nextakt=="DIDetalj")) || ((curakt=="DBList") && (nextakt=="DIDetalj")) || ((curakt=="VPKursLst") && (nextakt=="PRFRetI")))
          sletcur1=false;
       if(((curakt=="DBList") || (curakt=="DBInit")) && ((nextakt=="DBKomList") || (nextakt=="DBSumList")))
          sletcur1=false;
       if(((curakt=="InvBasDK") || (curakt=="InvBasNO")) && ((nextakt=="IPExpListS") || (nextakt=="IPExpKnowS") || (nextakt=="IPKndListe")))
          sletcur1=false;
       if((curakt=="KuNivStr") && (nextakt=="DBList"))
          sletcur1=false;
       if((curobj=="Netaftale") && (nextobj=="Fondsordre"))
          sletcur1=true;
       if(curobj=="SRListR")
          sletcur1=false;
       if(curobj=="Kvittering" && nextobj!="Depot")
          sletcur1=false;
       if((curobj=="BetalingIR" || curobj=="BetalingFI" ) && nextobj=="Kvittering")
          sletcur1=false;
    }
    if((curakt.substring(0,1)=="L") && (curakt!="Logon") && (nextakt.substring(0,1)=="K")){
       if(!((curakt=="LBList") && (nextakt=="KBMedVis")) &&!((curakt=="LBList") && (nextakt=="KBDetVis")))
          sletcur1=true;   //Går fra lån til konto
    }
    if(((curakt.substring(0,2)=="PA") && (nextakt.substring(0,2)=="PM")) || ((curakt.substring(0,2)=="PM") && (nextakt.substring(0,2)=="PA")))
       sletcur1=true;   //mellem modtaget og afsendt

    if((curakt=="KTList") || (curakt=="KTListS") || (curakt=="Logon") || (curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBLinkS") || (curakt=="KBListD")){
       if((nextakt!="KTList") && (nextakt!="KTListS") && (nextakt!="KBList") && (nextakt!="KBListS") && (nextakt!="KBListD") && (nextakt!="KBDetVis") && (nextakt!="OVNy") && (nextakt!="IKNy") && (nextakt!="CHNy") && (nextakt!="GINy") && (nextakt!="KONyS") && (nextakt!="RENyS") && (nextakt!="OINyS") && (nextakt!="PANyS") && (nextakt!="UdlNy") && (nextakt!="PGNy") && (nextakt!="OFNy") && (nextakt!="LONy") && (nextakt!="PBNy") && (nextakt!="BGNy") && (nextakt!="KBMedVis") && (nextakt!="DBInit") && (nextakt!="KBSletVal") && (nextakt.substring(0,9)!="KBSletAcc") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="VPList") && (nextakt!="VPSogListe") && (nextakt.substring(0,9)!="KTVilkVis") && (nextakt.substring(0,7)!="KTIndst") && (nextakt!="KTNvRet") && (nextakt!="PSVis") && (nextakt!="PSNejLogon") && (nextakt!="INVis"))
          sletcur1=true;
    }
    if(curakt=="DEList"){
       if((nextakt!="DIList") && (nextakt!="FONy") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIVisTotal") && (nextakt!="DENvRet") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((curakt=="DBList") || (curakt=="DBInit")){
       if((nextakt!="VPDetalj") && (nextakt!="DEList") && (nextakt!="DIList") && (nextakt!="DBDetalj") && (nextakt!="DIDetalj") && (nextakt!="DBSumList") && (nextakt!="DBKomList") && (nextakt!="DBSletVal") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((nextakt=="DBList") || (nextakt=="DBInit")){
       if((curakt!="DIList") && (curakt!="DBList") && (curakt!="DBInit") && (nextakt!="DBKomList") && (nextakt!="DBSumList") && (nextakt!="DBDetalj") && (nextakt!="VPDetalj") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur2=true;
    }
    if(curakt=="DIList"){
       if((nextakt!="DAList") && (nextakt!="FONy") && (nextakt!="DEList") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIDetalj") && (nextakt!="DIVisTotal") && (nextakt!="DEVisTotal") && (nextakt!="DIGTgrnd") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if(curakt=="BHOvSigtN"){
       if((nextobj=="Fondsordre") || (nextobj=="Depot") || (nextobj=="Værdipapir") || (nextobj=="Nyheder") || (nextobj=="Fonde"))
          sletcur1=false;
    }
    if(curakt=="DLIndB"){
       if((nextakt=="DLDIHdl"))
          sletcur1=true;
    }
    if((curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBListD")){
       if((nextakt!="KBMedVis") && (nextakt!="KBDetVis") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="KBList"))
          sletcur2=true;
    }
    if((curakt.substring(0,4)=="FONy") || (curakt=="VPHKurs") || (curobj=="Valuta")){
       if(nextakt=="VPKursLst")
          sletcur2=true;
    }
    if((curakt=="ANAnalyB") || (curakt=="ANAnalyC") || (curakt=="ANAnalyD") || (curakt=="FNGrundlNy") || (curakt=="FNListFH") || (curakt=="FNListFHSl") || (curakt=="FNListFHRt")){
       if(nextakt=="FNOprFH")
          sletcur2=true;
    }
    if((nextobj=="Fondsordre") && ((nextakt=="FoHanStru1") || (nextakt=="FoHanStru2") || (nextakt=="FoHanStru3") || (nextakt=="FoHanStru4"))){
       sletcur1=false;
    }
    if((nextobj=="Fonde") && ((nextakt=="FOByt") || (nextakt=="FONyFKS") || (nextakt=="FONyFSS"))){
       sletcur1=false;
       sletcur4=false;
    }
    if((nextakt=="VPList") || (nextakt=="VPKursLst"))
       sletcur1=false;
    if(nextakt=="KBListD"){
       sletcur1=false;
       sletcur2=false;
    }
    if(nextakt=="FKNy")
       sletcur2=true;
    if(nextakt=="FUNy")
       sletcur2=true;
    if((curakt=="AKNRes") && (nextakt.substring(0,9)=="KTVilkVis")){
       sletcur1=false;
       sletcur2=false;
    }
    if(curobj=="Overblik"){
       sletcur1=true;
       sletcur2=false;
       if (nextakt=="PMVis")
          sletcur1=false
    }
    if(nextakt=="OBDybden"){
       sletcur1=false
       sletcur2=true;
    }
    if(nextakt=="VPFACTS"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="VPFACTS" || curakt=="VPHKurs") && nextakt=="VPIXUdv"){
       sletcur1=true;
       sletcur2=true;
    }
    if(nextakt=="SRList"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="SRList") && ((nextakt!="SRList") && (nextakt!="NYVis"))){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(nextakt=="EBSignon"){
       sletcur2=true;
       sletcur3=true;
    }
    //FOKUS
    if(curakt=="BEHist")
       if(nextakt=="RENyS"){
          sletcur1=true;
          sletcur2=true;
       }
    if(curakt=="RENyS")
       if(nextakt=="BEHistInit"){
          sletcur1=true;
          sletcur2=true;
       }
    if((nextakt=="MOSog") || (curakt=="MOSog")){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="BEHist")){
       if (nextakt=="KBDetVis")
          sletcur1=false;
    }
    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="RERetS") || (nextakt=="REKopS") || (nextakt=="KORetS") || (nextakt=="KOKopS") ||(nextakt=="OIRetS") || (nextakt=="OIKopS") || (nextakt=="PGRet") || (nextakt=="PGKop") || (nextakt=="OFRet") || (nextakt=="OFKop") || (nextakt=="LORet") || (nextakt=="LOKop") || (nextakt=="OLRet") || (nextakt=="OLKop")){
          sletcur1=false;
          sletcur4=true;
       }
    }

    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="PARetS") || (nextakt=="PAKopS") ||(nextakt=="DDRetS")){
          sletcur1=false;
       }
    }

    if(curakt=="KBDetVis" || curakt.substring(0,2)=="UB"){
       if (nextakt=="EGVisFakt" || nextakt=="EGRet")
           sletcur1=false;
    }
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="UBList")
       sletcur1=false
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="OTList")
       sletcur1=false
    if(curobj=="Forside" && nextobj=="Post")
       sletcur1=false
    if((curobj=="DanicaLink" || curobj=="DanicaNyPr") && nextobj=="Værdipapir" && nextakt=="VDPapir")
       sletcur1=false
    if((curobj=="DanicaLink" && (curakt=="DLDIList" || curakt=="DLKBList")) && (nextobj=="DanicaLink" && nextakt=="DLDIList"))
       sletcur1=true
    if((curobj=="DanicaNyPr" && (curakt=="DLKBList2" || curakt=="DLDBList3" || curakt=="DLKBDetVis")) && (nextobj=="DanicaNyPr" && nextakt=="DLDIList2"))
       sletcur1=true
    if((curobj!="Privat") && (nextobj=="Privat") && (f.gsProdukt.value=="DNB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curobj=="Privat"){
       //De steder hvor curItem3 bliver sat til en specifik fond, skal curItem3 have fondid.
       //inden man fortsætter til transaktioner.
       if((curakt.substring(0,7)=="DLSProf") || (curakt.substring(0,7)=="DLSCPro") || (curakt.substring(0,7)=="DLSHand") || (curakt=="DLSForsik") && (nextakt.substring(0,7)=="DLSTran")){
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
       }
    }
    if((curobj=="Depot" || curobj=="Værdipapir") && (nextakt=="AGOpretI"))
       sletcur2=false
    if((curobj=="Værdipapir") && ((nextakt.substring(0,2)=="DA") ||(nextakt.substring(0,2)=="DI")) && (nextakt!="DIList")){
       sletcur2=false
       sletcur1=false;
    }
    if((curobj=="Værdipapir" && curakt=="VPHKurs") && (nextobj=="Depot" && nextakt=="DAPGTList"))
       sletcur1=true
    if(curakt.substring(0,6)=="UBList" || curakt.substring(0,5)=="UBGod" || curakt.substring(0,6)=="UBSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="KORetS") || (nextakt=="RERetS")|| (nextakt=="OIRetS") || (nextakt=="PGRet") || (nextakt=="OFRet") || (nextakt=="LORet"))
          sletcur1=false;
       if((nextakt=="RERetS"))
          sletcur1=false;
    }
    if(curakt.substring(0,6)=="OTList" || curakt.substring(0,5)=="OTGod" || curakt.substring(0,6)=="OTSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="PARetS") || (nextakt=="DDRetS"))
          sletcur1=false;
    }
    if((nextakt=="SRList") ||(nextakt=="NYVis")){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=false;
       sletcur5=true;
    }
    if((curakt=="HEIKList")){
       if(nextakt=="BAList"){
          sletcur1=true;
          sletcur2=true;
          sletcur3=true;
          sletcur4=true;
          sletcur5=true;
       }
    }
    if(curakt=="RERetUdb" || curakt=="KORetUdb" || curakt=="OIRetUdb" || curakt=="PARetUdb" || curakt=="OVRetUdb" || curakt=="IKRetUdb" || curakt=="PGRetUdb" || curakt=="OFRetUdb" || curakt=="LORetUdb"){
       if(nextakt=="KBDetVis")
          sletcur1=false;
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) || ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) || ((curakt=="DLNForsik") && (nextakt=="DLNTrans"))){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=true;
       sletcur5=false;
       parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) ||
        ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) ||
        ((curakt=="DLNForsik") && (nextakt=="DLNTrans")) ||
        ((curakt!="DLNProfil") && (nextakt=="DLNProfil"))
       )
       {if(f.gsProdukt.value=="DNB"){   
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
          }
       }
    if((curobj!="DLINKNorge") && (nextobj=="DLINKNorge") && (f.gsProdukt.value=="DNB" || f.gsProdukt.value=="INB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curakt=="KTRubUFor" && nextakt=="INVis"){
       sletcur1=false;
    }
    if(curakt=="BSBrevS" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="eDKOvs" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="VDDybdS"){
       sletcur1=true;
    }
    if(nextakt=="DNBForside" || nextakt=="DNBForsid2" || nextakt=="NBForside" || nextakt=="NBForside2" || nextakt=="NIBForside" || nextakt=="NIBForsid2" || nextakt=="SAMForside" || nextakt=="SAMForsid2"){
       nrubrikNotesIDer=new Array('DefaultNetbank1','DefaultNetbank2','DefaultNetbank3','DefaultNetbank4','DefaultNetbank5');
    //   trubrikNotesIDer=new Array('TipsNetbank1','TipsNetbank2','TipsNetbank3','TipsNetbank4','TipsNetbank5');
       if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession) f = top.indhold.document.Form1;
       else f = top.postframe.document.Form1;

       var chalresp2=getChallenge(chalresp);

       f.action = top.postaction;
    //   f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))] "&trubrikNDID=" trubrikNotesIDer[Math.round(Math.random() * (trubrikNotesIDer.length-1))];
       f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))];
       f.action = "&gsAftlnr=" f.gsAftlnr.value;
       f.action = "&gsSession=" f.gsSession.value;
       f.action = "&gsSprog=" f.gsSprog.value;
       f.action = "&gsProdukt=DNB";
       f.action = "&gsNextObj=Forside";
       f.action = "&gsNextAkt=" nextakt;
       f.action = "&gsChalResp=" encodeURIComponent(chalresp2);
    }} //function setSletcurs END

    function setSletcursPF(){
       sletcur1=true;
       sletcur2=true;
    }

    function findobject(id){
    var sstr=id.substring(0,2);
    nextakt=id;
    if((id=="VPHKursAdA") || (id=="VPHKursAdO") || (id=="VPHKursAdI"))
       selectedStocks=null;
    if((sstr=="KT") || (sstr=="KB") || (sstr=="LN") || (sstr=="LB"))
       nextobj="Konto";
    if((sstr=="OV") || (sstr=="IK") || (sstr=="CH") || (sstr=="GI") || (sstr=="BE") || (sstr=="UB") || (sstr=="OT") || (id=="EIKIKNy") || (nextakt=="EIKIKNyVal")||(sstr=="Ud") )
       nextobj="Betaling";
    if((sstr=="KO") || (sstr=="RE")) //FOKUS
       nextobj="BetalingNO";
    if(sstr=="OL") //Luxembourg
       nextobj="BetalingLU";
    if((sstr=="BG") || (sstr=="PG") ||(sstr=="OF") ||(sstr=="LO")) //hembanken
       nextobj="BetalingSE";
    if((sstr=="OI")) //Irland
       nextobj="BetalingIR";
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARetNy") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    if((id=="OVMoGem") || (id=="OVMoGemAcc") || (id=="IKMoGem") || (id=="IKMoGemAcc"))
       nextobj="Modtager";
    if(sstr=="MO")
       nextobj="Modtager";
    if(sstr=="VA")
       nextobj="Valuta";
    if(sstr=="DL")
       nextobj="DanicaLink";
    if(id=="DLSForsik")
       nextobj="Privat";
    if((id=="DLDBInit1") || (id=="DLDBList3") || (id=="DLDEList3") || (id=="DLDIList2") || (id=="DLKBList2") || (id=="DLRetNv2") || (id=="DLRetN2Acc") || (curobj=="DanicaNyPr" && id=="DLKBDetVis"))
       nextobj="DanicaNyPr";
    if(sstr=="BV")
       nextobj="Bestilling";
    if(sstr=="AN"){
       nextobj="FNanalyse";
       if(nextakt.substring(0,7)=="ANAnaly")
          lastFN=nextakt;
    }
    if(sstr=="FN"){
       nextobj="FNanalyse";
       if(nextakt=="FNOpretA")
          nextakt=lastFN;
       if(nextakt=="FNGrundAcc")
          nextakt="FNGrndAcc" lastFN.substring(7,8); //A, B eller C
    }
    if(sstr=="SR")
       nextobj="Nyheder";
    if(sstr=="KB"){
       if(id=="KBDetVisM")
          parent.indhold.VisDetaljerM();
    }
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem5.value=="AVG")
          nextakt="AGRet";
    }
    if(sstr=="KT"){
       if(id=="KTEksport")
          parent.indhold.Eksporter();
       if(id=="KTGemKopi")
          parent.indhold.GemKopi();
       if(id=="KTHentKopi")
          parent.indhold.HentKopi();
    }
    if(sstr=="VP"){
       var theForm;
       if(postframeactive || hostpagegone)
          theForm=parent.postframe.document.Form1
       else
          theForm=parent.indhold.document.Form1

       nextobj="Værdipapir";
       if(id=="VPDetalj" && (theForm.gsProdukt.value=="INB" || theForm.gsProdukt.value=="OEF")){
          nextakt="VPFACTS"
          theForm.gsCurItem.value=theForm.gsCurItem2.value;
       }
       if(id=="VPListA"){
          theForm.gsCurItem.value="AKT";
          nextakt="VPList";
       }
       if(id=="VPListO"){
          theForm.gsCurItem.value="OBL";
          nextakt="VPList";
       }
       if(id=="VPListUA"){
          theForm.gsCurItem.value="UAK";
          nextakt="VPList";
       }
       if(id=="VPListINV"){
          theForm.gsCurItem.value="INV";
          nextakt="VPList";
       }
       if(id=="VPSogListeA"){
          theForm.gsNextUObj.value="aktie";
          nextakt="VPSogListe";
       }
       if(id=="VPSogListeO"){
          theForm.gsNextUObj.value="oblig";
          nextakt="VPSogListe";
       }
       if(id=="VPHKursNEW"){
          deleteAllCurves();
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPHKurs";
       }
       if(id=="VPFONy"){
          parent.indhold.Udvaelg();
          nextakt="FONy";
          nextobj="Fondsordre";
       }
       if(id=="VPVPDetalj"){
          parent.indhold.Udvaelg();
          nextakt="VPDetalj";
       }
       if(id=="VPKursLstB"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstS"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstO"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPAktierGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000001";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(id=="VPObligationerGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000002";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(nextakt=="VPSRListR"){
          nextakt="SRList";
          nextobj="Nyheder"
          theForm.gsCurItem.value="REUTER";
       }
       if(id=="VPKursLs2B"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2S"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2O"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
    }
    if((sstr=="Sa") || (sstr=="Ea"))
       nextobj="eAbonment";
    if((sstr=="DB") || (sstr=="DE") || (sstr=="DI") || (sstr=="DF") || (sstr=="DP") || (sstr=="DA"))
       nextobj="Depot";
    if((sstr=="FO") || (id=="DBSletVal") || (id=="DBSletAcc"))
       nextobj="Fondsordre";
    if((sstr=="MC") || (sstr=="LA") || (sstr=="MA") || (sstr=="AL") || (sstr=="AK") || (sstr=="AM")) //CEN
       nextobj="Ansøgning";
    if((sstr=="PM") || (sstr=="PA") || (sstr=="PO") || (sstr=="PS"))
       nextobj="Post";
    if((sstr=="AF") || (sstr=="IN"))
       nextobj="Netaftale";
    if((sstr=="KP")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if((sstr=="MD")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if(sstr=="OK")
       if (id=="OKSoeg")
          parent.indhold.Ok();
    if(sstr=="Lo")
       nextobj="Netaftale";
    if((sstr=="RL") || (sstr=="KS") || (sstr=="RD") || (sstr=="DN") || (sstr=="RT") || (sstr=="R4"))
       nextobj="Realkredit";
    if(sstr=="RB")
       nextobj="RKBeregn";
    if(sstr=="MB")
       nextobj="MBAftale";
    if(id.substring(0,3)=="MBK")
       nextobj="MBKoder";
    if(sstr=="PR")
       nextobj="Profil";
    if((sstr=="BS") || (sstr=="BA") || (sstr=="FK") || (sstr=="FU")|| (nextakt=="EIKNy") || (nextakt=="EIKList") || (nextakt=="EIKListST") || (nextakt=="HEIKList"))
       nextobj="BetAftaler";
    if((sstr=="NH") || (sstr=="NS")|| (sstr=="NA") || (sstr=="NY"))
       nextobj="Nyheder";
    if(nextakt=="AKTest")
       nextobj="AKTester";
    if(sstr=="EB")
       nextobj="e-Boks";
    if(sstr=="OB")
       nextobj="Overblik";
    if(sstr=="AG")
       nextobj="Agenter";
    if(sstr=="NE")
       nextobj="SingleSign";
    if(sstr=="SA")
       nextobj="Selvadm";
    if(sstr=="ES")
       nextobj="eSafeKey";
    if(nextakt=="FOSSLsBehS")
       nextobj="Insider";
    if(nextakt=="FOSSLSFS")
       nextobj="Insider";
    if(sstr=="BU" ||
    id=="RegnArkNy" ||
    id=="RgnArkGra" ||
    id=="RgnArkINy" ||
    id=="RgnArkIRet" ||
    id=="RgnArkIUNA" ||
    id=="RgnArkIUNG" ||
    id=="RgnArkIURA" ||
    id=="RgnArkIURG" ||
    id=="RgnOver" ||
    id=="RgnOverslt" ||
    id=="RgnOverF" ||
    id=="RgnOverFS" ||
    id=="RSKatBvAcc" ||
    id=="RSKatBvNy" ||
    id=="RSKatBvNyK" ||
    id=="RSKatBvNyP" ||
    id=="RSKatBvNyR" ||
    id=="RSKatBvRet" ||
    id=="RSKatBvSlB")
    nextobj="Budget";
    //FINLAND
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARet") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    //FOKUS
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc")
       nextobj="BetAftaler";
    if(id=="AGStatVal" || id=="AGStatAcc")
       nextobj="Konto";
    if((sstr=="KO") || (sstr=="RE") || (id=="BEHist") || (id=="BEHistInit"))
       nextobj="BetalingNO";
    if(id=="BADetVis")
       nextobj="BetAftaler";
    if(id=="BASleDVal")
       nextobj="BetAftaler";
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc" )
       nextobj="BetAftaler";
    if(sstr=="eF")
       nextobj="BetalingNO";
    if(sstr=="EG" || sstr=="GT")
       nextobj="BetalingSE";
    if(id=="eFListEgne" || id=="eFListAlle" || id=="eFKobNy" || id=="eFKobNyAcc" || id=="eFKobSlet" || id=="eFKobSlAcc" || id=="eFKobVis" || id=="eFUsrEmail")
       nextobj="Kontrpanel";
    if(id=="POStart")
       nextobj="PensOvs";
    if(id=="FOKForside" || id=="DNBForside" || id=="OEBForside" || id=="LUXForside" || id=="NFUForside" || id=="NIBForside" || id=="NBForside" || id=="SAMForside" ||
    id=="FOKForsid2" || id=="DNBForsid2" || id=="OEBForsid2" || id=="LUXForsid2" || id=="NFUForsid2" || id=="NIBForsid2" || id=="NBForsid2" || id=="SAMForsid2")
       nextobj="Forside";
    if(id=="Netbank021")
       nextobj="Skabeloner";
    if(id=="PreLogoff")
       nextobj="Netaftale";
    if(id=="ACLogon")
       nextobj="ACLogon";
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="4" || parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="F"){
          nextakt="AGRet";
          nextobj="BetAftaler";
       }
    }
    if(id=="DPNy" || id=="DPNyVal" || id=="FOList" || id=="FOVisa" || id=="FOVisa2" || id=="MSAndra" || id=="MSAndraVal" || id=="MSGodk" || id=="MSList" || id=="MSNy" || id=="MSNyVal")
       nextobj="FondSE";
    if(id=="ekhent")
       nextobj="DLINKNorge";
    }

    if(top.brand == "FOK") {
       document.write("");
    }

    onko tuo muka oikeasti jostain sampon systeemistä?? järkyttävää!

    Äänestä


  • ei oo tod... kirjoitti:

    onko tuo muka oikeasti jostain sampon systeemistä?? järkyttävää!

    litaniassa ei skulaa...

    Äänestä

  • mikä tossa kirjoitti:

    litaniassa ei skulaa...

    Vaikka itse en Javalla paljonkaan nykyään tee, niin koodista näkee että hommaa ei ole faktoroitu tarpeeksi. Redundanssia on vaikka muille jakaa ja muutenkin hökötys vaikuttaa jonkun juuri kurssilta valmistuneen hassulta väkerrykseltä.

    Missä on modulaarisuus, missä on algoritminen suunnittelu? Koodaan joka päivä mission-critical koodia sekä x86 asmilla, C:llä että C :lla ja voin sanoa että jos tanskalaiset virkaveljeni ovat tasolla josta juuri saimme näytteen, niin minulla ei ole hätäpäivää mitä core competenceen tulee :D

    No pointtini on se, että jos ei pankkisektorilla panosteta laatuun, niin missä sitten? Se että homma toimii (tässä tapauksessa moni asia kusee) ei tarkoita sitä että se olisi laadukasta.

    Haluan että rahaliikennettäni ei ohjaile mikään J2EE-väkerrys, koska sellaisen voisin itsekin tehdä sunnuntain ratoksi, vaan haluan että homma on jotenkin vakavasti otettavalla pohjalla. Edellä esitetty koodisnippetti herättää lähinnä kauhunsekaisia naurunpyrskähdyksiä, niin paha se on :)

    Äänestä


  • Koodari 70 luvulta kirjoitti:

    Jokainen kokenut koodari näkee heti että tämä Sampopankin javakoodipätkä on amatöörin harakanpesä vailla mitään tolkkua. Varsinainen viritelmä!


    _______ DANSKE BANKIN KOODIA __________________

    function setSletcurs(){
    //CurItem skal nulstilles hvis man springer mellem objekter idet kerne ikke kan håndtere forkert input
    if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession)
    f=top.indhold.document.Form1;
    else f=top.postframe.document.Form1;
    if (nextobj!=curobj){
       sletcur1=true;
       
       if((curobj=="Netaftale") || ((curobj=="Depot") && (nextobj=="Fondsordre")) || ((curobj=="Modtager") && (nextobj=="Betaling")) || ((curobj=="Konto") && (nextobj=="BetalingNO")) || ((curobj=="Konto") && (nextobj=="BetalingSE")) || ((curobj=="Konto") && (nextobj=="BetalingIR")) || ((curobj=="Konto") && (nextobj=="BetalingFI")) || ((curobj=="Konto") && (nextobj=="Betaling")) || ((curobj=="Links") && (nextobj=="Værdipapir")) || (nextakt=="VPList") || (nextakt=="VPSogListe"))
          sletcur1=false;
       
       if(((curakt=="DBInit") && (nextakt=="DIDetalj")) || ((curakt=="DBList") && (nextakt=="DIDetalj")) || ((curakt=="VPKursLst") && (nextakt=="PRFRetI")))
          sletcur1=false;
       if(((curakt=="DBList") || (curakt=="DBInit")) && ((nextakt=="DBKomList") || (nextakt=="DBSumList")))
          sletcur1=false;
       if(((curakt=="InvBasDK") || (curakt=="InvBasNO")) && ((nextakt=="IPExpListS") || (nextakt=="IPExpKnowS") || (nextakt=="IPKndListe")))
          sletcur1=false;
       if((curakt=="KuNivStr") && (nextakt=="DBList"))
          sletcur1=false;
       if((curobj=="Netaftale") && (nextobj=="Fondsordre"))
          sletcur1=true;
       if(curobj=="SRListR")
          sletcur1=false;
       if(curobj=="Kvittering" && nextobj!="Depot")
          sletcur1=false;
       if((curobj=="BetalingIR" || curobj=="BetalingFI" ) && nextobj=="Kvittering")
          sletcur1=false;
    }
    if((curakt.substring(0,1)=="L") && (curakt!="Logon") && (nextakt.substring(0,1)=="K")){
       if(!((curakt=="LBList") && (nextakt=="KBMedVis")) &&!((curakt=="LBList") && (nextakt=="KBDetVis")))
          sletcur1=true;   //Går fra lån til konto
    }
    if(((curakt.substring(0,2)=="PA") && (nextakt.substring(0,2)=="PM")) || ((curakt.substring(0,2)=="PM") && (nextakt.substring(0,2)=="PA")))
       sletcur1=true;   //mellem modtaget og afsendt

    if((curakt=="KTList") || (curakt=="KTListS") || (curakt=="Logon") || (curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBLinkS") || (curakt=="KBListD")){
       if((nextakt!="KTList") && (nextakt!="KTListS") && (nextakt!="KBList") && (nextakt!="KBListS") && (nextakt!="KBListD") && (nextakt!="KBDetVis") && (nextakt!="OVNy") && (nextakt!="IKNy") && (nextakt!="CHNy") && (nextakt!="GINy") && (nextakt!="KONyS") && (nextakt!="RENyS") && (nextakt!="OINyS") && (nextakt!="PANyS") && (nextakt!="UdlNy") && (nextakt!="PGNy") && (nextakt!="OFNy") && (nextakt!="LONy") && (nextakt!="PBNy") && (nextakt!="BGNy") && (nextakt!="KBMedVis") && (nextakt!="DBInit") && (nextakt!="KBSletVal") && (nextakt.substring(0,9)!="KBSletAcc") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="VPList") && (nextakt!="VPSogListe") && (nextakt.substring(0,9)!="KTVilkVis") && (nextakt.substring(0,7)!="KTIndst") && (nextakt!="KTNvRet") && (nextakt!="PSVis") && (nextakt!="PSNejLogon") && (nextakt!="INVis"))
          sletcur1=true;
    }
    if(curakt=="DEList"){
       if((nextakt!="DIList") && (nextakt!="FONy") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIVisTotal") && (nextakt!="DENvRet") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((curakt=="DBList") || (curakt=="DBInit")){
       if((nextakt!="VPDetalj") && (nextakt!="DEList") && (nextakt!="DIList") && (nextakt!="DBDetalj") && (nextakt!="DIDetalj") && (nextakt!="DBSumList") && (nextakt!="DBKomList") && (nextakt!="DBSletVal") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((nextakt=="DBList") || (nextakt=="DBInit")){
       if((curakt!="DIList") && (curakt!="DBList") && (curakt!="DBInit") && (nextakt!="DBKomList") && (nextakt!="DBSumList") && (nextakt!="DBDetalj") && (nextakt!="VPDetalj") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur2=true;
    }
    if(curakt=="DIList"){
       if((nextakt!="DAList") && (nextakt!="FONy") && (nextakt!="DEList") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIDetalj") && (nextakt!="DIVisTotal") && (nextakt!="DEVisTotal") && (nextakt!="DIGTgrnd") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if(curakt=="BHOvSigtN"){
       if((nextobj=="Fondsordre") || (nextobj=="Depot") || (nextobj=="Værdipapir") || (nextobj=="Nyheder") || (nextobj=="Fonde"))
          sletcur1=false;
    }
    if(curakt=="DLIndB"){
       if((nextakt=="DLDIHdl"))
          sletcur1=true;
    }
    if((curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBListD")){
       if((nextakt!="KBMedVis") && (nextakt!="KBDetVis") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="KBList"))
          sletcur2=true;
    }
    if((curakt.substring(0,4)=="FONy") || (curakt=="VPHKurs") || (curobj=="Valuta")){
       if(nextakt=="VPKursLst")
          sletcur2=true;
    }
    if((curakt=="ANAnalyB") || (curakt=="ANAnalyC") || (curakt=="ANAnalyD") || (curakt=="FNGrundlNy") || (curakt=="FNListFH") || (curakt=="FNListFHSl") || (curakt=="FNListFHRt")){
       if(nextakt=="FNOprFH")
          sletcur2=true;
    }
    if((nextobj=="Fondsordre") && ((nextakt=="FoHanStru1") || (nextakt=="FoHanStru2") || (nextakt=="FoHanStru3") || (nextakt=="FoHanStru4"))){
       sletcur1=false;
    }
    if((nextobj=="Fonde") && ((nextakt=="FOByt") || (nextakt=="FONyFKS") || (nextakt=="FONyFSS"))){
       sletcur1=false;
       sletcur4=false;
    }
    if((nextakt=="VPList") || (nextakt=="VPKursLst"))
       sletcur1=false;
    if(nextakt=="KBListD"){
       sletcur1=false;
       sletcur2=false;
    }
    if(nextakt=="FKNy")
       sletcur2=true;
    if(nextakt=="FUNy")
       sletcur2=true;
    if((curakt=="AKNRes") && (nextakt.substring(0,9)=="KTVilkVis")){
       sletcur1=false;
       sletcur2=false;
    }
    if(curobj=="Overblik"){
       sletcur1=true;
       sletcur2=false;
       if (nextakt=="PMVis")
          sletcur1=false
    }
    if(nextakt=="OBDybden"){
       sletcur1=false
       sletcur2=true;
    }
    if(nextakt=="VPFACTS"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="VPFACTS" || curakt=="VPHKurs") && nextakt=="VPIXUdv"){
       sletcur1=true;
       sletcur2=true;
    }
    if(nextakt=="SRList"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="SRList") && ((nextakt!="SRList") && (nextakt!="NYVis"))){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(nextakt=="EBSignon"){
       sletcur2=true;
       sletcur3=true;
    }
    //FOKUS
    if(curakt=="BEHist")
       if(nextakt=="RENyS"){
          sletcur1=true;
          sletcur2=true;
       }
    if(curakt=="RENyS")
       if(nextakt=="BEHistInit"){
          sletcur1=true;
          sletcur2=true;
       }
    if((nextakt=="MOSog") || (curakt=="MOSog")){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="BEHist")){
       if (nextakt=="KBDetVis")
          sletcur1=false;
    }
    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="RERetS") || (nextakt=="REKopS") || (nextakt=="KORetS") || (nextakt=="KOKopS") ||(nextakt=="OIRetS") || (nextakt=="OIKopS") || (nextakt=="PGRet") || (nextakt=="PGKop") || (nextakt=="OFRet") || (nextakt=="OFKop") || (nextakt=="LORet") || (nextakt=="LOKop") || (nextakt=="OLRet") || (nextakt=="OLKop")){
          sletcur1=false;
          sletcur4=true;
       }
    }

    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="PARetS") || (nextakt=="PAKopS") ||(nextakt=="DDRetS")){
          sletcur1=false;
       }
    }

    if(curakt=="KBDetVis" || curakt.substring(0,2)=="UB"){
       if (nextakt=="EGVisFakt" || nextakt=="EGRet")
           sletcur1=false;
    }
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="UBList")
       sletcur1=false
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="OTList")
       sletcur1=false
    if(curobj=="Forside" && nextobj=="Post")
       sletcur1=false
    if((curobj=="DanicaLink" || curobj=="DanicaNyPr") && nextobj=="Værdipapir" && nextakt=="VDPapir")
       sletcur1=false
    if((curobj=="DanicaLink" && (curakt=="DLDIList" || curakt=="DLKBList")) && (nextobj=="DanicaLink" && nextakt=="DLDIList"))
       sletcur1=true
    if((curobj=="DanicaNyPr" && (curakt=="DLKBList2" || curakt=="DLDBList3" || curakt=="DLKBDetVis")) && (nextobj=="DanicaNyPr" && nextakt=="DLDIList2"))
       sletcur1=true
    if((curobj!="Privat") && (nextobj=="Privat") && (f.gsProdukt.value=="DNB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curobj=="Privat"){
       //De steder hvor curItem3 bliver sat til en specifik fond, skal curItem3 have fondid.
       //inden man fortsætter til transaktioner.
       if((curakt.substring(0,7)=="DLSProf") || (curakt.substring(0,7)=="DLSCPro") || (curakt.substring(0,7)=="DLSHand") || (curakt=="DLSForsik") && (nextakt.substring(0,7)=="DLSTran")){
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
       }
    }
    if((curobj=="Depot" || curobj=="Værdipapir") && (nextakt=="AGOpretI"))
       sletcur2=false
    if((curobj=="Værdipapir") && ((nextakt.substring(0,2)=="DA") ||(nextakt.substring(0,2)=="DI")) && (nextakt!="DIList")){
       sletcur2=false
       sletcur1=false;
    }
    if((curobj=="Værdipapir" && curakt=="VPHKurs") && (nextobj=="Depot" && nextakt=="DAPGTList"))
       sletcur1=true
    if(curakt.substring(0,6)=="UBList" || curakt.substring(0,5)=="UBGod" || curakt.substring(0,6)=="UBSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="KORetS") || (nextakt=="RERetS")|| (nextakt=="OIRetS") || (nextakt=="PGRet") || (nextakt=="OFRet") || (nextakt=="LORet"))
          sletcur1=false;
       if((nextakt=="RERetS"))
          sletcur1=false;
    }
    if(curakt.substring(0,6)=="OTList" || curakt.substring(0,5)=="OTGod" || curakt.substring(0,6)=="OTSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="PARetS") || (nextakt=="DDRetS"))
          sletcur1=false;
    }
    if((nextakt=="SRList") ||(nextakt=="NYVis")){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=false;
       sletcur5=true;
    }
    if((curakt=="HEIKList")){
       if(nextakt=="BAList"){
          sletcur1=true;
          sletcur2=true;
          sletcur3=true;
          sletcur4=true;
          sletcur5=true;
       }
    }
    if(curakt=="RERetUdb" || curakt=="KORetUdb" || curakt=="OIRetUdb" || curakt=="PARetUdb" || curakt=="OVRetUdb" || curakt=="IKRetUdb" || curakt=="PGRetUdb" || curakt=="OFRetUdb" || curakt=="LORetUdb"){
       if(nextakt=="KBDetVis")
          sletcur1=false;
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) || ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) || ((curakt=="DLNForsik") && (nextakt=="DLNTrans"))){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=true;
       sletcur5=false;
       parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) ||
        ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) ||
        ((curakt=="DLNForsik") && (nextakt=="DLNTrans")) ||
        ((curakt!="DLNProfil") && (nextakt=="DLNProfil"))
       )
       {if(f.gsProdukt.value=="DNB"){   
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
          }
       }
    if((curobj!="DLINKNorge") && (nextobj=="DLINKNorge") && (f.gsProdukt.value=="DNB" || f.gsProdukt.value=="INB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curakt=="KTRubUFor" && nextakt=="INVis"){
       sletcur1=false;
    }
    if(curakt=="BSBrevS" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="eDKOvs" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="VDDybdS"){
       sletcur1=true;
    }
    if(nextakt=="DNBForside" || nextakt=="DNBForsid2" || nextakt=="NBForside" || nextakt=="NBForside2" || nextakt=="NIBForside" || nextakt=="NIBForsid2" || nextakt=="SAMForside" || nextakt=="SAMForsid2"){
       nrubrikNotesIDer=new Array('DefaultNetbank1','DefaultNetbank2','DefaultNetbank3','DefaultNetbank4','DefaultNetbank5');
    //   trubrikNotesIDer=new Array('TipsNetbank1','TipsNetbank2','TipsNetbank3','TipsNetbank4','TipsNetbank5');
       if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession) f = top.indhold.document.Form1;
       else f = top.postframe.document.Form1;

       var chalresp2=getChallenge(chalresp);

       f.action = top.postaction;
    //   f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))] "&trubrikNDID=" trubrikNotesIDer[Math.round(Math.random() * (trubrikNotesIDer.length-1))];
       f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))];
       f.action = "&gsAftlnr=" f.gsAftlnr.value;
       f.action = "&gsSession=" f.gsSession.value;
       f.action = "&gsSprog=" f.gsSprog.value;
       f.action = "&gsProdukt=DNB";
       f.action = "&gsNextObj=Forside";
       f.action = "&gsNextAkt=" nextakt;
       f.action = "&gsChalResp=" encodeURIComponent(chalresp2);
    }} //function setSletcurs END

    function setSletcursPF(){
       sletcur1=true;
       sletcur2=true;
    }

    function findobject(id){
    var sstr=id.substring(0,2);
    nextakt=id;
    if((id=="VPHKursAdA") || (id=="VPHKursAdO") || (id=="VPHKursAdI"))
       selectedStocks=null;
    if((sstr=="KT") || (sstr=="KB") || (sstr=="LN") || (sstr=="LB"))
       nextobj="Konto";
    if((sstr=="OV") || (sstr=="IK") || (sstr=="CH") || (sstr=="GI") || (sstr=="BE") || (sstr=="UB") || (sstr=="OT") || (id=="EIKIKNy") || (nextakt=="EIKIKNyVal")||(sstr=="Ud") )
       nextobj="Betaling";
    if((sstr=="KO") || (sstr=="RE")) //FOKUS
       nextobj="BetalingNO";
    if(sstr=="OL") //Luxembourg
       nextobj="BetalingLU";
    if((sstr=="BG") || (sstr=="PG") ||(sstr=="OF") ||(sstr=="LO")) //hembanken
       nextobj="BetalingSE";
    if((sstr=="OI")) //Irland
       nextobj="BetalingIR";
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARetNy") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    if((id=="OVMoGem") || (id=="OVMoGemAcc") || (id=="IKMoGem") || (id=="IKMoGemAcc"))
       nextobj="Modtager";
    if(sstr=="MO")
       nextobj="Modtager";
    if(sstr=="VA")
       nextobj="Valuta";
    if(sstr=="DL")
       nextobj="DanicaLink";
    if(id=="DLSForsik")
       nextobj="Privat";
    if((id=="DLDBInit1") || (id=="DLDBList3") || (id=="DLDEList3") || (id=="DLDIList2") || (id=="DLKBList2") || (id=="DLRetNv2") || (id=="DLRetN2Acc") || (curobj=="DanicaNyPr" && id=="DLKBDetVis"))
       nextobj="DanicaNyPr";
    if(sstr=="BV")
       nextobj="Bestilling";
    if(sstr=="AN"){
       nextobj="FNanalyse";
       if(nextakt.substring(0,7)=="ANAnaly")
          lastFN=nextakt;
    }
    if(sstr=="FN"){
       nextobj="FNanalyse";
       if(nextakt=="FNOpretA")
          nextakt=lastFN;
       if(nextakt=="FNGrundAcc")
          nextakt="FNGrndAcc" lastFN.substring(7,8); //A, B eller C
    }
    if(sstr=="SR")
       nextobj="Nyheder";
    if(sstr=="KB"){
       if(id=="KBDetVisM")
          parent.indhold.VisDetaljerM();
    }
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem5.value=="AVG")
          nextakt="AGRet";
    }
    if(sstr=="KT"){
       if(id=="KTEksport")
          parent.indhold.Eksporter();
       if(id=="KTGemKopi")
          parent.indhold.GemKopi();
       if(id=="KTHentKopi")
          parent.indhold.HentKopi();
    }
    if(sstr=="VP"){
       var theForm;
       if(postframeactive || hostpagegone)
          theForm=parent.postframe.document.Form1
       else
          theForm=parent.indhold.document.Form1

       nextobj="Værdipapir";
       if(id=="VPDetalj" && (theForm.gsProdukt.value=="INB" || theForm.gsProdukt.value=="OEF")){
          nextakt="VPFACTS"
          theForm.gsCurItem.value=theForm.gsCurItem2.value;
       }
       if(id=="VPListA"){
          theForm.gsCurItem.value="AKT";
          nextakt="VPList";
       }
       if(id=="VPListO"){
          theForm.gsCurItem.value="OBL";
          nextakt="VPList";
       }
       if(id=="VPListUA"){
          theForm.gsCurItem.value="UAK";
          nextakt="VPList";
       }
       if(id=="VPListINV"){
          theForm.gsCurItem.value="INV";
          nextakt="VPList";
       }
       if(id=="VPSogListeA"){
          theForm.gsNextUObj.value="aktie";
          nextakt="VPSogListe";
       }
       if(id=="VPSogListeO"){
          theForm.gsNextUObj.value="oblig";
          nextakt="VPSogListe";
       }
       if(id=="VPHKursNEW"){
          deleteAllCurves();
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPHKurs";
       }
       if(id=="VPFONy"){
          parent.indhold.Udvaelg();
          nextakt="FONy";
          nextobj="Fondsordre";
       }
       if(id=="VPVPDetalj"){
          parent.indhold.Udvaelg();
          nextakt="VPDetalj";
       }
       if(id=="VPKursLstB"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstS"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstO"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPAktierGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000001";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(id=="VPObligationerGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000002";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(nextakt=="VPSRListR"){
          nextakt="SRList";
          nextobj="Nyheder"
          theForm.gsCurItem.value="REUTER";
       }
       if(id=="VPKursLs2B"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2S"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2O"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
    }
    if((sstr=="Sa") || (sstr=="Ea"))
       nextobj="eAbonment";
    if((sstr=="DB") || (sstr=="DE") || (sstr=="DI") || (sstr=="DF") || (sstr=="DP") || (sstr=="DA"))
       nextobj="Depot";
    if((sstr=="FO") || (id=="DBSletVal") || (id=="DBSletAcc"))
       nextobj="Fondsordre";
    if((sstr=="MC") || (sstr=="LA") || (sstr=="MA") || (sstr=="AL") || (sstr=="AK") || (sstr=="AM")) //CEN
       nextobj="Ansøgning";
    if((sstr=="PM") || (sstr=="PA") || (sstr=="PO") || (sstr=="PS"))
       nextobj="Post";
    if((sstr=="AF") || (sstr=="IN"))
       nextobj="Netaftale";
    if((sstr=="KP")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if((sstr=="MD")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if(sstr=="OK")
       if (id=="OKSoeg")
          parent.indhold.Ok();
    if(sstr=="Lo")
       nextobj="Netaftale";
    if((sstr=="RL") || (sstr=="KS") || (sstr=="RD") || (sstr=="DN") || (sstr=="RT") || (sstr=="R4"))
       nextobj="Realkredit";
    if(sstr=="RB")
       nextobj="RKBeregn";
    if(sstr=="MB")
       nextobj="MBAftale";
    if(id.substring(0,3)=="MBK")
       nextobj="MBKoder";
    if(sstr=="PR")
       nextobj="Profil";
    if((sstr=="BS") || (sstr=="BA") || (sstr=="FK") || (sstr=="FU")|| (nextakt=="EIKNy") || (nextakt=="EIKList") || (nextakt=="EIKListST") || (nextakt=="HEIKList"))
       nextobj="BetAftaler";
    if((sstr=="NH") || (sstr=="NS")|| (sstr=="NA") || (sstr=="NY"))
       nextobj="Nyheder";
    if(nextakt=="AKTest")
       nextobj="AKTester";
    if(sstr=="EB")
       nextobj="e-Boks";
    if(sstr=="OB")
       nextobj="Overblik";
    if(sstr=="AG")
       nextobj="Agenter";
    if(sstr=="NE")
       nextobj="SingleSign";
    if(sstr=="SA")
       nextobj="Selvadm";
    if(sstr=="ES")
       nextobj="eSafeKey";
    if(nextakt=="FOSSLsBehS")
       nextobj="Insider";
    if(nextakt=="FOSSLSFS")
       nextobj="Insider";
    if(sstr=="BU" ||
    id=="RegnArkNy" ||
    id=="RgnArkGra" ||
    id=="RgnArkINy" ||
    id=="RgnArkIRet" ||
    id=="RgnArkIUNA" ||
    id=="RgnArkIUNG" ||
    id=="RgnArkIURA" ||
    id=="RgnArkIURG" ||
    id=="RgnOver" ||
    id=="RgnOverslt" ||
    id=="RgnOverF" ||
    id=="RgnOverFS" ||
    id=="RSKatBvAcc" ||
    id=="RSKatBvNy" ||
    id=="RSKatBvNyK" ||
    id=="RSKatBvNyP" ||
    id=="RSKatBvNyR" ||
    id=="RSKatBvRet" ||
    id=="RSKatBvSlB")
    nextobj="Budget";
    //FINLAND
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARet") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    //FOKUS
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc")
       nextobj="BetAftaler";
    if(id=="AGStatVal" || id=="AGStatAcc")
       nextobj="Konto";
    if((sstr=="KO") || (sstr=="RE") || (id=="BEHist") || (id=="BEHistInit"))
       nextobj="BetalingNO";
    if(id=="BADetVis")
       nextobj="BetAftaler";
    if(id=="BASleDVal")
       nextobj="BetAftaler";
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc" )
       nextobj="BetAftaler";
    if(sstr=="eF")
       nextobj="BetalingNO";
    if(sstr=="EG" || sstr=="GT")
       nextobj="BetalingSE";
    if(id=="eFListEgne" || id=="eFListAlle" || id=="eFKobNy" || id=="eFKobNyAcc" || id=="eFKobSlet" || id=="eFKobSlAcc" || id=="eFKobVis" || id=="eFUsrEmail")
       nextobj="Kontrpanel";
    if(id=="POStart")
       nextobj="PensOvs";
    if(id=="FOKForside" || id=="DNBForside" || id=="OEBForside" || id=="LUXForside" || id=="NFUForside" || id=="NIBForside" || id=="NBForside" || id=="SAMForside" ||
    id=="FOKForsid2" || id=="DNBForsid2" || id=="OEBForsid2" || id=="LUXForsid2" || id=="NFUForsid2" || id=="NIBForsid2" || id=="NBForsid2" || id=="SAMForsid2")
       nextobj="Forside";
    if(id=="Netbank021")
       nextobj="Skabeloner";
    if(id=="PreLogoff")
       nextobj="Netaftale";
    if(id=="ACLogon")
       nextobj="ACLogon";
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="4" || parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="F"){
          nextakt="AGRet";
          nextobj="BetAftaler";
       }
    }
    if(id=="DPNy" || id=="DPNyVal" || id=="FOList" || id=="FOVisa" || id=="FOVisa2" || id=="MSAndra" || id=="MSAndraVal" || id=="MSGodk" || id=="MSList" || id=="MSNy" || id=="MSNyVal")
       nextobj="FondSE";
    if(id=="ekhent")
       nextobj="DLINKNorge";
    }

    if(top.brand == "FOK") {
       document.write("");
    }

    Siis ei jumalauta mitä säätöä! Eihän tuosta ota pirukaan selvää, eikä haluakaan! Voiko tämä olla totta? Tulee turvallinen ja luottavainen olo rahamaailman "kulmakiveen" - NOT! Olen sanaton ja surullinen.

    Äänestä

  • mutta mutta... kirjoitti:

    Vaikka itse en Javalla paljonkaan nykyään tee, niin koodista näkee että hommaa ei ole faktoroitu tarpeeksi. Redundanssia on vaikka muille jakaa ja muutenkin hökötys vaikuttaa jonkun juuri kurssilta valmistuneen hassulta väkerrykseltä.

    Missä on modulaarisuus, missä on algoritminen suunnittelu? Koodaan joka päivä mission-critical koodia sekä x86 asmilla, C:llä että C :lla ja voin sanoa että jos tanskalaiset virkaveljeni ovat tasolla josta juuri saimme näytteen, niin minulla ei ole hätäpäivää mitä core competenceen tulee :D

    No pointtini on se, että jos ei pankkisektorilla panosteta laatuun, niin missä sitten? Se että homma toimii (tässä tapauksessa moni asia kusee) ei tarkoita sitä että se olisi laadukasta.

    Haluan että rahaliikennettäni ei ohjaile mikään J2EE-väkerrys, koska sellaisen voisin itsekin tehdä sunnuntain ratoksi, vaan haluan että homma on jotenkin vakavasti otettavalla pohjalla. Edellä esitetty koodisnippetti herättää lähinnä kauhunsekaisia naurunpyrskähdyksiä, niin paha se on :)

    mä luulin olevani ainoa joka ei usko, että "kääntäjät kyllä optimoi koodin" =)

    Äänestä

  • ei oo tod... kirjoitti:

    onko tuo muka oikeasti jostain sampon systeemistä?? järkyttävää!

    Huh, huh! Näyttää koodilta, jossa ei ole hajuakaan modulaarisuudesta. Ihan aloittelijan kokeilulta vaikuttaa!

    Äänestä

  • mutta mutta... kirjoitti:

    Vaikka itse en Javalla paljonkaan nykyään tee, niin koodista näkee että hommaa ei ole faktoroitu tarpeeksi. Redundanssia on vaikka muille jakaa ja muutenkin hökötys vaikuttaa jonkun juuri kurssilta valmistuneen hassulta väkerrykseltä.

    Missä on modulaarisuus, missä on algoritminen suunnittelu? Koodaan joka päivä mission-critical koodia sekä x86 asmilla, C:llä että C :lla ja voin sanoa että jos tanskalaiset virkaveljeni ovat tasolla josta juuri saimme näytteen, niin minulla ei ole hätäpäivää mitä core competenceen tulee :D

    No pointtini on se, että jos ei pankkisektorilla panosteta laatuun, niin missä sitten? Se että homma toimii (tässä tapauksessa moni asia kusee) ei tarkoita sitä että se olisi laadukasta.

    Haluan että rahaliikennettäni ei ohjaile mikään J2EE-väkerrys, koska sellaisen voisin itsekin tehdä sunnuntain ratoksi, vaan haluan että homma on jotenkin vakavasti otettavalla pohjalla. Edellä esitetty koodisnippetti herättää lähinnä kauhunsekaisia naurunpyrskähdyksiä, niin paha se on :)

    Ehkä sun on paras pysyä siellä asmin puolella kun tietämys nykyisistä korkeamman tason tekniikoista ei näytä kovin kaksinen olevan ;) Onnea vaan Java EE -sovelluksen tekoon jos se niin helppoa on (Javascript ja appletit eivät Java EE:hen kuulu). Olisi muuten hyväpalkkaisia töitä tarjolla sellaisille, jotka tuosta vaan väkertävät Java EE -pankkisovelluksen... Niin ja Javascript != Java.

    Siitä olen samaa mieltä, että tuo koodipurkka on jotain täysin käsittämätöntä. Saisi sen koodinpätkän tekijä vaihtaa alaa tai siirtyä vaikka projektipäälliköksi kun koodaus ei selvästikään ole se oma laji :D

    Äänestä

  • Koodari 70 luvulta kirjoitti:

    Jokainen kokenut koodari näkee heti että tämä Sampopankin javakoodipätkä on amatöörin harakanpesä vailla mitään tolkkua. Varsinainen viritelmä!


    _______ DANSKE BANKIN KOODIA __________________

    function setSletcurs(){
    //CurItem skal nulstilles hvis man springer mellem objekter idet kerne ikke kan håndtere forkert input
    if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession)
    f=top.indhold.document.Form1;
    else f=top.postframe.document.Form1;
    if (nextobj!=curobj){
       sletcur1=true;
       
       if((curobj=="Netaftale") || ((curobj=="Depot") && (nextobj=="Fondsordre")) || ((curobj=="Modtager") && (nextobj=="Betaling")) || ((curobj=="Konto") && (nextobj=="BetalingNO")) || ((curobj=="Konto") && (nextobj=="BetalingSE")) || ((curobj=="Konto") && (nextobj=="BetalingIR")) || ((curobj=="Konto") && (nextobj=="BetalingFI")) || ((curobj=="Konto") && (nextobj=="Betaling")) || ((curobj=="Links") && (nextobj=="Værdipapir")) || (nextakt=="VPList") || (nextakt=="VPSogListe"))
          sletcur1=false;
       
       if(((curakt=="DBInit") && (nextakt=="DIDetalj")) || ((curakt=="DBList") && (nextakt=="DIDetalj")) || ((curakt=="VPKursLst") && (nextakt=="PRFRetI")))
          sletcur1=false;
       if(((curakt=="DBList") || (curakt=="DBInit")) && ((nextakt=="DBKomList") || (nextakt=="DBSumList")))
          sletcur1=false;
       if(((curakt=="InvBasDK") || (curakt=="InvBasNO")) && ((nextakt=="IPExpListS") || (nextakt=="IPExpKnowS") || (nextakt=="IPKndListe")))
          sletcur1=false;
       if((curakt=="KuNivStr") && (nextakt=="DBList"))
          sletcur1=false;
       if((curobj=="Netaftale") && (nextobj=="Fondsordre"))
          sletcur1=true;
       if(curobj=="SRListR")
          sletcur1=false;
       if(curobj=="Kvittering" && nextobj!="Depot")
          sletcur1=false;
       if((curobj=="BetalingIR" || curobj=="BetalingFI" ) && nextobj=="Kvittering")
          sletcur1=false;
    }
    if((curakt.substring(0,1)=="L") && (curakt!="Logon") && (nextakt.substring(0,1)=="K")){
       if(!((curakt=="LBList") && (nextakt=="KBMedVis")) &&!((curakt=="LBList") && (nextakt=="KBDetVis")))
          sletcur1=true;   //Går fra lån til konto
    }
    if(((curakt.substring(0,2)=="PA") && (nextakt.substring(0,2)=="PM")) || ((curakt.substring(0,2)=="PM") && (nextakt.substring(0,2)=="PA")))
       sletcur1=true;   //mellem modtaget og afsendt

    if((curakt=="KTList") || (curakt=="KTListS") || (curakt=="Logon") || (curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBLinkS") || (curakt=="KBListD")){
       if((nextakt!="KTList") && (nextakt!="KTListS") && (nextakt!="KBList") && (nextakt!="KBListS") && (nextakt!="KBListD") && (nextakt!="KBDetVis") && (nextakt!="OVNy") && (nextakt!="IKNy") && (nextakt!="CHNy") && (nextakt!="GINy") && (nextakt!="KONyS") && (nextakt!="RENyS") && (nextakt!="OINyS") && (nextakt!="PANyS") && (nextakt!="UdlNy") && (nextakt!="PGNy") && (nextakt!="OFNy") && (nextakt!="LONy") && (nextakt!="PBNy") && (nextakt!="BGNy") && (nextakt!="KBMedVis") && (nextakt!="DBInit") && (nextakt!="KBSletVal") && (nextakt.substring(0,9)!="KBSletAcc") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="VPList") && (nextakt!="VPSogListe") && (nextakt.substring(0,9)!="KTVilkVis") && (nextakt.substring(0,7)!="KTIndst") && (nextakt!="KTNvRet") && (nextakt!="PSVis") && (nextakt!="PSNejLogon") && (nextakt!="INVis"))
          sletcur1=true;
    }
    if(curakt=="DEList"){
       if((nextakt!="DIList") && (nextakt!="FONy") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIVisTotal") && (nextakt!="DENvRet") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((curakt=="DBList") || (curakt=="DBInit")){
       if((nextakt!="VPDetalj") && (nextakt!="DEList") && (nextakt!="DIList") && (nextakt!="DBDetalj") && (nextakt!="DIDetalj") && (nextakt!="DBSumList") && (nextakt!="DBKomList") && (nextakt!="DBSletVal") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if((nextakt=="DBList") || (nextakt=="DBInit")){
       if((curakt!="DIList") && (curakt!="DBList") && (curakt!="DBInit") && (nextakt!="DBKomList") && (nextakt!="DBSumList") && (nextakt!="DBDetalj") && (nextakt!="VPDetalj") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur2=true;
    }
    if(curakt=="DIList"){
       if((nextakt!="DAList") && (nextakt!="FONy") && (nextakt!="DEList") && (nextakt!="DBList") && (nextakt!="DBInit") && (nextakt!="DIDetalj") && (nextakt!="DIVisTotal") && (nextakt!="DEVisTotal") && (nextakt!="DIGTgrnd") && (nextakt!="DFInit") && (nextakt!="DFList"))
          sletcur1=true;
    }
    if(curakt=="BHOvSigtN"){
       if((nextobj=="Fondsordre") || (nextobj=="Depot") || (nextobj=="Værdipapir") || (nextobj=="Nyheder") || (nextobj=="Fonde"))
          sletcur1=false;
    }
    if(curakt=="DLIndB"){
       if((nextakt=="DLDIHdl"))
          sletcur1=true;
    }
    if((curakt=="KBList") || (curakt=="KBListS") || (curakt=="KBListD")){
       if((nextakt!="KBMedVis") && (nextakt!="KBDetVis") && (nextakt!="KBSletVal") && (nextakt!="KBAsleVal") && (nextakt!="KBList"))
          sletcur2=true;
    }
    if((curakt.substring(0,4)=="FONy") || (curakt=="VPHKurs") || (curobj=="Valuta")){
       if(nextakt=="VPKursLst")
          sletcur2=true;
    }
    if((curakt=="ANAnalyB") || (curakt=="ANAnalyC") || (curakt=="ANAnalyD") || (curakt=="FNGrundlNy") || (curakt=="FNListFH") || (curakt=="FNListFHSl") || (curakt=="FNListFHRt")){
       if(nextakt=="FNOprFH")
          sletcur2=true;
    }
    if((nextobj=="Fondsordre") && ((nextakt=="FoHanStru1") || (nextakt=="FoHanStru2") || (nextakt=="FoHanStru3") || (nextakt=="FoHanStru4"))){
       sletcur1=false;
    }
    if((nextobj=="Fonde") && ((nextakt=="FOByt") || (nextakt=="FONyFKS") || (nextakt=="FONyFSS"))){
       sletcur1=false;
       sletcur4=false;
    }
    if((nextakt=="VPList") || (nextakt=="VPKursLst"))
       sletcur1=false;
    if(nextakt=="KBListD"){
       sletcur1=false;
       sletcur2=false;
    }
    if(nextakt=="FKNy")
       sletcur2=true;
    if(nextakt=="FUNy")
       sletcur2=true;
    if((curakt=="AKNRes") && (nextakt.substring(0,9)=="KTVilkVis")){
       sletcur1=false;
       sletcur2=false;
    }
    if(curobj=="Overblik"){
       sletcur1=true;
       sletcur2=false;
       if (nextakt=="PMVis")
          sletcur1=false
    }
    if(nextakt=="OBDybden"){
       sletcur1=false
       sletcur2=true;
    }
    if(nextakt=="VPFACTS"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="VPFACTS" || curakt=="VPHKurs") && nextakt=="VPIXUdv"){
       sletcur1=true;
       sletcur2=true;
    }
    if(nextakt=="SRList"){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="SRList") && ((nextakt!="SRList") && (nextakt!="NYVis"))){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(nextakt=="EBSignon"){
       sletcur2=true;
       sletcur3=true;
    }
    //FOKUS
    if(curakt=="BEHist")
       if(nextakt=="RENyS"){
          sletcur1=true;
          sletcur2=true;
       }
    if(curakt=="RENyS")
       if(nextakt=="BEHistInit"){
          sletcur1=true;
          sletcur2=true;
       }
    if((nextakt=="MOSog") || (curakt=="MOSog")){
       sletcur1=false;
       sletcur2=false;
    }
    if((curakt=="BEHist")){
       if (nextakt=="KBDetVis")
          sletcur1=false;
    }
    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="RERetS") || (nextakt=="REKopS") || (nextakt=="KORetS") || (nextakt=="KOKopS") ||(nextakt=="OIRetS") || (nextakt=="OIKopS") || (nextakt=="PGRet") || (nextakt=="PGKop") || (nextakt=="OFRet") || (nextakt=="OFKop") || (nextakt=="LORet") || (nextakt=="LOKop") || (nextakt=="OLRet") || (nextakt=="OLKop")){
          sletcur1=false;
          sletcur4=true;
       }
    }

    if((curakt=="KBDetVis") || curakt=="KBDsleVal" || curakt=="KBDsleAccK" || curakt=="KBDsleAccR" || curakt=="KBDsleAccO" || curakt=="KBDsleAccG" || curakt.substring(0,9)=="KBDsleUdb"){
       if((nextakt=="PARetS") || (nextakt=="PAKopS") ||(nextakt=="DDRetS")){
          sletcur1=false;
       }
    }

    if(curakt=="KBDetVis" || curakt.substring(0,2)=="UB"){
       if (nextakt=="EGVisFakt" || nextakt=="EGRet")
           sletcur1=false;
    }
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="UBList")
       sletcur1=false
    if(curobj=="Post" && curakt=="FSRList" && nextobj=="Betaling" && nextakt.substring(0,6)=="OTList")
       sletcur1=false
    if(curobj=="Forside" && nextobj=="Post")
       sletcur1=false
    if((curobj=="DanicaLink" || curobj=="DanicaNyPr") && nextobj=="Værdipapir" && nextakt=="VDPapir")
       sletcur1=false
    if((curobj=="DanicaLink" && (curakt=="DLDIList" || curakt=="DLKBList")) && (nextobj=="DanicaLink" && nextakt=="DLDIList"))
       sletcur1=true
    if((curobj=="DanicaNyPr" && (curakt=="DLKBList2" || curakt=="DLDBList3" || curakt=="DLKBDetVis")) && (nextobj=="DanicaNyPr" && nextakt=="DLDIList2"))
       sletcur1=true
    if((curobj!="Privat") && (nextobj=="Privat") && (f.gsProdukt.value=="DNB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curobj=="Privat"){
       //De steder hvor curItem3 bliver sat til en specifik fond, skal curItem3 have fondid.
       //inden man fortsætter til transaktioner.
       if((curakt.substring(0,7)=="DLSProf") || (curakt.substring(0,7)=="DLSCPro") || (curakt.substring(0,7)=="DLSHand") || (curakt=="DLSForsik") && (nextakt.substring(0,7)=="DLSTran")){
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
       }
    }
    if((curobj=="Depot" || curobj=="Værdipapir") && (nextakt=="AGOpretI"))
       sletcur2=false
    if((curobj=="Værdipapir") && ((nextakt.substring(0,2)=="DA") ||(nextakt.substring(0,2)=="DI")) && (nextakt!="DIList")){
       sletcur2=false
       sletcur1=false;
    }
    if((curobj=="Værdipapir" && curakt=="VPHKurs") && (nextobj=="Depot" && nextakt=="DAPGTList"))
       sletcur1=true
    if(curakt.substring(0,6)=="UBList" || curakt.substring(0,5)=="UBGod" || curakt.substring(0,6)=="UBSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="KORetS") || (nextakt=="RERetS")|| (nextakt=="OIRetS") || (nextakt=="PGRet") || (nextakt=="OFRet") || (nextakt=="LORet"))
          sletcur1=false;
       if((nextakt=="RERetS"))
          sletcur1=false;
    }
    if(curakt.substring(0,6)=="OTList" || curakt.substring(0,5)=="OTGod" || curakt.substring(0,6)=="OTSlet"){
       if((nextakt=="KBDetVis") || (nextakt=="PARetS") || (nextakt=="DDRetS"))
          sletcur1=false;
    }
    if((nextakt=="SRList") ||(nextakt=="NYVis")){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=false;
       sletcur5=true;
    }
    if((curakt=="HEIKList")){
       if(nextakt=="BAList"){
          sletcur1=true;
          sletcur2=true;
          sletcur3=true;
          sletcur4=true;
          sletcur5=true;
       }
    }
    if(curakt=="RERetUdb" || curakt=="KORetUdb" || curakt=="OIRetUdb" || curakt=="PARetUdb" || curakt=="OVRetUdb" || curakt=="IKRetUdb" || curakt=="PGRetUdb" || curakt=="OFRetUdb" || curakt=="LORetUdb"){
       if(nextakt=="KBDetVis")
          sletcur1=false;
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) || ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) || ((curakt=="DLNForsik") && (nextakt=="DLNTrans"))){
       sletcur1=false;
       sletcur2=false;
       sletcur3=false;
       sletcur4=true;
       sletcur5=false;
       parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
    }
    if(((curakt.substring(0,9)=="DLNProfil") && (nextakt=="DLNTrans")) ||
        ((curakt.substring(0,9)=="DLNHandel") && (nextakt=="DLNTrans")) ||
        ((curakt=="DLNForsik") && (nextakt=="DLNTrans")) ||
        ((curakt!="DLNProfil") && (nextakt=="DLNProfil"))
       )
       {if(f.gsProdukt.value=="DNB"){   
          sletcur1=false;
          sletcur2=false;
          sletcur3=false;
          sletcur4=true;
          sletcur5=false;
          parent.indhold.document.Form1.gsCurItem3.value=" 0" parent.indhold.document.Form1.gsCurItem3.value.substring(10,30);
          }
       }
    if((curobj!="DLINKNorge") && (nextobj=="DLINKNorge") && (f.gsProdukt.value=="DNB" || f.gsProdukt.value=="INB")){
       sletcur1=true;
       sletcur2=true;
       sletcur3=true;
       sletcur4=true;
       sletcur5=true;
    }
    if(curakt=="KTRubUFor" && nextakt=="INVis"){
       sletcur1=false;
    }
    if(curakt=="BSBrevS" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="eDKOvs" && nextakt=="KBList"){
       sletcur1=false;
    }
    if(curakt=="VDDybdS"){
       sletcur1=true;
    }
    if(nextakt=="DNBForside" || nextakt=="DNBForsid2" || nextakt=="NBForside" || nextakt=="NBForside2" || nextakt=="NIBForside" || nextakt=="NIBForsid2" || nextakt=="SAMForside" || nextakt=="SAMForsid2"){
       nrubrikNotesIDer=new Array('DefaultNetbank1','DefaultNetbank2','DefaultNetbank3','DefaultNetbank4','DefaultNetbank5');
    //   trubrikNotesIDer=new Array('TipsNetbank1','TipsNetbank2','TipsNetbank3','TipsNetbank4','TipsNetbank5');
       if(top.indhold && top.indhold.document && top.indhold.document.Form1 && top.indhold.document.Form1.gsSession) f = top.indhold.document.Form1;
       else f = top.postframe.document.Form1;

       var chalresp2=getChallenge(chalresp);

       f.action = top.postaction;
    //   f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))] "&trubrikNDID=" trubrikNotesIDer[Math.round(Math.random() * (trubrikNotesIDer.length-1))];
       f.action = "?nrubrikNDID=" nrubrikNotesIDer[Math.round(Math.random() * (nrubrikNotesIDer.length-1))];
       f.action = "&gsAftlnr=" f.gsAftlnr.value;
       f.action = "&gsSession=" f.gsSession.value;
       f.action = "&gsSprog=" f.gsSprog.value;
       f.action = "&gsProdukt=DNB";
       f.action = "&gsNextObj=Forside";
       f.action = "&gsNextAkt=" nextakt;
       f.action = "&gsChalResp=" encodeURIComponent(chalresp2);
    }} //function setSletcurs END

    function setSletcursPF(){
       sletcur1=true;
       sletcur2=true;
    }

    function findobject(id){
    var sstr=id.substring(0,2);
    nextakt=id;
    if((id=="VPHKursAdA") || (id=="VPHKursAdO") || (id=="VPHKursAdI"))
       selectedStocks=null;
    if((sstr=="KT") || (sstr=="KB") || (sstr=="LN") || (sstr=="LB"))
       nextobj="Konto";
    if((sstr=="OV") || (sstr=="IK") || (sstr=="CH") || (sstr=="GI") || (sstr=="BE") || (sstr=="UB") || (sstr=="OT") || (id=="EIKIKNy") || (nextakt=="EIKIKNyVal")||(sstr=="Ud") )
       nextobj="Betaling";
    if((sstr=="KO") || (sstr=="RE")) //FOKUS
       nextobj="BetalingNO";
    if(sstr=="OL") //Luxembourg
       nextobj="BetalingLU";
    if((sstr=="BG") || (sstr=="PG") ||(sstr=="OF") ||(sstr=="LO")) //hembanken
       nextobj="BetalingSE";
    if((sstr=="OI")) //Irland
       nextobj="BetalingIR";
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARetNy") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    if((id=="OVMoGem") || (id=="OVMoGemAcc") || (id=="IKMoGem") || (id=="IKMoGemAcc"))
       nextobj="Modtager";
    if(sstr=="MO")
       nextobj="Modtager";
    if(sstr=="VA")
       nextobj="Valuta";
    if(sstr=="DL")
       nextobj="DanicaLink";
    if(id=="DLSForsik")
       nextobj="Privat";
    if((id=="DLDBInit1") || (id=="DLDBList3") || (id=="DLDEList3") || (id=="DLDIList2") || (id=="DLKBList2") || (id=="DLRetNv2") || (id=="DLRetN2Acc") || (curobj=="DanicaNyPr" && id=="DLKBDetVis"))
       nextobj="DanicaNyPr";
    if(sstr=="BV")
       nextobj="Bestilling";
    if(sstr=="AN"){
       nextobj="FNanalyse";
       if(nextakt.substring(0,7)=="ANAnaly")
          lastFN=nextakt;
    }
    if(sstr=="FN"){
       nextobj="FNanalyse";
       if(nextakt=="FNOpretA")
          nextakt=lastFN;
       if(nextakt=="FNGrundAcc")
          nextakt="FNGrndAcc" lastFN.substring(7,8); //A, B eller C
    }
    if(sstr=="SR")
       nextobj="Nyheder";
    if(sstr=="KB"){
       if(id=="KBDetVisM")
          parent.indhold.VisDetaljerM();
    }
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem5.value=="AVG")
          nextakt="AGRet";
    }
    if(sstr=="KT"){
       if(id=="KTEksport")
          parent.indhold.Eksporter();
       if(id=="KTGemKopi")
          parent.indhold.GemKopi();
       if(id=="KTHentKopi")
          parent.indhold.HentKopi();
    }
    if(sstr=="VP"){
       var theForm;
       if(postframeactive || hostpagegone)
          theForm=parent.postframe.document.Form1
       else
          theForm=parent.indhold.document.Form1

       nextobj="Værdipapir";
       if(id=="VPDetalj" && (theForm.gsProdukt.value=="INB" || theForm.gsProdukt.value=="OEF")){
          nextakt="VPFACTS"
          theForm.gsCurItem.value=theForm.gsCurItem2.value;
       }
       if(id=="VPListA"){
          theForm.gsCurItem.value="AKT";
          nextakt="VPList";
       }
       if(id=="VPListO"){
          theForm.gsCurItem.value="OBL";
          nextakt="VPList";
       }
       if(id=="VPListUA"){
          theForm.gsCurItem.value="UAK";
          nextakt="VPList";
       }
       if(id=="VPListINV"){
          theForm.gsCurItem.value="INV";
          nextakt="VPList";
       }
       if(id=="VPSogListeA"){
          theForm.gsNextUObj.value="aktie";
          nextakt="VPSogListe";
       }
       if(id=="VPSogListeO"){
          theForm.gsNextUObj.value="oblig";
          nextakt="VPSogListe";
       }
       if(id=="VPHKursNEW"){
          deleteAllCurves();
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPHKurs";
       }
       if(id=="VPFONy"){
          parent.indhold.Udvaelg();
          nextakt="FONy";
          nextobj="Fondsordre";
       }
       if(id=="VPVPDetalj"){
          parent.indhold.Udvaelg();
          nextakt="VPDetalj";
       }
       if(id=="VPKursLstB"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstS"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPKursLstO"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst";
       }
       if(id=="VPAktierGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000001";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(id=="VPObligationerGenveje"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem.value="S2000-01-01-00.00.00.000002";
          theForm.gsCurItem2.value="popup";
          nextakt="VPKursLst";
       }
       if(nextakt=="VPSRListR"){
          nextakt="SRList";
          nextobj="Nyheder"
          theForm.gsCurItem.value="REUTER";
       }
       if(id=="VPKursLs2B"){
          theForm.gsNextUObj.value="Boers";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2S"){
          theForm.gsNextUObj.value="Straks";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
       if(id=="VPKursLs2O"){
          theForm.gsNextUObj.value="Off";
          theForm.gsCurItem2.value="";
          theForm.gsCurItem.value="";
          nextakt="VPKursLst2";
       }
    }
    if((sstr=="Sa") || (sstr=="Ea"))
       nextobj="eAbonment";
    if((sstr=="DB") || (sstr=="DE") || (sstr=="DI") || (sstr=="DF") || (sstr=="DP") || (sstr=="DA"))
       nextobj="Depot";
    if((sstr=="FO") || (id=="DBSletVal") || (id=="DBSletAcc"))
       nextobj="Fondsordre";
    if((sstr=="MC") || (sstr=="LA") || (sstr=="MA") || (sstr=="AL") || (sstr=="AK") || (sstr=="AM")) //CEN
       nextobj="Ansøgning";
    if((sstr=="PM") || (sstr=="PA") || (sstr=="PO") || (sstr=="PS"))
       nextobj="Post";
    if((sstr=="AF") || (sstr=="IN"))
       nextobj="Netaftale";
    if((sstr=="KP")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if((sstr=="MD")) //CEN skal væk når indstillinger er i nyt vindue
       nextobj="Kontrpanel";
    if(sstr=="OK")
       if (id=="OKSoeg")
          parent.indhold.Ok();
    if(sstr=="Lo")
       nextobj="Netaftale";
    if((sstr=="RL") || (sstr=="KS") || (sstr=="RD") || (sstr=="DN") || (sstr=="RT") || (sstr=="R4"))
       nextobj="Realkredit";
    if(sstr=="RB")
       nextobj="RKBeregn";
    if(sstr=="MB")
       nextobj="MBAftale";
    if(id.substring(0,3)=="MBK")
       nextobj="MBKoder";
    if(sstr=="PR")
       nextobj="Profil";
    if((sstr=="BS") || (sstr=="BA") || (sstr=="FK") || (sstr=="FU")|| (nextakt=="EIKNy") || (nextakt=="EIKList") || (nextakt=="EIKListST") || (nextakt=="HEIKList"))
       nextobj="BetAftaler";
    if((sstr=="NH") || (sstr=="NS")|| (sstr=="NA") || (sstr=="NY"))
       nextobj="Nyheder";
    if(nextakt=="AKTest")
       nextobj="AKTester";
    if(sstr=="EB")
       nextobj="e-Boks";
    if(sstr=="OB")
       nextobj="Overblik";
    if(sstr=="AG")
       nextobj="Agenter";
    if(sstr=="NE")
       nextobj="SingleSign";
    if(sstr=="SA")
       nextobj="Selvadm";
    if(sstr=="ES")
       nextobj="eSafeKey";
    if(nextakt=="FOSSLsBehS")
       nextobj="Insider";
    if(nextakt=="FOSSLSFS")
       nextobj="Insider";
    if(sstr=="BU" ||
    id=="RegnArkNy" ||
    id=="RgnArkGra" ||
    id=="RgnArkINy" ||
    id=="RgnArkIRet" ||
    id=="RgnArkIUNA" ||
    id=="RgnArkIUNG" ||
    id=="RgnArkIURA" ||
    id=="RgnArkIURG" ||
    id=="RgnOver" ||
    id=="RgnOverslt" ||
    id=="RgnOverF" ||
    id=="RgnOverFS" ||
    id=="RSKatBvAcc" ||
    id=="RSKatBvNy" ||
    id=="RSKatBvNyK" ||
    id=="RSKatBvNyP" ||
    id=="RSKatBvNyR" ||
    id=="RSKatBvRet" ||
    id=="RSKatBvSlB")
    nextobj="Budget";
    //FINLAND
    if((id.substring(0,4)=="PANy") ||(id.substring(0,5)=="PARet") ||(id.substring(0,5)=="PAKop") || (sstr=="DD")) //Finland
       nextobj="BetalingFI";   
    //FOKUS
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc")
       nextobj="BetAftaler";
    if(id=="AGStatVal" || id=="AGStatAcc")
       nextobj="Konto";
    if((sstr=="KO") || (sstr=="RE") || (id=="BEHist") || (id=="BEHistInit"))
       nextobj="BetalingNO";
    if(id=="BADetVis")
       nextobj="BetAftaler";
    if(id=="BASleDVal")
       nextobj="BetAftaler";
    if(id=="AGRet" || id=="AGRetVal" || id=="AGRetAcc" )
       nextobj="BetAftaler";
    if(sstr=="eF")
       nextobj="BetalingNO";
    if(sstr=="EG" || sstr=="GT")
       nextobj="BetalingSE";
    if(id=="eFListEgne" || id=="eFListAlle" || id=="eFKobNy" || id=="eFKobNyAcc" || id=="eFKobSlet" || id=="eFKobSlAcc" || id=="eFKobVis" || id=="eFUsrEmail")
       nextobj="Kontrpanel";
    if(id=="POStart")
       nextobj="PensOvs";
    if(id=="FOKForside" || id=="DNBForside" || id=="OEBForside" || id=="LUXForside" || id=="NFUForside" || id=="NIBForside" || id=="NBForside" || id=="SAMForside" ||
    id=="FOKForsid2" || id=="DNBForsid2" || id=="OEBForsid2" || id=="LUXForsid2" || id=="NFUForsid2" || id=="NIBForsid2" || id=="NBForsid2" || id=="SAMForsid2")
       nextobj="Forside";
    if(id=="Netbank021")
       nextobj="Skabeloner";
    if(id=="PreLogoff")
       nextobj="Netaftale";
    if(id=="ACLogon")
       nextobj="ACLogon";
    if(id=="FKRetL"){
       if(parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="4" || parent.indhold.document.Form1.gsCurItem2.value.substr(0,1)=="F"){
          nextakt="AGRet";
          nextobj="BetAftaler";
       }
    }
    if(id=="DPNy" || id=="DPNyVal" || id=="FOList" || id=="FOVisa" || id=="FOVisa2" || id=="MSAndra" || id=="MSAndraVal" || id=="MSGodk" || id=="MSList" || id=="MSNy" || id=="MSNyVal")
       nextobj="FondSE";
    if(id=="ekhent")
       nextobj="DLINKNorge";
    }

    if(top.brand == "FOK") {
       document.write("");
    }

    vai olenko oikeassa?

    Äänestä

  • aloitteleva koodari kirjoitti:

    vai olenko oikeassa?

    JavaScrptiähän se on jos tarkkoja ollaan. Kumpikin näyttää samalta, mutta Java käännetään etukäteen ns tavukoodiksi ja JavaScript tulkataan selaimessa.

    Äänestä

  • kernelpanic00 kirjoitti:

    Ehkä sun on paras pysyä siellä asmin puolella kun tietämys nykyisistä korkeamman tason tekniikoista ei näytä kovin kaksinen olevan ;) Onnea vaan Java EE -sovelluksen tekoon jos se niin helppoa on (Javascript ja appletit eivät Java EE:hen kuulu). Olisi muuten hyväpalkkaisia töitä tarjolla sellaisille, jotka tuosta vaan väkertävät Java EE -pankkisovelluksen... Niin ja Javascript != Java.

    Siitä olen samaa mieltä, että tuo koodipurkka on jotain täysin käsittämätöntä. Saisi sen koodinpätkän tekijä vaihtaa alaa tai siirtyä vaikka projektipäälliköksi kun koodaus ei selvästikään ole se oma laji :D

    Olen kuullut jonkun joskus sanovan että "epäonnistuneesta" koodaajasta tulee projektipäällikkö. :)

    So true, so true...

    Yhtä kaikki, samaa mieltä siitä että Sampopankin JavaScript koodinpätkä oli kyllä aikamoista kuraa. Tosin on todennäköisesti serverin puolella generoitua, mutta ei sekään kyllä ole peruste noin surkeasti kirjoitetulle koodille. Hirveetä paskaa...

    Äänestä

Homma kusi sen takia, että täysin toimiva verkkopankki pistettiin roskiin ja otettiin käyttöön Dansken oma "one platform" joka on niillä muuallakin käytössä.

Ihmettelen uutista jossa Tanska on maailman toiseksi edistyksellisin IT-maa, kun siellä tehdään tällaista paskaa.

Enatorin ja muiden mukana olleiden vastuu verkkopankista ja järjestelmistä loppui pääsiäisenä, kun kaikki data siirrettiin Tanskaan.

Äänestä

Ilmeisesti yhtäaikaisten asiakkaiden määrä laskee siihen mennessä riittävän alas eikä systeemi enää ylikuormitu.

Äänestä
  • asiakas..

    Maajussipankki kun ei helepolla lähe hötkyilemään..

    Äänestä

  • ei yhtäaikaisten vaan ihan asiakkaiden määrä muutenki laskee... josko se sit helpottais haha =)

    Äänestä

Halpuudesta tiedä, 200 miljoonaa euroa oli kuulemma migraatioprojektin budjetti

Mikä taitaakin tehdä siitä erään Pohjoismaiden kalleimmista softaprojekteista ever.

Kaikkein kalleinta softaprojektia en tiedä mutta mulla on semmoinen tuntuma että se olis JAS Gripen lentokoneen ohjelmistot. Testaus on yleensä softaprojektin kallein osa ja Jassin testaus oli tavanomaistakin vaativampaa kuten arvata saattaa.

Äänestä

Kommentoi aloitusta


Pankin ja kirjoitti:

tanskalaisten hynttyiden yhdistämisessä??

Oisko ollu liian halpa tarjous työn suorittamiseen...?

Anonyymi
5000

Ilmoita asiaton sisältö

  • Sisältää materiaalia, joka on loukkaavaa, herjaavaa, rasistista, uhkailevaa tai ahdistelevaa.

  • Materiaali sisältää nimiä, yhteystietoja tai muita henkilökohtaisia tietoja. Julkisuuden henkilöistä, julkisissa viroissa toimivista ihmisistä sekä yritysten vastuuhenkilöistä saa keskustella työhön liittyen. Myös yksityiselämään liittyvistä asioista voi keskustella siltä osin, kuin niistä on julkisesti kerrottu.

  • Sisältää lapsille haitallista tai heiltä kiellettyä materiaalia. Seksuaalinen sisältö on sallittua aiheeseen tarkoitetuilla palstoilla, joiden ikäraja on 18 vuotta.

  • Lainvastaista sisältöä voi olla mm. yksityiselämää loukkaavan tiedon levitys, kiihottaminen kansanryhmää vastaan, laiton uhkaaminen, alaikäisiin liittyvä seksuaalinen sisältö/grooming, petokset, identiteettivarkaudet, kunnianloukkaukset ja tekijänoikeusrikkomukset.

  • Sisältö ei liity palstan tai keskusteluketjun aiheeseen.

  • Viesti ei ole suomea tai ruotsia (pl. International Forums), se sisältää mainontaa, se sisältää tekijänoikeuksin suojattua materiaalia, se on massapostitus tai jokin muu syy.

Jaa keskustelu