<!--
String.prototype.ucFirst = function () {
  return this.substr(0,1).toUpperCase() + this.substr(1,this.length);
};
String.prototype.trim = function() {
        return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
        return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
        return this.replace(/\s+$/,"");
}

        function fCheckFormTop(name){
            with (document.forms[name]){
                    var oneValue = one.value;
                    var twoValue = two.value;
                    if((oneValue=='Type Fighter 1 here' && twoValue=='Type Fighter 2 here') || (oneValue.trim()=='' && twoValue.trim()=='')){
                            oneValue='The Left Fighter';
                            twoValue='The Right Fighter';
                    }else{
                      if(oneValue=='Type Fighter 1 here')oneValue = '';
                      if(twoValue=='Type Fighter 2 here')twoValue = '';
                    }
                    //----------------------------------
                    var temp = new Array();
                    temp = oneValue.split(' ');
                    oneValue = "";
                    for(i=0;i<temp.length;i++){
                      if(temp[i].trim().length != 0){
                        if(temp[i].trim().length > 2 || i == 0){
                          if((temp[i].trim().length >= 2 && temp[i].trim().charAt(1).toUpperCase() != temp[i].trim().charAt(1)) || temp[i].trim().length < 2){
                                oneValue = oneValue + " " + temp[i].trim().ucFirst();
                          }else{
                            oneValue = oneValue + " " + temp[i].trim();
                          }
                        }else{
                          oneValue = oneValue + " " + temp[i].trim();
                        }
                      }
                    }
                    one.value = oneValue.trim();
                    //one.value = oneValue.substr(0,1).toUpperCase() + oneValue.substr(1,oneValue.length);
                    //-----------------------------------
                    var temp = new Array();
                    temp = twoValue.split(' ');
                    twoValue = "";
                    for(var i=0;i<temp.length;i++){
                      if(temp[i].trim().length != 0){
                        if(temp[i].trim().length > 2 || i == 0){
                          if((temp[i].trim().length >= 2 && temp[i].trim().charAt(1).toUpperCase() != temp[i].trim().charAt(1)) || temp[i].trim().length < 2){
                                twoValue = twoValue + " " + temp[i].trim().ucFirst();
                          }else{
                            twoValue = twoValue + " " + temp[i].trim();
                          }
                        }else{
                          twoValue = twoValue + " " + temp[i].trim();
                        }
                      }
                    }
                    two.value = twoValue.trim();
                    //two.value = twoValue.substr(0,1).toUpperCase() + twoValue.substr(1,twoValue.length);
            }
            return true;
        }
-->
