function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
  function InsSM()
   {
   var table = '<table'+document.all.Bgcolor.value+document.all.Dkcolor.value+document.all.Ltcolor.value+' border="' +document.all.border.value+ '"' + ' cellspacing="' +document.all.cellspacing.value+ '"' + ' cellpadding="' +document.all.cellpadding.value+ '"' + ' width="' +document.all.width.value + document.all.widthType.value+ '">\n';

  for (var x=0; x<document.all.rows.value; x++) {
    table += " <tr>\n";
    for (var y=0; y<document.all.cols.value; y++) {
      table += "  <td>&nbsp;</td>\n";
    }
    table += " </tr>\n";
  }
  table += "</table>\n";
    document.all.theCode.value=(table);
				document.write('<b><font size=2 color=#555555 face=Arial, Helvetica, sans-serif>Plak de code tussen de &lt;BODY> tags van je HTML document.</font></b><textarea name=theCode cols=50 rows=6>'+table+'</textarea><br><input type=button name=Button value=SelectCode onClick=document.all.theCode.select();document.all.theCode.focus()><br><br><br>');
				document.write('<b><font size=2 color=#555555 face=Arial, Helvetica, sans-serif>Table Preview:</font></b>'+table+'<p><input type=button name=button value=TERUG onClick=history.back()></p>');


}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function showColor(val) {
document.all.Ltcolor.value = ' bordercolorlight="'+val+'"';
document.all.B1.style.backgroundColor = val;
}
function show(val2) {
document.all.Bgcolor.value = ' bgcolor="'+val2+'"';
document.all.B3.style.backgroundColor = val2;
}
function showM(val3) {
document.all.Dkcolor.value = ' bordercolordark="'+val3+'"';
document.all.B2.style.backgroundColor = val3;
}

var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS) 
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
  if(EnableRightClick==1){ return true; }
  else {return false; }
}
function mousehandler(e){
  if(EnableRightClick==1){ return true; }
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
  var myevent = (isNS) ? e : window.event;
  if (myevent.keyCode==96)
    EnableRightClick = 1;
  return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;

