// global variables to form MY addresses
var pref = ""; // special prefix, or ""
var at1 = "@";
var dot = ".";
var slsh = "/";
var typ = "com";
var htm = "htm";
var id1 = "Con";    // real id1
var id2 = "tact";    // real id2
var url = "SealingTime";       // real URL
var fid1 = "spam";      // fake id1
var fid2 = "watch"    // fake id2
var furl = "SealingTime";    // fake URL
var pr1 = "prayerrequest";  // real dir 1
var pr2 = "prayerrequest";  // real file name

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 + id2 + at1 + url + dot + typ;
    alert ("Fake business was ... \n   " + tmp + "\n\n\n" +
           "Real business is  ... \n   " + obj1.business.value);
  }
  return true;             // make it work...
}

function FixPRlink (obj1) {  // fix Prayer Request Link
var tmp;
  tmp = obj1.href;
  obj1.href = pr1 + slsh + pr2 + dot + htm;    // make it work...
}

function FixPPLink (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
alert(obj.name);
    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 (pref + url);
      obj.value = tmp;
alert("Fix URL... \n\n" +
      obj.name + " value was ... \n   " + org + "\n\n\n" +
      "New value IS  ... \n   " + tmp);
    }
    org = tmp;  // any more stuff to fix?
    ary = tmp.split (fid1 + fid2);  // have a fake ID here?
    if (ary.length > 1) {    // still a fake
      tmp = ary.join (id1 + id2);
      obj.value = tmp;
alert("Fix ID... \n\n" +
      obj.name + " value was ... \n   " + org + "\n\n\n" +
      "New value IS  ... \n   " + tmp);
    }
  }
}

function FixMail (obj1) {  // fix a hyperlink mail addr
var tmp;
  tmp = obj1.href;
  obj1.href = "mailto:" + id1 + id2 + at1 + url + dot + typ;    // make it work...
}

