function erstellen()
{
with (document.wme_js)
{

code.value = "";
code.value = "<style type=\"text/css\">\r";

if (fontfamilyl.value != "" || fontsizel.value != "" || fontweightl.value != "" || decorationl.value != "" || fontcolorl.value != "" || backgroundl.value != "" ) {
code.value=code.value + "a:link { \n";
 if(fontfamilyl.value != "") {
 code.value=code.value + "font-family:" + fontfamilyl.value + ";\n";
 }
 if(fontsizel.value != "") {
 code.value=code.value + "font-size:" + fontsizel.value + ";\n";
 }
 if(fontweightl.value != "") {
 code.value=code.value + "font-weight:" + fontweightl.value + ";\n";
 }
 if(decorationl.value != "") {
 code.value=code.value + "text-decoration:" + decorationl.value + ";\n";
 }
 if(fontcolorl.value != "") {
 code.value=code.value + "color:" + fontcolorl.value + ";\n";
 }
 if(backgroundl.value != "") {
 code.value=code.value + "background-color:" + backgroundl.value + ";\n";
 }
code.value=code.value + "} \n\n";
}

if (fontfamilyv.value != "" || fontsizev.value != "" || fontweightv.value != "" || decorationv.value != "" || fontcolorv.value != "" || backgroundv.value != "" ) {
code.value=code.value + "a:visited { \n";
 if(fontfamilyv.value != "") {
 code.value=code.value + "font-family:" + fontfamilyv.value + ";\n";
 }
 if(fontsizev.value != "") {
 code.value=code.value + "font-size:" + fontsizev.value + ";\n";
 }
 if(fontweightv.value != "") {
 code.value=code.value + "font-weight:" + fontweightv.value + ";\n";
 }
 if(decorationv.value != "") {
 code.value=code.value + "text-decoration:" + decorationv.value + ";\n";
 }
 if(fontcolorv.value != "") {
 code.value=code.value + "color:" + fontcolorv.value + ";\n";
 }
 if(backgroundv.value != "") {
 code.value=code.value + "background-color:" + backgroundv.value + ";\n";
 }
code.value=code.value + "} \n\n";
}

if (fontfamilya.value != "" || fontsizea.value != "" || fontweighta.value != "" || decorationa.value != "" || fontcolora.value != "" || backgrounda.value != "" ) {
code.value=code.value + "a:active { \n";
 if(fontfamilya.value != "") {
 code.value=code.value + "font-family:" + fontfamilya.value + ";\n";
 }
 if(fontsizea.value != "") {
 code.value=code.value + "font-size:" + fontsizea.value + ";\n";
 }
 if(fontweighta.value != "") {
 code.value=code.value + "font-weight:" + fontweighta.value + ";\n";
 }
 if(decorationa.value != "") {
 code.value=code.value + "text-decoration:" + decorationa.value + ";\n";
 }
 if(fontcolora.value != "") {
 code.value=code.value + "color:" + fontcolora.value + ";\n";
 }
 if(backgrounda.value != "") {
 code.value=code.value + "background-color:" + backgrounda.value + ";\n";
 }
code.value=code.value + "} \n\n";
}

if (fontfamilyh.value != "" || fontsizeh.value != "" || fontweighth.value != "" || decorationh.value != "" || fontcolorh.value != "" || backgroundh.value != "" ) {
code.value=code.value + "a:hover { \n";
 if(fontfamilyh.value != "") {
 code.value=code.value + "font-family:" + fontfamilyh.value + ";\n";
 }
 if(fontsizeh.value != "") {
 code.value=code.value + "font-size:" + fontsizeh.value + ";\n";
 }
 if(fontweighth.value != "") {
 code.value=code.value + "font-weight:" + fontweighth.value + ";\n";
 }
 if(decorationh.value != "") {
 code.value=code.value + "text-decoration:" + decorationh.value + ";\n";
 }
 if(fontcolorh.value != "") {
 code.value=code.value + "color:" + fontcolorh.value + ";\n";
 }
 if(backgroundh.value != "") {
 code.value=code.value + "background-color:" + backgroundh.value + ";\n";
 }
code.value=code.value + "} \n";
}



testcode.value = "\<html>\<head>\n" + code.value + " body,table,th,td {font-family:verdana; color:#000000; font-size:10pt;}\</style> \</head>\n\<body text=\"#000000\" bgcolor=\"#6699CC\" marginwidth=\"0\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\">\n ";

testcode.value = testcode.value + "\<table width=\"400\">\<tr>\<th colspan=\"2\">CSS Link Test\<br>\</th>\</tr>\<tr>\<td colspan=\"2\">Achtung: Der unbesuchte Link darf nicht geklickt werden, sonst wird er vom Browser als besuchter Link dargestellt. Um das r&uuml;ckg&auml;ngig zu machen ist der Browsercache zu l&ouml;schen. Der besuchte Link mu&szlig; wenigstens einmal vorab besucht werden um als besucht markiert zu werden.\<br>\<br>\</td>\</tr>";

testcode.value = testcode.value + "\<tr>\<td width=\"50%\" bgcolor=\"#FFFFFF\">\<a href=\"#\">unbesuchter Link\</a>\</td>\<td>\<a href=\"#\">unbesuchter Link\</a>\</td>\</tr>\<tr>\<td bgcolor=\"#FFFFFF\">\<a href=\"#\" target=\"_blank\">besuchter Link\</a>\</td>\<td>\<a href=\"#\" target=\"_blank\">besuchter Link\</a>\</td>\</tr>\</table>\</bo" + "dy>\</html>";

code.value=code.value + "\</style> \n";

var breite=420;
var hoehe=220;
var positionX=((screen.availWidth / 2) - breite / 2);
var positionY=((screen.availHeight / 2) - hoehe / 2);
var boat = open ("","","resizable=1,scrollbars=1,width=420,height=220,top=" + positionX + ",left=" + positionY );
see = document.wme_js.testcode.value;
boat.document.write (see);
return true;

}
}

