//<!-- Original:  William Humphreys (billy@technical-solutions.co.uk) -->
//
//<!-- This script and many more are available free online at -->
//<!-- The JavaScript Source!! http://javascript.internet.com -->
//
//<!-- Begin
function changeCase(frmObj) {
var index;
var tmpStr;
var tmpChar;
var preString;
var postString;
var strlen;
  tmpStr = frmObj.value.toLowerCase();
  strLen = tmpStr.length;
  if (strLen > 0)  {
    for (index = 0; index < strLen; index++)  {
      if (index == 0)  {
        tmpChar = tmpStr.substring(0,1).toUpperCase();
        postString = tmpStr.substring(1,strLen);
        tmpStr = tmpChar + postString;
      } else {
        tmpChar = tmpStr.substring(index, index+1);
        if ((tmpChar == " ") || (tmpChar == "-") || (tmpChar == ".") && index < (strLen-1))  {
          tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
          preString = tmpStr.substring(0, index+1);
          postString = tmpStr.substring(index+2,strLen);
          tmpStr = preString + tmpChar + postString;
        }
      }
    }
  }
  frmObj.value = tmpStr;
}
//  End -->

//<!-- Original:  Ronnie T. Moore, Editor -->
//<!-- Idea by:  Zachary McDermott -->

//<!-- This script and many more are available free online at -->
//<!-- The JavaScript Source!! http://javascript.internet.com -->

//<!-- Begin
function cleanCAPS(str) {
capsallowed = 1; // Lowercase if more than ## CAPS in a row
do {
eval("re = /([A-Z]{" + (capsallowed+1) + ",})/g;");
myArray = str.match(re);
if (myArray) {
eval("re = /" + myArray[0] + "/;");
str = str.replace(re, ""+myArray[0].toLowerCase());
   }
} while (myArray);
return str;
}
//  End -->

//<!-- Begin
fld0 = '&#109;&#97;&#105;&#108;&#116;&#111;&#58;'; 
//function ftss(a, b, c){return '<a href="' + fld0 + a + b + c + '">' + a + b + c + '</a>';}
function ftss(a, b, c){return '<a href="' + fld0 + a + b + c + '">Click To Email</a>';}

//  End -->


