function VisaInfoStor(imageSrc,Benamn) { 
//imageTitle = 'Auto "sizing" och stängning(30 sek)';
imageTitle = Benamn;
fileName = 'template.htm?' + escape(imageSrc) + '&' + escape(imageTitle);
WindowHandle=window.open(fileName,'windowName','directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes,width=300,height=300,left=20,top=50');}



function VisaInfoStorText(TextSrc,Benamn) { 
TextTitle = Benamn;
fileName2 = 'template2.htm?' + escape(TextSrc) + '&' + escape(TextTitle);
WindowHandle2=window.open(fileName2,'windowName2','directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes,width=300,height=300,left=20,top=50');}


function VisaInfoStorPdf(Html){fwin3pdf=window.open(Html,"fwin3pdf","toolbar=no,scrollbars=yes,resizable=yes,width=700,height=450,left=200, top=110");}






function VisaInfoStor5(Html){newWin7=window.open(Html,"CCNWin7","toolbar=no,scrollbars=yes,resizable=yes,width=450,height=400,left=150, top=60"); }
function VisaInfoStorx5(Html){newWinx7=window.open(Html,"CCNWinx7","toolbar=no,scrollbars=yes,resizable=yes,width=450,height=400,left=180, top=70"); }
function VisaInfoStorL(Html){newWinL=window.open(Html,"CCNWinL","toolbar=no,scrollbars=yes,resizable=yes,width=850,height=150,left=150, top=60"); }

function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    var yellow = 'yellow'; 
    var white = 'white'; 
    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        if ((c==9)||(c==10)||(c==3)){;} else {
           if ((c==2)||(c==3)||(c==4)||(c==7)||(c==8)){
               if (c==4) {
                 theRow.cells[c].bgColor = white; 
               }else{ 
                 theRow.cells[c].bgColor = yellow;
               }
           }else{
             theRow.cells[c].bgColor = thePointerColor;
           }
        }
    }

    return true;
} // 'setPointer()' 

function setPointerOut(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    var white = '#FFFFFF'; 
    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        if ((c==9)||(c==10)||(c==3)){;} else {
             theRow.cells[c].bgColor = thePointerColor;
        }
    }

    return true;
} // 'setPointerOut()' 


function setPointer2(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    var white = '#FFFFFF';
    var yellow = 'yellow'; 
    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        if (c==9){;} else {
           if ((c==1)||(c==3)||(c==6)||(c==7)){
             theRow.cells[c].bgColor = yellow;} 
            else {
             theRow.cells[c].bgColor = thePointerColor;}
        }
    }

    return true;
} // 'setPointer()' 

function setPointerOut2(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    var white = '#FFFFFF';
    var yellow = 'yellow'; 
    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        if (c==9){;} else {
             if ((c==9)||(c==10)){
               theRow.cells[c].bgColor = yellow;} 
              else {
              theRow.cells[c].bgColor = thePointerColor;}
        }
    }

    return true;
} // 'setPointerOut()' 


function setPointerI(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    var yellow = 'yellow'; 
    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        if ((c==7)||(c==8)){;} else {
           if ((c==1)||(c==2)||(c==4)){
             theRow.cells[c].bgColor = yellow;} 
            else {
             theRow.cells[c].bgColor = thePointerColor;}
        }
    }

    return true;
} // 'setPointer()' 

function setPointerO(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    var white = '#FFFFFF'; 
    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        if ((c==7)||(c==8)){;} else {
             theRow.cells[c].bgColor = thePointerColor;
        }
    }

    return true;
} // 'setPointerOut()' 

function setvarart(ant,nam,anr) {
var ind=0;

//Ersätt ks


nam = nam.replace('†','å')
nam = nam.replace('„','ä');
nam = nam.replace('”','ö');
nam = nam.replace('¸','Å');
nam = nam.replace('ˇ','Ä');
nam = nam.replace('™','Ö');

if (self.opener.parent.document.nykundl.art1.value=='') {
 self.opener.parent.document.nykundl.ant1.value=ant;
 self.opener.parent.document.nykundl.namn1.value=nam;
 self.opener.parent.document.nykundl.art1.value=anr;ind=1;
 }else{ if (self.opener.parent.document.nykundl.art2.value=='') {
   self.opener.parent.document.nykundl.ant2.value=ant;
   self.opener.parent.document.nykundl.namn2.value=nam;
   self.opener.parent.document.nykundl.art2.value=anr;ind=2;
   }else{if (self.opener.parent.document.nykundl.art3.value=='') {
     self.opener.parent.document.nykundl.ant3.value=ant;
     self.opener.parent.document.nykundl.namn3.value=nam; 
     self.opener.parent.document.nykundl.art3.value=anr;ind=3;
   }
 }
}
if ((ind>=3)||(ind==0)) this.close();
}

