function SpecialChar(strVal)
{
		var cnt=0;
		var cnt_False=0;
		for (i=0;i<strVal.length;i++)
		{     
			if (strVal.charAt(i)>='a' && strVal.charAt(i)<='z' || (strVal.charAt(i)>='A' && strVal.charAt(i)<='Z') || (strVal.charAt(i)>='0' && strVal.charAt(i)<='9') || strVal.charAt(i)>='_' || strVal.charAt(i)==' ')
 				cnt +=1;
			else
				cnt_False +=1;

		}// end of for loop 

		if (cnt_False>0)
		return true;
		else
			return false;
}

//*************************************************************************
//	just to return javascript Date object
//  input parameter is string dd/MM/yyyy format
//*************************************************************************
function GetDate(strDate)
{
	var arrDate = strDate.split("/");
	var tDate = new Date( arrDate[2]+ '/' + arrDate[1]+'/'+ arrDate[0]);
	return tDate;
}
//*************************************************************************

function IsInteger(numVal)
{
	var cnt=0;
	var cnt_False=0;
	for(j=0;j<numVal.length;j++)
	{
		numVal1 = numVal.charCodeAt(j);
		if(numVal1 >=48 && numVal1 <=57)
			cnt +=1;
        else
			cnt_False +=1;
	}
	
		if (cnt_False>0)
			return true;
		else
			return false;
}

//Pass parametes as ('1','feb','2005')
function DateValidate(dd,mm,yy)
{
if  (((yy % 4 == 0) && (yy % 100 != 0)) || (yy % 400 == 0))
	  {
		  if(mm == "Feb")
	  	{
				if(dd > 29)
				{
					alert("This is a Leap Year, Select a date upto 29th.");
					return false;
				}
			}
		}
	 else
	  {
			if(mm == "Feb")
			{
				if(dd > 28)
				{
					alert("Select a date upto 28th for the month of February");
					return false;
				}
			}
	  }
		if(mm == "Apr" || mm == "Jun" || mm == "Sep" || mm == "Nov")
		{
			if(dd > 30)
			{
				alert("Select date upto 30th for this Month")
				return false;
			}
		}
	return true
}


		function isEmpty(s)
			{
			return ((s == null) || (s.length == 0));
			}
		
		function isBlankSpaces(s)
			{
			var i = 0;
			while(i < s.length)
				{
				if(s.charAt(i) == " ")
					{
					i = i + 1;
					continue;
					}
				else
					return false;
				}
			return true;
			}
			
			
			
