function webshops_url(url) { 
bo = document.getElementsByTagName('body');
bo[0].style.filter = 'Alpha(opacity="60")';
bo[0].style.MozOpacity = '0.3';
bo[0].style.opacity = '0.3';

	if (confirm('Digitalemarkt kan niet garanderen dat de informatie op haar website op elk moment actueel is. Alle aangeboden gegevens, tarieven en informatie geplaatst op onze website zijn onder voorbehoud. Alle bezoekers dienen de informatie verkregen op onze website te controleren met deze op de website van de webshop alvorens tot een aankoop over te gaan. Help ons de informatie up to date te houden!'))
	{
	window.location.href = url;
	}
	else
	{
    	location.reload(true);
	}

 }

var state = 'none'; 

function showhide(layer_ref) { 

if (state == 'block') { 
state = 'none'; 
} 
else { 
state = 'block'; 
} 
if (document.all) {
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) {
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
} 

//muis effecten

    var oldRow;
    var oldRowClassName;

    function onMouseOver(tr, evenRow) {
            oldRowClassName = tr.className;
            oldRow = tr;
            if(evenRow) {
            	tr.className = "mouseOverEvenRow";
            } else {
            	tr.className = "mouseOverOddRow";
            }

    }

    function onMouseOut(tr) {
            if(oldRow != null) {
                oldRow.className = oldRowClassName;
                oldRow = null;
            }
    }

    function onClick(tr, evenRow) {
     oldRowClassName = tr.className;
           if(evenRow) {
            	if(oldRowClassName == "evenRow") {
					tr.className = "markedEvenRow";
					oldRow = tr;
					oldRowClassName = tr.className;
                } else {
					tr.className = "evenRow";
					oldRow = tr;
					oldRowClassName = tr.className;
                }
            } else {
            	if(oldRowClassName == "oddRow") {
					tr.className = "markedOddRow";
					oldRow = tr;
					oldRowClassName = tr.className;
                } else {
					tr.className = "oddRow";
					oldRow = tr;
					oldRowClassName = tr.className;
                }
            }

    }


// functies voor titel..
function Smilieinvoegen(Smilie)
{
    document.form1.comment.value += Smilie+" ";
    document.form1.comment.focus();
}


function OpmaakinvoegenTopic(Opmaak)
{
    document.nieuwtopic.bericht.value += Opmaak+" ";
    document.nieuwtopic.bericht.focus();
}

function OpmaakinvoegenNieuws(Opmaak)
{
    document.form1.comment.value += Opmaak+" ";
    document.form1.comment.focus();
}


// functie voor smilies
function opmaakinvoegen(Command)
{
    document.edit.titel.value += Command;
    document.edit.titel.focus();
}

// functie voor smilies
function opmaaktextarea(Command)
{
    document.edit.bericht.value += Command;
    document.edit.bericht.focus();
}

// datum en jaar voor copyright
var today = new Date();
var y0 = today.getFullYear();

// controle form
function emailvalidation(entered, alertbox){

with (entered){
apos=value.indexOf("@"); 
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) {if (alertbox) {alert(alertbox);}return false;}
else {return true;}
}
} 

function wachtwoordvalidation(entered, min, max, alertbox){
with (entered){
if ((value.length<min) || (value.length>max))
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
} 

//lettergrootte
function setCookie(name, value, expires, path, domain, secure)
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

function getCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

function InitFont() {
	if(getCookie('Fontsize')){
	document.getElementById("myBody").style.fontSize = getCookie('Fontsize');
	}else{
	document.getElementById("myBody").style.fontSize = '8pt';
		var thisDate = new Date();
		thisDate.setYear(2040);
		thisDate.setMonth(0);
		thisDate.setDate(1);
	
		setCookie('Fontsize','8pt',thisDate,'/','.digitalemarkt.be');
	}
}
function smaller() {
		var thisDate = new Date();
		thisDate.setYear(2040);
		thisDate.setMonth(0);
		thisDate.setDate(1);
	
		setCookie('Fontsize','8pt',thisDate,'/','.digitalemarkt.be');
	document.getElementById("myBody").style.fontSize = '8pt';
}
function larger() {
		var thisDate = new Date();
		thisDate.setYear(2040);
		thisDate.setMonth(0);
		thisDate.setDate(1);
	
		setCookie('Fontsize','10pt',thisDate,'/','.digitalemarkt.be');
	document.getElementById("myBody").style.fontSize = '10pt';
}

//submenu
function toonmenu(item,view, src)
{
men=document.getElementById(item);

if(view==1)
{
men.style.display='';
if(src) src.style.background=none;
}
else
{
men.style.display='none';
if(src) src.style.background=none;
}
}

// breek uit frame
if (window!= top) {
top.location.href=location.href 
}

// top pagina
function naarboven() {
	window.scrollTo(0,0);
}

// afdrukken op printvriendelijke pagina
var AutoPrint = true;
function PrintPagina(){
if (document.getElementById != null){
var html = '<HTML>\n<HEAD>\n<style type="text/css">body {	font-family:tahoma;font-size:10px;color:#5f5f5f;} TABLE,tr,td {font-family:tahoma;font-size:10px;color:#5f5f5f; }</style>\n';
if (document.getElementsByTagName != null){
var headTags = document.getElementsByTagName("head");
if (headTags.length < 0)
html += headTags[0].innerHTML;}
html += '\n</HE' + 'AD>\n<BODY>\n';
var PrintKlaarElem = document.getElementById("PrintKlaar");
if (PrintKlaarElem != null){
html += PrintKlaarElem.innerHTML;}
html += '\n</BO' + 'DY>\n</HT' + 'ML>';
var printWin = window.open("","PrintPagina");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (AutoPrint)printWin.print();}}

// toevoegen tot favorieten
var url="http://www.digitalemarkt.be";
var title="Digitalemarkt.be";
function favorieten(){
if(document.all)
window.external.AddFavorite(url,title)
}

// blokkeren van Errors
function blockError(){return true;}

window.onerror = blockError;
