function checkBlank(ctl,msgName)
	{
		  if((ctl.value)=="")	
			{
			  alert('"'+msgName+'"' + " can not be blank");
			  ctl.focus();
			  return (false);
			}
		  else
			{
				return (true);
		}
}

function valLeadsProduct(frm)
{
	if(checkBlank(frm.txtProdName,"Product name") == false)
	{
		return false;
	}
	
	if(checkBlank(frm.txtPrice,"Product price") == false)
	{
		return false;
	}

	if(checkBlank(frm.txtQuantity,"Product quantity") == false)
	{
		return false;
	}

	if(checkBlank(frm.txtstartDate,"Start date") == false)
	{
		return false;
	}

	if(checkBlank(frm.txtendDate,"End date") == false)
	{
		return false;
	}

	if((frm.txtendDate.value) < (frm.txtstartDate.value)) 
	{
		alert("End date must be greater than Start date");
		return false;		
	}

	if(checkBlank(frm.txtleadsPrice,"Leads price") == false)
	{
		return false;
	}
		return true;
}
