function encrypt(part1,part2,part3)
{
    var all= 'mai'+'lto:'+part1+"@"+part2;
    if( part3 )
        all += '?Sub'+'ject='+part3;
    document.location.href=eval('"'+all+'"');
}

function WinOpen(url, w, h) {
   var Win = window.open(url,"displayWindow",'width='+w+',height='+h+',resizable=0,scrollbars=no,menubar=no');
}

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;
}
