// JavaScript Document


function get_object(id) {
	var object = null;
	if( document.layers ) {   
	object = document.layers[id];
	} else if( document.all ) {
	object = document.all[id];
	} else if( document.getElementById ) {
	object = document.getElementById(id);
	}
	return object;
}
function checkQty(qtyId) {
	var formObj = get_object(qtyId);
	// check qty is integer & is not zero
	if (parseInt(formObj.value) < 1 || parseInt(formObj.value) != formObj.value) {
		alert('Invalid quantity');
		return false;
	} else 
		return true;
}


