	function mOver(tdId,bgColour){
		if(document.getElementById){
			document.getElementById(tdId).style.backgroundColor = bgColour;}
		else if(document.all){
			document.all.item(tdId).style.backgroundColor = bgColour;}
		}

	function mOut(tdId,bgColour){
		if(document.getElementById){
			document.getElementById(tdId).style.backgroundColor = bgColour;}
		else if(document.all){
			document.all.item(tdId).style.backgroundColor = bgColour;}
		}
		
  function upperCase(controlName){
    controlName.value=controlName.value.toUpperCase();
  }
  
  function lowerCase(controlName){
    controlName.value=controlName.value.toLowerCase();
  }
  
  function toProperCase(controlName){
    //controlName.value = controlName.value.toLowerCase().replace(/^(.)|\s(.)/g, function($1) { return $1.toUpperCase(); });
    controlName.value = controlName.value.capitalize()
  }
  
  String.prototype.capitalize = function(){ //v1.0
    return this.replace(/\w+/g, function(a){
      return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase();
    })
  }
  

