function setcolor(divid)
{
document.getElementById(divid).style.backgroundColor='#EDF5DE';
}
function removecolor(divid) {
document.getElementById(divid).style.backgroundColor='#ffffff';
}



function validation_feed()
{
     			if(document.feedback.txtname.value=='')
               	{
            			document.getElementById('nameError').innerHTML="Please enter the name";
		        }
	            if(document.feedback.txtemail.value=='')
                {
            			document.getElementById('emailError').innerHTML="Please enter the emailId";
		        }
         	    if((document.getElementById('ddlCountry20').selectedIndex)==0)
                {
                   document.getElementById('countryError').innerHTML="Please select the country";
            	}
         	    if((document.getElementById('state').selectedIndex)==0)
                {
                   document.getElementById('state1').innerHTML="Please select the state";
            	}  
				if(document.feedback.txtCity.value=='')
                {
                   document.getElementById('cityError').innerHTML="Please enter the city";
                } 
				if(document.feedback.textcomment.value=='')
                {
                   document.getElementById('commentError').innerHTML="Please enter the comments";				   
                } 
	            if(document.feedback.txtverification.value=='')
                {
            		document.getElementById('verificationError').innerHTML="Please enter the verification code";
		        }   
}
	              
                function validation1_feed()
                {
     			if(document.feedback.txtname.value=='')
               	{
            			document.getElementById('nameError').innerHTML="Please enter the name";
            			document.feedback.txtname.focus();
            			return false;
		        }
	            if(document.feedback.txtemail.value=='')
                {
            			document.getElementById('emailError').innerHTML="Please enter the emailId";
            			document.feedback.txtemail.focus();
            			return false;
		        }
		        strValue1=document.getElementById('emailError').innerHTML;
		        if(strValue1!='')
		        {
						document.feedback.txtemail.focus();
            			return false;
				}
         	    if((document.getElementById('ddlCountry20').selectedIndex)==0)
                {
	                   document.getElementById('countryError').innerHTML="Please select the Country";
	                   document.feedback.ddlCountry20.focus();
	            	   return false;
            	}
            	if((document.getElementById('state').selectedIndex)==0)
                {
	                   document.getElementById('state1').innerHTML="Please select the State";
	                   document.feedback.state.focus();
	            	   return false;
            	}
         	    if(document.feedback.txtCity.value=='')
                {
	                  	document.getElementById('cityError').innerHTML="Please select the city";
	                   	document.feedback.txtCity.focus();
		            	return false;
                } 
				if(document.feedback.textcomment.value=='')
                {
					   document.getElementById('commentError').innerHTML="Please enter the comments";
					   document.feedback.textcomment.focus();
		               return false;
                }
				strValue2=document.getElementById('commentError').innerHTML;
		        if(strValue2!='')
		        {
						document.feedback.textcomment.focus();
            			return false;
				}
	            if(document.feedback.txtverification.value=='')
                {
            			document.getElementById('verificationError').innerHTML="Please enter the verification code";
            			document.feedback.txtverification.focus();
		           		return false;
	            } 
				if(document.feedback.txtverification.value!='')
				{
				 	a = document.getElementById('verify').value;
					if(a==document.getElementById('txtverification').value)
					{
						document.getElementById('verificationError').innerHTML="";
						return true;
					}
			 		else
			  		{
			   			document.getElementById('verificationError').innerHTML="Verification code is mismatch. Try again!..";
			   			document.getElementById('txtverification').focus();
			  			 return false;
			  
			  		} 
			  	} 
				strValue3=document.getElementById('verificationError').innerHTML;
		        if(strValue3!='')
		        {
						document.feedback.txtverification.focus();
            			return false;
				} 
	            return true;
}
			   
