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(src, w, h){
var d = new Image;
d.src=src;
if ( parent.pero ) { pero.close(); }
pero=window.open( "", null, 'width='+(w+0)+', height='+(h+0)+', scrollbars=no,status=no,toolbar=no,menubar=no,location=no');
pero.document.write('<head><title>Big Image</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">');
pero.document.write("<a href='javascript:window.close()'><img border=0 src='"+src+"' alt='close'></a></body>")
pero.focus();
}


