/*
	HOVERBUTTON.JS: Creates a hoverbutton
	
	USES:	GOTO.JS
		HIGHLOW.JS
	
	i.e.: HoverButton('Login','login.php', 'self', true, 'Zum Login', bullet);
*/

function HoverButton(caption, link, target, centerflag, statustext, bullet) {
	var tt=String.fromCharCode(39);
	if (statustext=='') statustext=link;
	document.write('<table style="border:0px;" cellpadding="0" cellspacing="0" width="100%" height="100%">');
	document.write('<tr>');
	document.write('<td valign="middle" class="nodelow" style="cursor: hand; cursor: pointer;" height="100%" width="100%" OnMouseOver="javascript:high(this); status='+tt+statustext+tt+';" OnMouseOut="javascript:low(this); status='+tt+tt+';" OnClick="javascript: browse('+tt+link+tt+','+tt+target+tt+');"');
	if (centerflag) {
		document.write(' align="center"');
	}
	document.write('>');
	if (bullet) {
		document.write('&nbsp;<img src="./gfx/bulletg.gif" align="baseline" border="0">&nbsp;');
	}
	document.write(caption);
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}
