function chkblank(strValue,b,fld)
{
	var objRegExp = /^(\s*)$/;
	if(objRegExp.test(strValue)) 
	{
        strValue = strValue.replace(objRegExp, '');
	}
    if(strValue.length == 0)
	{
		alert(b+ " field is blank");
		fld.focus( ); 
		return true;
	}
}

function chkNaN(strValue,b,fld)
{
	if (isNaN(strValue))
	{ 	
		alert("Please enter numeric value for " + b);
		fld.focus();
   		return true;  
	}
}

function chkZero(strValue,b,fld)
{
	if (parseInt(strValue)<=0)
	{ 
		alert(b+ " Cannot be less then and  equal to zero")
		fld.focus();
   		return true;  
	}
}

function chkcmb(strValue,b,fld)
{
	var objRegExp = /^(\s*)$/;
	if(objRegExp.test(strValue)) 
	{
        strValue = strValue.replace(objRegExp, '');
	}
    if(strValue.length == 0)
	{
		alert("Please Select " + b);
		fld.focus( ); 
		return true;
	}
}

function chktextarea(strValue,b)
{
	var objRegExp = /^(\s*)$/;
	if(objRegExp.test(strValue)) 
	{
        strValue = strValue.replace(objRegExp, '');
	}
    if(strValue.length == 0)
	{
		return true;
	}
	else
	{
		return false;
	}
}