function tellafriend(formObj, inputName)
 {
  inputUrl = document.getElementById(inputName);

  if(inputUrl)
   {
    inputUrl.value = window.location;
    formObj.submit();
   }
 }
