function chkform(obj)
{	
	//	spring_tool		baseBallCap		saddleBag		anchorKit		bagFree		flybar		ladder

	//alert(obj.name);	return false;
	if(obj.name == 'spring_tool')
	{
		if(document.spring_tool.pquantity.value == '' || document.spring_tool.pquantity.value == '0' || isNaN(document.spring_tool.pquantity.value) || checkDotIndex(document.spring_tool.pquantity.value)==true)
		{
			if(document.spring_tool.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.spring_tool.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.spring_tool.pquantity.value = '';
			document.spring_tool.pquantity.focus();
			return false;
		}	
		return true;
	}
	
	if(obj.name == 'baseBallCap')
	{
		if(document.baseBallCap.pquantity.value == '' || document.baseBallCap.pquantity.value == '0' || isNaN(document.baseBallCap.pquantity.value) || checkDotIndex(document.baseBallCap.pquantity.value)==true)
		{
			if(document.baseBallCap.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.baseBallCap.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.baseBallCap.pquantity.value = '';
			document.baseBallCap.pquantity.focus();
			return false;
		}	
		return true;
	}

	if(obj.name == 'saddleBag')
	{
		if(document.saddleBag.pquantity.value == '' || document.saddleBag.pquantity.value == '0' || isNaN(document.saddleBag.pquantity.value) || checkDotIndex(document.saddleBag.pquantity.value)==true)
		{
			if(document.saddleBag.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.saddleBag.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.saddleBag.pquantity.value = '';
			document.saddleBag.pquantity.focus();
			return false;
		}	
		return true;
	}		

	if(obj.name == 'anchorKit')
	{
		if(document.anchorKit.pquantity.value == '' || document.anchorKit.pquantity.value == '0' || isNaN(document.anchorKit.pquantity.value) || checkDotIndex(document.anchorKit.pquantity.value)==true)
		{
			if(document.anchorKit.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.anchorKit.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.anchorKit.pquantity.value = '';
			document.anchorKit.pquantity.focus();
			return false;
		}	
		return true;
	}

	if(obj.name == 'bagFree')
	{
		if(document.bagFree.pquantity.value == '' || document.bagFree.pquantity.value == '0' || isNaN(document.bagFree.pquantity.value) || checkDotIndex(document.bagFree.pquantity.value)==true)
		{
			if(document.bagFree.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.bagFree.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.bagFree.pquantity.value = '';
			document.bagFree.pquantity.focus();
			return false;
		}	
		return true;
	}
	
	if(obj.name == 'flybar')
	{
		if(document.flybar.pquantity.value == '' || document.flybar.pquantity.value == '0' || document.flybar.pquantity.value == '00' || isNaN(document.flybar.pquantity.value) || checkDotIndex(document.flybar.pquantity.value)==true)
		{
			if(document.flybar.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.flybar.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.flybar.pquantity.value = '';
			document.flybar.pquantity.focus();
			return false;
		}	
		return true;
	}

	
	if(obj.name == 'ladder')
	{
		if(document.ladder.pquantity.value == '' || document.ladder.pquantity.value == '0' || isNaN(document.ladder.pquantity.value) || checkDotIndex(document.ladder.pquantity.value)==true)
		{
			if(document.ladder.pquantity.value == '')
			{
				alert("Please enter quantity!!!");
			}
			else if(isNaN(document.ladder.pquantity.value))
			{
				alert("Please enter numeric value for quantity!!!");
			}
			else
			{
				alert("Invalid quantity!!!");
			}

			document.ladder.pquantity.value = '';
			document.ladder.pquantity.focus();
			return false;
		}	
		return true;
	}

	if(obj.name == 'bounceBoard')
	{
		var color = document.bounceBoard.pidxx.options[document.bounceBoard.pidxx.selectedIndex].value;
		//var form = document.bounceBoard;
		if(color=='0')
		{
			alert("Please select bounce board color!!!");
			document.bounceBoard.pidxx.focus();
			return false;
		}
		if (document.bounceBoard.pquantity.value == "")
		{
			alert("Please enter the quantity.");
			document.bounceBoard.pquantity.focus();
			return false;
		}
		if (!(document.bounceBoard.pquantity.value <= 99999 && document.bounceBoard.pquantity.value > 0))
		{
			alert("Please enter a numeric value for quantity");
			document.bounceBoard.pquantity.value='';
			document.bounceBoard.pquantity.focus();
			return false;
		}

		if (document.bounceBoard.pquantity.value == "0" || checkDotIndex(document.bounceBoard.pquantity.value)==true)
		{
			alert("Invalid quantity.");
			document.bounceBoard.pquantity.value='';
			document.bounceBoard.pquantity.focus();
			return false;
		}

		return true;
	}
	
}

function checkDotIndex(objValue)
{
	var indexValue =objValue.indexOf(".");	
	
	if (indexValue != -1)
	{		
		return true;
	}
	else
	{
		return false;
	}
}