function txtSearch(x)
{
	var txtNewStr=new String(x);
	txtLength=txtNewStr.length;
	
	for(i=0;i<txtLength;i++)
		{
		num=txtNewStr.charCodeAt(i)
				if((num==32) || ((num>=48) && (num<=57)) || ((num>=65) &&(num<=90)) || ((num>=97) &&(num<=122)) || (num==13) )
				{
				x=1;
				}
				else
				{
				alert("Please Remove Invalid Character,\nOnly Alphabates and Numeric Character Can Be Used.");
				x=0;
				break;
				return false;
				}
		}

	if(x==0)
	{
		return false;
	} 
	else
		return true
}

function txtSearchAdd(x)
{
	var txtNewStr=new String(x);
	txtLength=txtNewStr.length;
	
	for(i=0;i<txtLength;i++)
		{
		num=txtNewStr.charCodeAt(i)
				if((num==32) || ((num>=48) && (num<=57)) || ((num>=65) &&(num<=90)) || ((num>=97) &&(num<=122)) || (num==13) || (num==40) || (num==41) || (num==44) || (num==45) || (num==47))
				{
				x=1;
				}
				else
				{
				alert("Please Remove Invalid Character,\nOnly Alphabates and Numeric Character Can Be Used. and ()/,- special characters can be use.");
				x=0;
				break;
				return false;
				}
		}

	if(x==0)
	{
		return false;
	} 
	else
		return true
}