function addItemToCart(id){
	alert("This product will be added to the cart")	
}

function validateForm()
{
	try{
		
		//Check that the quantity is numeric and greater than 0
		var quant = Number($('quantity').value)
		var message = '';
		var status = true;
	
		
		//Check that the quant is a number
		if(!isNumeric(quant))
		{
			status = false;
			message += 'Quantity must be a number and greater than 0 \n';
		}
		else if (quant == 0 )
		{
			status = false;
			message += 'Quantity must be greater than 0 \n'
		}
		
	}
	catch(e)
	{
		status = false;
		message = e.message;
	}
	
	
	//If the status is false, then show the messag to the user
	if(!status)
	{
		alert(message)	
	}
	
		  
	return status;		 
}


function validateGCForm()
{
	
	try
	{
	
		//Set local variables
		var status = true;
		var message = '';
		var gcList = $('gcs').value
		var gcArray = gcList.split(',')
		
		//Ensure that the quantites are numeric
		for(i=0; i<gcArray.length; i++)
		{
			var formFieldValue = $('gcId_'+gcArray[i]).value
			if(!isNumeric(formFieldValue))
			{
				status = false	
				message= 'Quantity must be a numbers only \n'
			}//end IF
		}//end loop
		
		//If the status is FALSE, then show the message
		if(!status)
		{
			alert(message)	
		}
		
		//Return the status
		return status
		
	}
	catch(e)
	{
		alert(e)	
	}
	
}//end function
