<html><head><title>Proper Case Validation -- Sample by Vadivel</title><script><!--function ConvertToProperCase(){strTemp = document.form1.txtString.valuestrTemp = strTemp.toLowerCase()var test=""var isFirstCharOfWord = 1for (var intCount = 0; intCount < strTemp.length; intCount++) {var temp = strTemp.charAt(intCount)if (isFirstCharOfWord == 1){temp = temp.toUpperCase()}test = test + tempif (temp == " "){isFirstCharOfWord = 1}else isFirstCharOfWord = 0}document.form1.txtString.value = test}// --></script></head><body><form name=form1><input size=50 name=txtString><input type=button onClick=ConvertToProperCase() value="Convert It Now"></form></body></html>