function writeBeginEdgeBorder(breedte, bckcol, forecol){

d('<div style="width: '+breedte+'"><b style="font-size:1px;display:block; overflow:hidden;">');
d('<b style="background:'+forecol+'; color: inherit; display:block; overflow:hidden;height:1px;margin:0 5px;"></b>');
d('<b style="background:'+bckcol+'; border-color: '+forecol+'; color: inherit; display:block; overflow:hidden;height:1px;border-style: solid; border-width: 0 1px;margin:0 3px; border-width:0 2px;"></b>');
d('<b style="background:'+bckcol+';border-color: '+forecol+'; color: inherit; display:block; overflow:hidden;height:1px;border-style: solid; border-width: 0 1px;margin:0 2px;"></b>');
d('<b style="background:'+bckcol+';border-color: '+forecol+'; color: inherit; display:block; overflow:hidden;border-style: solid; border-width: 0 1px;height:2px; margin:0 1px;"></b></b>');
d('<div style="background:'+bckcol+'; border-color: '+forecol+'; color: inherit; display:block; border-style: solid ; border-width: 0 1px;">');
d('<b style="font-size:1px;display:block; overflow:hidden;height:1px;"> </b><p>');
}

function writeEndEdgeBorder(breedte, bckcol, forecol){

d('</p><b style="font-size:1px;display:block; overflow:hidden;height:1px;"></b></div>');
d('<b style="font-size:1px;display:block; overflow:hidden;">');
d('<b style="background:'+bckcol+';border-color: '+forecol+'; color: inherit; display:block; overflow:hidden;border-style: solid; border-width: 0 1px;height:2px; margin:0 1px;"></b>');
d('<b style="background:'+bckcol+';border-color: '+forecol+'; color: inherit; display:block; overflow:hidden;height:1px;border-style: solid; border-width: 0 1px;margin:0 2px;"></b>');
d('<b style="background:'+bckcol+';border-color: '+forecol+'; color: inherit; display:block; overflow:hidden;height:1px;border-style: solid; border-width: 0 1px;margin:0 3px; border-width:0 2px;"></b>');
d('<b style="background:'+forecol+'; color: inherit; display:block; overflow:hidden;height:1px;margin:0 5px;"></b></b></div>');
}

function writeBeginBorder(breedte,color){

d('<div style="width:' + breedte + ';">');
d('<b style="overflow:hidden; font-size:1px; display:block;height:1px; margin:0 5px; background:#fff; color: inherit;"></b>');
d('<b style="background:'+color+'; color: inherit; overflow:hidden; font-size:1px; display:block;height:1px; border-style: solid; border-width: 0 1px; border-left-color: #fff; border-right:1px solid #eee; margin:0 3px; border-width:0 2px;"></b>');
d('<b style="background: '+color+'; color: inherit; overflow:hidden; font-size:1px; display:block;height:1px;border-style: solid; border-width: 0 1px;border-left-color: #fff;border-right:1px solid #ddd;margin:0 2px;"></b>');
d('<b style="background: '+color+'; color: inherit; overflow:hidden; font-size:1px; display:block;border-style: solid; border-width: 0 1px; border-left-color: #fff; border-right:1px solid #aaa;margin:0 1px; height:2px;"></b>');
d('<div style="background: '+color+'; color: inherit; padding: 0 4px; display:block;border-style: solid; border-width: 0 1px;border-left-color: #fff;border-right-color: #999;">');
d('<b style="height:1px; display:block; font-size:1px;"></b>');
}

function writeEndBorder(breedte,color){

  d('<b style="height:1px; display:block; font-size:1px;"></b></div>');
  d('<b style="background: '+color+'; color: inherit; overflow:hidden; font-size:1px; display:block;border-style: solid; border-width: 0 1px;border-right-color: #999;border-left:1px solid #eee; margin:0 1px; height:2px;"></b>');
  d('<b style="background: '+color+'; color: inherit; overflow:hidden; font-size:1px; display:block;height:1px;border-style: solid; border-width: 0 1px;border-right-color: #999;border-left:1px solid #ddd; margin:0 2px;"></b>');
  d('<b style="background: '+color+'; color: inherit; overflow:hidden; font-size:1px; display:block;height:1px;border-style: solid; border-width: 0 1px;border-right-color: #999;border-left:1px solid #aaa;margin:0 3px; border-width:0 2px;"></b>');
  d('<b style="overflow:hidden; font-size:1px; display:block;height:1px;margin:0 5px; background:#999; color: inherit;"></b></div>');

}

function writeEndListing(path){

	d('</td><td class="listing" align="left" valign="bottom" STYLE="background-image: url(' + path + 'images/elementen/lijn-r.gif); background-repeat: repeat;"></td></tr><tr valign="bottom"><td colspan="2"></td><td class="listing" colspan="5" align="right" valign="top" STYLE="background-image: url(' + path + 'images/elementen/lijn-o.gif); background-repeat: repeat;background-position: 60px 20px;"></td><td class="listing" align="left" valign="top"><img src="' + path + 'images/elementen/lijn-ro.gif" width="10" height="10"></td></tr>');

}

function d(str){
	document.writeln(str);
}
