function onlyNum(obj)
{
	obj.value= obj.value.replace(/\D/g,'')
}

/*'Script to increase quantity box*/
function plusone(unitbox){
	var currentval = document.getElementById(unitbox).value
	var addvalue	
	if (currentval!=null){
		if (!currentval.length){
			addvalue = 1
		}
		else
		{
			addvalue = parseInt(currentval) + 1
		}
	}	
	else
	{
		addvalue = 1
	}
		
	document.getElementById(unitbox).value = addvalue
}

/*'Script to decrease quantity box*/
function minusone(unitbox){
	var currentval = document.getElementById(unitbox).value
	var addvalue	
	if (currentval!=null){
		if (!currentval.length){
			addvalue = 1
		}
		else if (parseInt(currentval) > 1 )
		{
			addvalue = parseInt(currentval) - 1
		}
		else
		{
			addvalue = 1
		}
	}	
	else
	{
		addvalue = 1
	}
	document.getElementById(unitbox).value = addvalue
}


