			function checkValidity()
			{		
				
				document.getElementById('lblAmount').innerHTML = "";
				document.getElementById('lblName').innerHTML = "";
				document.getElementById('lblCountry').innerHTML = "";
				document.getElementById('lblState').innerHTML = "";
				document.getElementById('lblCity').innerHTML = "";
				document.getElementById('lblEmail').innerHTML = "";
				
				
				if( document.getElementById('txtAmount').value == "")
				{
					document.getElementById('lblAmount').innerHTML = "Please enter Amount.";
					document.getElementById('txtAmount').focus();				 
					return false;
				} 	
				if (document.getElementById('txtAmount').value != "");
				{
					var FldValue = document.getElementById('txtAmount').value;
					var checkOK = "0123456789";
					var checkStr = FldValue; 
					var allValid = true;
					for (i = 0;  i<checkStr.length;  i++)
					{	ch = checkStr.charAt(i);
						for (j = 0;  j<checkOK.length;  j++)
						if (ch == checkOK.charAt(j))
							break;
						if (j == checkOK.length)
							{
							allValid = false;
							break;
							}
					}
					if (!allValid)
					{
					document.getElementById('lblAmount').innerHTML = "Please do not enter any special chracter.";
					document.getElementById('txtAmount').focus();				 
					return false;			
					}
				}
				
				if( document.getElementById('txtName').value == "")
				{
					document.getElementById('lblName').innerHTML = "Please enter name.";
					document.getElementById('txtName').focus();				 
					return false;
				}
				
				if ( document.getElementById('txtName').value != "");
				{
					var FldValue = document.getElementById('txtName').value;
					var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz. ";
					var checkStr = FldValue; 
					var allValid = true;
					for (i = 0;  i<checkStr.length;  i++)
					{	ch = checkStr.charAt(i);
						for (j = 0;  j<checkOK.length;  j++)
						if (ch == checkOK.charAt(j))
							break;
						if (j == checkOK.length)
							{
							allValid = false;
							break;
							}
					}
					if (!allValid)
					{
					document.getElementById('lblName').innerHTML = "Please do not enter any special chracter.";
					document.getElementById('txtName').focus();				 
					return false;			
					}
				}
				if( document.getElementById('txtEmail').value == "")
				{
					document.getElementById('lblEmail').innerHTML = "Please enter your email address.";
					document.getElementById('txtEmail').focus();				 
					return false;
				}
				
				//********************To validate email address *******************//
				
					if( document.getElementById('txtEmail').value != "")
					{
						var emailID=document.getElementById("txtEmail").value;
							
						if ((emailID==null)||(emailID==""))
						{
							document.getElementById('lblEmail').innerHTML = "Please Enter your Email ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}
						
						var at="@";
						var dot=".";
						var lat=emailID.indexOf(at);
						var lstr=emailID.length;
						var ldot=emailID.indexOf(dot);
						if (emailID.indexOf(at)==-1)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}

						if (emailID.indexOf(at)==-1 || emailID.indexOf(at)==0 || emailID.indexOf(at)==lstr)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}

						if (emailID.indexOf(dot)==-1 || emailID.indexOf(dot)==0 || emailID.indexOf(dot)==lstr)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}

						if (emailID.indexOf(at,(lat+1))!=-1)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}

						if (emailID.substring(lat-1,lat)==dot || emailID.substring(lat+1,lat+2)==dot)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}

						if (emailID.indexOf(dot,(lat+2))==-1)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}
						
						if (emailID.indexOf(" ")!=-1)
						{
							document.getElementById('lblEmail').innerHTML = "Invalid E-mail ID.";
							document.getElementById("txtEmail").focus();
							return false;
						}
										
										
						
			       }
				//*****************************************************************//
				
				if( document.getElementById('ddlCountry').value == "Select")
				{
					document.getElementById('lblCountry').innerHTML = "Please select Country.";
					document.getElementById('ddlCountry').focus();				 
					return false;
				}
				if( document.getElementById('ddlState').value == "Select")
				{
					document.getElementById('lblState').innerHTML = "Please select State.";
					document.getElementById('ddlState').focus();				 
					return false;
				}
				if( document.getElementById('txtCity').value == "")
				{
					document.getElementById('lblCity').innerHTML = "Please enter your city.";
					document.getElementById('txtCity').focus();				 
					return false;
				}
				
				if ( document.getElementById('txtCity').value != "");
				{
					var FldValue = document.getElementById('txtCity').value;
					var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
					var checkStr = FldValue; 
					var allValid = true;
					for (i = 0;  i<checkStr.length;  i++)
					{	ch = checkStr.charAt(i);
						for (j = 0;  j<checkOK.length;  j++)
						if (ch == checkOK.charAt(j))
							break;
						if (j == checkOK.length)
							{
							allValid = false;
							break;
							}
					}
					if (!allValid)
					{
					document.getElementById('lblCity').innerHTML = "Please do not enter any special chracter."	;				document.getElementById('txtCity').focus();				 
					return false;			
					}
				}
				
				return true;
		}


 