<!-- start


function generate(){
link1='';
link2='';
link3='';
text='';
js='';
style='';

if(document.formname.position.selectedIndex==0){
topIE='document.body.scrollTop+10';
leftIE='10';
topNS='window.pageYOffset+10';
leftNS='10';
textalign="ALIGN=LEFT"
// put the JavaScript if the watermark is to be in the
// Top Right ( js='<script>whatever it would be...</scribt>'; )
}

if(document.formname.position.selectedIndex==1){
width=130;
if (document.formname.type[1].checked) {
width=document.formname.width.value}
topIE='document.body.scrollTop+10';
leftIE='document.body.clientWidth-20-'+width;
topNS='window.pageYOffset+10';
leftNS='window.innerWidth-25-'+width;
textalign="ALIGN=RIGHT"
// put the JavaScript if the watermark is to be in the
// Top Left
}

if(document.formname.position.selectedIndex==2){
height=30;
if (document.formname.type[1].checked) {
height=document.formname.height.value}
topIE='document.body.scrollTop+document.body.clientHeight-'+height;
leftIE='10';
topNS='window.pageYOffset+window.innerHeight-'+height;
leftNS='10';
textalign="ALIGN=Left"
// put the JavaScript if the watermark is to be in the
// Bottom Right
}

if(document.formname.position.selectedIndex==3){
height=30;
width=130;
if (document.formname.type[1].checked) {
height=document.formname.height.value
width=document.formname.width.value}
topIE='document.body.scrollTop+document.body.clientHeight-'+height;
leftIE='document.body.clientWidth-20-'+width;
topNS='window.pageYOffset+window.innerHeight-'+height;
leftNS='window.innerWidth-25-'+width;
textalign="ALIGN=RIGHT"
// I already put the JavaScript if the watermark is to be in the
// Bottom Left
}

js='<SCRIPT language="javascript">\nfunction makeStatic() {\n'+
'if (document.all) {watermark.style.pixelTop = '+topIE+'}\n'+
'else {eval(document.watermark.top=eval('+topNS+'));}}\n'+
'setInterval("makeStatic()",1);\n\nfunction position() {\n'+
'if (document.all) {\nwatermark.style.pixelLeft = '+leftIE+';\n'+
'setTimeout(\'watermark.style.visibility = "visible"\', 50)}\nif (document.layers) {\n'+
'document.watermark.left += '+leftNS+';\n'+
'setTimeout(\'document.watermark.visibility = "visible"\', 50)}}\nposition();\n<'+'/SCRIPT>';

// image start
if(document.formname.type[1].checked){
	if(document.formname.imagefilter.selectedIndex==1){
	var style=' STYLE="filter: alpha(style=1, opacity='+document.formname.totalper.value+'); width:'+document.formname.width.value+'; height:'+document.formname.height.value+';"';
	}
	if(document.formname.imagefilter.selectedIndex==2){
	var style=' STYLE="filter: alpha(style=2, opacity='+document.formname.totalper.value+'); width:'+document.formname.width.value+'; height:'+document.formname.height.value+';"';
	}
	if(document.formname.imagefilter.selectedIndex==3){
	var style=' STYLE="filter: alpha(style=3, opacity='+document.formname.totalper.value+'); width:'+document.formname.width.value+'; height:'+document.formname.height.value+';"';
	}
	if(document.formname.imagefilter.selectedIndex==4){
	var style=' STYLE="filter: alpha(opacity='+document.formname.totalper.value+'); width:'+document.formname.width.value+'; height:'+document.formname.height.value+';"';
	}
type='<img src="'+document.formname.image.value+'" width="'+document.formname.width.value+'" height="'+document.formname.height.value+'" border=0 alt="'+document.formname.alt.value+'"'+style+'>';
if((document.formname.image.value == 'http://')||(document.formname.image.value=='')){alert('Please enter a URL for your image');}
}


// text start
else{
	if(document.formname.textfilter.selectedIndex==0){
	var style=' STYLE="width:120; color:#000000;padding:3px"';
	}
	if(document.formname.textfilter.selectedIndex==1){
	var style=' STYLE="filter: shadow(color='+document.formname.filtercolor.value+',direction=45); width:120; color:#000000;padding:3px"';
	}
	if(document.formname.textfilter.selectedIndex==2){
	var style=' STYLE="filter: glow(Color='+document.formname.filtercolor.value+',Strength=2); width: 120;padding:3px";';
	}

type='<font face="'+document.formname.textface.value+'" size="'+document.formname.textsize.value+'" color="'+document.formname.textcolor.value+'"'+style+'>'+document.formname.text.value+'</font>';}


if((document.formname.link.value != '') && (document.formname.link.value != '-- no link --')){
link1='<a href="'+document.formname.link.value+'" style="text-decoration:none;cursor:hand;">';
link2="</a>";}

var div='<DIV '+textalign+' ID="watermark" '+
'STYLE="Position: Absolute; Left:0px; Top:0px; Z-Index:20; visibility:hidden">\n'+link1+type+link2+'</DIV>\n\n';

document.formname.gencode.value= div+''+js;
}


// view
function view(){
msg=open("","DisplayWindow","menubar=1,scrollbars=1,resizable=1,width=400,height=200");
msg.document.write(document.formname.gencode.value+"\n\nScroll Page to see watermark in action.<br><br><br><br><br><br><br><br><br>\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\n<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");

}
//-->
