//CHECKS IS ENTERD NUM IS VALID?
function numValidate(thisObj)
{
	if(isNaN(thisObj.value))
	{
		alert("Invalid Number Entered");
		thisObj.value="0";
	}
}

//use to check if entered values is string
function stringValidate(thisObj)
{
	if(!isNaN(thisObj.value))
	{
		alert("Invalid Value Entered");
		thisObj.value="";
	}
}
function alphaNumValidate(thisObj)
{
	for(var cnt=0;cnt<10;cnt++)
	{
	if(thisObj.value.indexOf(cnt)!=-1)
	{
	   alert("Don't Specify Names in AlphaNumeric");
	   thisObj.value="";
	   break;
	}
	}
}

function checkNegative(thisObj)
{
	if(!isNaN(thisObj.value) && thisObj.value<0)
	{
		alert("This Field Cannot Be Negative");
		thisObj.value="";
	}
}

// used to validate empty str
function isEmptyValue(str)
{

	var isValid=true;
	if(str!=null )
	{
		for(var i=0;i<str.length;i++)
		{
			if(str[i]!=" ")
			{
				isValid=false;
				break;
			}
		}
	}
		return isValid;
	
}