function div_reset()
	{
		    document.getElementById('nameError').innerHTML="";
		   	document.getElementById('emailError').innerHTML="";
		   	document.getElementById('countryError').innerHTML="";
		   	document.getElementById('state1').innerHTML="";
 			document.getElementById('cityError').innerHTML="";
			document.getElementById('commentError').innerHTML="";
 			document.getElementById('verificationError').innerHTML="";
 		
	}
	
	
function capWords(ctrl) 
{
	var inputString = document.getElementById(ctrl) // The input text field
	var tmpStr, tmpChar, preString, postString, strlen;
	tmpStr = inputString.value.toLowerCase();
	stringLen = tmpStr.length;
	if (stringLen > 0)
	{
	  for (i = 0; i < stringLen; i++)
	  {
		
		if (i == 0)
		{
		  tmpChar = tmpStr.substring(0,1).toUpperCase();
		  postString = tmpStr.substring(1,stringLen);
		  tmpStr = tmpChar + postString;
		  document.getElementById(ctrl).value=tmpStr;
		}
		else
		{
		  tmpChar = tmpStr.substring(i,i+1);
		  if (tmpChar == " " && i < (stringLen-1))
		  {
		  tmpChar = tmpStr.substring(i+1,i+2).toUpperCase();
		  preString = tmpStr.substring(0,i+1);
		  postString = tmpStr.substring(i+2,stringLen);
		  tmpStr = preString + tmpChar + postString;
		 
		  }
		}
	  }
   }
}
function clear_city(spanid)
{
	document.getElementById(spanid).value="";
}


