var hiddenRows;

function feedback()
{
window.open("http://catalogue.icecat.biz/index.cgi?sessid=QVnLR1Mb3Ga2Pdol8mtbD7uEouAt8pWTYSYYPZJQRe4Q2TcB;menu=feedback;product_id=44716;prod_id=NB21BSAS;name=21IN SILVER 1600X1200 25MS;supp_name=Samsung;","feedback",'menubar=no,directories=no,location=no,resizable=auto,scrollbars=yes,width=630,height=550');
}

function reg_exp(id){
   var re1 = new RegExp("alle");
     var re2 = new RegExp("minder");
     var str = document.getElementById(id).innerText;
     var newstr=str.replace(re1,"minder")
     if(str==newstr){
       document.getElementById(id).innerText=str.replace(re2,"alle")
      }else{
      document.getElementById(id).innerText=newstr;
     }
}

function open_send_to_friend()
{
window.open("http://catalogue.icecat.biz/index.cgi?sessid=QVnLR1Mb3Ga2Pdol8mtbD7uEouAt8pWTYSYYPZJQRe4Q2TcB;mi=start;smi=product_send;product_id=44716","send",'menubar=no,directories=no,location=no,resizable=auto,scrollbars=auto,width=780,height=625');

}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}


function openimage (url,w,h) {
w += 50;
h += 50;
if(w > 800){ w = 800}
if(h > 600){ h = 600}
window.open(url,"image",'menubar=no,directories=no,location=no,resizable=auto,scrollbars=yes,width='+w+',height='+h);
}

function minitext (li){
 var nested = document.getElementById(li);
  if (nested.style.display=="none") {
    nested.style.display='';
 }else {
    nested.style.display="none"
 } 
}


function minimaxall (){
/*    if(toon.innerText=="Toon alle technische details>>"){
     toon.innerText="Toon minder technische details>>";
    }else{
     toon.innerText="Toon alle technische details>>";
   }
   minitext("445");minitext("99");minitext("1766");minitext("560");minitext("2244");minitext("249");minitext("340");minitext("14");minitext("762");;
   */

 }

function show_comments(){
  ;
}

function show_comment (c){
    if(document.getElementById(c).style.display==""){
     document.getElementById(c).style.display="none";
   }else{
      document.getElementById(c).style.display="";
  }
  if(comments.innerText=="Toon alle opmerkingen>>"){
     comments.innerText="Toon minder opmerkingen>>";
    }else{
     comments.innerText="Toon alle opmerkingen>>";
   }
}

function show_alter(id){
  ;
   reg_exp(id);
}

function show_alters (c){
   if(alternatives.innerText=="Toon alle alternatieven>>"){
     alternatives.innerText="Toon minder alternatieven>>";
    }else{
     alternatives.innerText="Toon alle alternatieven>>";
   }
   if(document.getElementById(c).style.display==""){
     document.getElementById(c).style.display="none";
   }else{
      document.getElementById(c).style.display="";
  }
}

function show_options (c){
   if(document.getElementById(c).style.display==""){
     document.getElementById(c).style.display="none";
   }else{
      document.getElementById(c).style.display="";
  }
}

function show_all_related(c){
  var e; 
  if(related.innerText=="Toon alle Opties>>"){
     related.innerText="Toon alleen top 3 Opties>>";
    }else{
     related.innerText="Toon alle Opties>>";
   }
    show_options(c);
   try{
       watch_table();
   }catch(e){ 
   } 
}

function watch_table(){
    td1.style.width=document.getElementById("th1").offsetWidth;
    td2.style.width=document.getElementById("th2").offsetWidth;
    td3.style.width=document.getElementById("th3").offsetWidth;
    td4.style.width=document.getElementById("th4").offsetWidth;
    td5.style.width=document.getElementById("th5").offsetWidth;
    th1.style.width=document.getElementById("td1").offsetWidth;
    th2.style.width=document.getElementById("td2").offsetWidth;
    th3.style.width=document.getElementById("td3").offsetWidth;
    th4.style.width=document.getElementById("td4").offsetWidth;
    th5.style.width=document.getElementById("td5").offsetWidth;
}


function swap_options (opt){
   if(opt.innerText=="Toon alle alternatieven>>>>"){
     opt.innerText="Toon minder alternatieven>>";
    }else{
     opt.innerText="Toon alle alternatieven>>";
   }
}




function changeTab(tab){
   var i;
   var t;
   for(i=1;i<6;i++){
      t="t"+i;
     var  tabls=document.getElementById(i);
     var tabs=document.getElementById(t);
     if(i==tab){
         tabls.style.display="";
         tabs.className="active";
     }else{
         tabls.style.display="none";
         tabs.className="";
     }
   }
 }
 
