function div_reset()
{
	    document.getElementById('nameError').innerHTML="";
	   	document.getElementById('emailError').innerHTML="";
	   	document.getElementById('ccode').innerHTML="";			
	   	document.getElementById('add').innerHTML="";
		document.getElementById('commentError').innerHTML="";
		document.getElementById('verificationError').innerHTML="";
}
	
function setcolor(divid)
{
document.getElementById(divid).style.backgroundColor='#EDF5DE';
}
function removecolor(divid) 
{
document.getElementById(divid).style.backgroundColor='#ffffff';
}
	
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;
		  }
		}
	  }
   }
}