function ShowHide(elementID){
if(document.getElementById(elementID).style.display == 'none')
	document.getElementById(elementID).style.display = 'block';
else
	document.getElementById(elementID).style.display = 'none'
}


function textCounter(field, countfield, maxlimit) {
/*
* The input parameters are: the field name;
* field that holds the number of characters remaining;
* the max. numb. of characters.
*/ 
if (field.value.length > maxlimit) // if the current length is more than allowed
field.value =field.value.substring(0, maxlimit); // don't allow further input
else
countfield.innerHTML = maxlimit - field.value.length;} // set the display field to remaining number

function BigImage(title, src, w, h){
var d = new Image;
d.src=src;
if ( parent.nWin ) { nWin.close(); }
nWin=window.open( "", null, 'width='+(w+0)+', height='+(h+0)+', scrollbars=no,status=no,toolbar=no,menubar=no,location=no');
nWin.document.write('<head><title>' + title + '</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">');
nWin.document.write("<a href='javascript:window.close()'><img border=0 src='"+src+"' alt='close'></a></body>")
nWin.focus();
}


function JSFX_FloatTopLeft(id)
{
	var startX = 0, startY = 480;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	var px = document.layers ? "" : "px";
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
		el.x = startX; el.y = startY;
		return el;
	}
window.stayTopLeft=function()
	{
		var pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 40);
	}
	ftlObj = ml(id);
	stayTopLeft();
}

function NewWindow(page, popW, popH) {
	window.open(page,null,'width='+popW+',height='+popH+',scrollbars=no,status=no,toolbar=no,menubar=no,location=no');
}


