<!-- hide this script from non-javascript-enabled browsers
hex = '0123456789ABCDEF';

function encode(theForm) {
  
  new_text = hex_string('document.write(\'<a href=\"mailto:' + theForm.email.value + '\">' + theForm.name.value + '</a>\')');
  theForm.encoded_txt.value = '<script language=\"JavaScript\">eval(unescape(\'' + new_text + '\'))</script>';
}

function hex_string(mystring) {
  newstring = '';
  for (i=0; i<mystring.length; i++) {
    newstring = newstring + '%' + tohex(mystring.charCodeAt(i));
  }
  return newstring;
}

function tohex(n) {
    var hs='0123456789ABCDEF'
    return hs.charAt(Math.floor(n/16))+hs.charAt(n%16);
}


function openWin(url,name) 
{
   popupWin = window.open(url, name,"'toolbar=no,menubar=no,scrollbars=no,resizable=no,height=255,width=521,left=0,top=0");
}
