// Original:  Ronnie T. Moore
// Web Site:  The JavaScript Source

// Dynamic 'fix' by: Nannette Thacker
// Web Site: http://www.shiningstar.net

// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}





// See http://www.netlobo.com/div_hiding.html
// e.g. of use: admin/gift_delivery_analysis.asp

function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}




function escramble(){
 var a,b,c,d,e,f,g,h,i
 a='<a class=normallink href=\"mai'
 b='help'
 c='\">'
 a+='lto:'
 b+='@'
 e='wide.com</a>'
 f=''
 b+='mcfinaworld'
 g='<img src=\"'
 h=''
 i='\" border="0">'
 j='wide.com'

 if (f) d=f
 else if (h) d=g+h+i
 else d=b

 document.write(a+b+j+c+d+e)
}
