// global variables to form MY addresses
var at1 = "@";
var dot = ".";
var typ = "com";

var fid1 = "silkenskystudio";      // fake id1
var id1 = "payments";    // real id1

var furl = "http://yahoo.com/silkenskystudio/index1.html";    // fake URL
var url = "silkensky";       // real URL


function FixBusi(obj1) {  // PayPal FORM business value
var tmp="";
  if (obj1.business) {     // see what is in this form 
    tmp = obj1.business.value;
    obj1.business.value = id1 + at1 + url + dot + typ;
  }
  return true;             // make it work...
}

function FixLink (obj1) {  // fix any PayPal link in calling FORM
var tmp,org,ary=new Array();
  for (i=0; i<obj1.length; i++) {  // run whole FORM
    obj = obj1.elements[i];        // address an element
    org = obj.value;
    tmp = org;  // place holder
    ary = tmp.split (furl);  // do we have a fake
    if (ary.length > 1) {    // still a fake
      tmp = ary.join (url);
      obj.value = tmp;
    }
    org = tmp;  // any more stuff to fix?
    ary = tmp.split (fid1);  // have a fake ID here?
    if (ary.length > 1) {    // still a fake
      tmp = ary.join (id1);
      obj.value = tmp;
    }
  }
}

function FixMail (obj1, emladr) {  // fix a hyperlink mail addr
var tmp;
  tmp = obj1.href;
  obj1.href = "mailto:" + emladr + at1 + url + dot + typ;
  return true;             // make it work...
}