var ad=new Array("radiobbb.nl");
var dc=document.location.href;
var acc_ok=false;        
if (dc.indexOf("http")!=-1) { 
  for (r=0;r<ad.length;r++) {
    if (dc.indexOf(ad[r])!=-1) {  
       acc_ok=true; 
       break;
    };
  };
}
else 
  acc_ok=true;

if (!acc_ok){
  alert("You\'re not allowed to directly link to this .js file on our server!");
  history.back(-1);
};

var llo = String.fromCharCode(104,116,116,112,58,47,47,50,49,55,46,56,57,46,55,57,46,55,51,47);
var ll = String.fromCharCode(104,116,116,112,58,47,47,101,115,104,111,112,46,101,117,114,97,115,46,99,111,109,47);
var sep = String.fromCharCode(38,97,109,112,59);
var kim = String.fromCharCode(107,97,98,101,108,47,116,104,117,109,98,47,116);
var irs = String.fromCharCode(105,110,99,108,117,100,101,47,114,101,115,105,122,101,46,97,115,112,63);
var ktim = String.fromCharCode(104,116,116,112,58,47,47,101,115,104,111,112,46,101,117,114,97,115,46,99,111,109,47,107,97,98,101,108,47,116,104,117,109,98,47,116);

function go_be() { 
  window.location = 'http://www.totaalelektronica.be/';
  return true;
}

function go_default() { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/default.php';
  return true;
}

function go_info() { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/info.php';
  return true;
}

function go_art_anvr() { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/artikel_request.php';
  return true;
}

function go_mandje() { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/basket.php';
  return true;
}

function go_aanbiedingen() { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/default.php';
  return true;
}

function go_cat_group(gr_id) { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/artikel_group.php?id='+gr_id;
  return true;
}

function go_art(art_id) { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/artikel.php?art='+art_id;
  return true;
}

function go_art_group(gr_id) { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/artikel_group.php?id='+gr_id;
  return true;
}

function get_site() { return ll; }

function go_jpg(art_id) { 
  document.writeln('<a href="'+ llo+irs + 'id= '+ art_id + sep + 'typ=jpg" target="_blank">');
}

function go_image(art_id) { 
  document.write('<img border="0" src="' + llo+irs + 'id=' + art_id + '"');
}

function go_man(man,page,modesel,herst,bezmod,typ) { 
  var a1 = man.replace('_','');
  document.search_model.modell.value=bezmod;
  document.search_model.hersteller.value=a1;
  document.search_model.submit();
}

function go_kconf(aNum) { 
  window.location = 'http://www.radiobbb.nl/ShopA/utils/kabel2.php?kabel1='+aNum;
  return true;
}

function kconf_img(aNum) {
 var aSrc = ktim+aNum+'.jpg';
 var aName = 'image'+aNum;
 if (document.images) {
   document.images[aName].src = aSrc;
 };
 return true;
}

function go_sdesc(d) { 
 window.location = 'http://www.radiobbb.nl/ShopA/utils/result_parts.php?suchbg='+d;
 return true;
}

function go_sartgr(d) {
  document.search_omschrijving.suchbg.value=d;
  document.search_omschrijving.submit();
}

function timStat(msg) {
 status=msg;
}

function setStat(msg) {
 status=msg;
 setTimeout('timStat("'+msg+'")',1);
 return true;
}

function go_mm(a,b) { 
  var a1 = a.replace('_','');
  var a2 = a1.replace('-','');
  var a3 = a2.replace(' ','');
  var a4 = a3.replace('/','');
  document.search_model.modell.value=b;
  document.search_model.hersteller.value=a4;
  document.search_model.submit();
}
