function sendIt()
{	
	if (document.frmDialog.PromoCode.value == 'CM07') 
	{
	document.frmDialog.amount.value = (document.frmDialog.quantity_cork.value * 50) + (document.frmDialog.quantity_cru.value * 100);
	}
	else
	{
	document.frmDialog.amount.value = (document.frmDialog.quantity_cork.value * 75) + (document.frmDialog.quantity_cru.value * 125);
	}	
	 
	document.frmDialog.action = "https://www.paypal.com/cgi-bin/webscr"
	document.frmDialog.submit();

}

function checkFields() {
		missinginfo = "";
		if (document.form.Department.selectedIndex == 0)
		{
		missinginfo += "\n     -  Department";
		}
		
		if (document.form.Name.value == "") {
		missinginfo += "\n     -  Name";
		}
		
		if ((document.form.Email.value == "") || 
		(document.form.Email.value.indexOf('@') == -1) || 
		(document.form.Email.value.indexOf('.') == -1)) {
		missinginfo += "\n     -  E-mail address";
		}
		
		if(document.form.Comments.value == "") {
		missinginfo += "\n     -  Comments";
		}
		
		if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
		}
		else return true;
		}