
		function JoinTheClub()
		{
			var ajaxRequest;  // The variable that makes Ajax possible!
			
			
			
			var _err = 0;
		
			
	
				//$("#join_form").fadeOut("fast");
				document.getElementById("join_form").style.display = "none";
			
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4){
					
						alert(ajaxRequest.responseText);
						//AccountGrabPersonal('view');
						$("#join_thanks").fadeIn("slow");
						setTimeout("$.facebox.close();",3500);
					}
				}
				
				var q = "?action=join";
				q += "&first_name="+escape(encodeURI(document.getElementById("first_name").value));
				q += "&last_name="+escape(encodeURI(document.getElementById("last_name").value));
				q += "&email="+escape(encodeURI(document.getElementById("email").value));
				q += "&address="+escape(encodeURI(document.getElementById("address").value));
				q += "&city="+escape(encodeURI(document.getElementById("city").value));
				q += "&state="+escape(encodeURI(document.getElementById("state").value));
				q += "&zip="+escape(encodeURI(document.getElementById("zip").value));
				
				if (document.getElementById("birth_mm").value!="" && 
					document.getElementById("birth_dd").value!="" &&
					document.getElementById("birth_yyyy").value!="")
				{
					q += "&birth_date="+document.getElementById("birth_yyyy").value+"-"+document.getElementById("birth_mm").value+"-"+document.getElementById("birth_dd").value;
				}
				
				if (document.getElementById("anniv_mm").value!="" && 
					document.getElementById("anniv_dd").value!="" &&
					document.getElementById("anniv_yyyy").value!="")
				{
					q += "&anniv_date="+document.getElementById("anniv_yyyy").value+"-"+document.getElementById("anniv_mm").value+"-"+document.getElementById("anniv_dd").value;
				}
				
				if (document.getElementById("spec_mm").value!="" && 
					document.getElementById("spec_dd").value!="" &&
					document.getElementById("spec_yyyy").value!="")
				{
					q += "&spec_date="+document.getElementById("spec_yyyy").value+"-"+document.getElementById("spec_mm").value+"-"+document.getElementById("spec_dd").value;
				}
				
				q += "&special_events=y";
				q += "&live_music=y";
				q += "&cooking_classes=y";
				
				q += "&special_offers=y";
				q += "&for_contest="+document.getElementById("for_contest").value;
				
				
				ajaxRequest.open("GET", "/global/ajax/join_club_firenze.php" + q, true);
				ajaxRequest.send(null);
		}
		
		function submitGiftCardRequest(fullName, address, city, state, zip)
		{
			alert("Variables Submitted: "+fullName+","+address+","+city+","+state+","+zip);
		}		

		
		function openReserveWindow(url)
		{
			//alert("clicked");
			//mywindow = window.open(url,  "reserveration","location=1,status=1,scrollbars=1,  width=800,height=600");
		}
		
		
		function submitContact(inquiryType, firstName, lastName, email, phone, message,qty)
		{
			
			var ajaxRequest;  // The variable that makes Ajax possible!
			
			
			
			var _err = 0;
			
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4){
						//AccountGrabPersonal('view');
						//alert(ajaxRequest.responseText);
						//$("#contact_thanks").fadeIn("slow");
						//setTimeout("$.facebox.close();",3500);
					}
				}
				
				var q = "?action=contact";
				q += "&to_contact="+escape(encodeURI(inquiryType));
				q += "&first_name="+escape(encodeURI(firstName));
				q += "&last_name="+escape(encodeURI(lastName));
				q += "&email="+escape(encodeURI(email));
				q += "&phone="+escape(encodeURI(phone));
				q += "&message="+escape(encodeURI(message));
				q += "&qty="+escape(encodeURI(qty));
				
				
				ajaxRequest.open("GET", "/global/ajax/contact.php" + q, true);
				ajaxRequest.send(null);
			
		}
		
		
		
		
		function emailCalendarEvent(your_name, your_email,friend_name,friend_email,event_title, event_date, event_time,event_desc,msg)
		{
			var ajaxRequest; 
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4){
						//alert(ajaxRequest.responseText);
					}
				}
				
				var q = "?action=tell";
				q += "&your_name="+escape(encodeURI(your_name));
				q += "&your_email="+escape(encodeURI(your_email));
				q += "&friend_name="+escape(encodeURI(friend_name));
				q += "&friend_email="+escape(encodeURI(friend_email));
				q += "&event_title="+escape(encodeURI(event_title));
				q += "&event_date="+escape(encodeURI(event_date));
				q += "&event_time="+escape(encodeURI(event_time));
				q += "&event_desc="+escape(encodeURI(event_desc));
				q += "&msg="+escape(encodeURI(msg));
				
				
				ajaxRequest.open("GET", "/global/ajax/event_tell.php" + q, true);
				ajaxRequest.send(null);
		}
	

		
		
		function clubFirenzeApp(firstName, lastName, address, city, state, zip, email, birthMonth, birthDate, birthYear, annMonth, annDate, annYear, specMonth, specDate, specYear)
		{
				var ajaxRequest; 
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4)
					{
						//alert(ajaxRequest.responseText);
					}
				}
				
				var q = "?action=join";
				q += "&first_name="+escape(encodeURI(firstName));
				q += "&last_name="+escape(encodeURI(lastName));
				q += "&email="+escape(encodeURI(email));
				q += "&address="+escape(encodeURI(address));
				q += "&city="+escape(encodeURI(city));
				q += "&state="+escape(encodeURI(state));
				q += "&zip="+escape(encodeURI(zip));
				
				if (birthYear!="" && 
					birthMonth!="" &&
					birthDate!="")
				{
					q += "&birth_date="+birthYear+"-"+birthMonth+"-"+birthDate;
				}
				
				if (annYear!="" && 
					annMonth!="" &&
					annDate!="")
				{
					q += "&anniv_date="+annYear+"-"+annMonth+"-"+annDate;
				}
				
				if (specYear!="" && 
					specMonth!="" &&
					specDate!="")
				{
					q += "&spec_date="+specYear+"-"+specMonth+"-"+specDate;
				}
				
					/*q += "&special_events=y";
					q += "&live_music=y";
					q += "&cooking_classes=y";
					q += "&special_offers=y";
					q += "&for_contest="+document.getElementById("for_contest").value;*/
				
				
				ajaxRequest.open("GET", "/global/ajax/join_club_firenze.php" + q, true);
				ajaxRequest.send(null);
				//alert("Variables Submitted: "+firstName+","+lastName+","+address+","+city+","+state+","+zip+","+email+","+birthMonth+","+birthDate+","+birthYear+","+annMonth+","+annDate+","+annYear+","+specMonth+","+specDate+","+specYear);
		}


		function ContactUs()
		{
			var ajaxRequest;  // The variable that makes Ajax possible!
			
			
			
			var _err = 0;
			if (document.getElementById("to").value=="") 
			{
				_err++;
				document.getElementById("to_label").style.color = "red";
				document.getElementById("to").style.color = "red";
				document.getElementById("to").style.border = "1px solid red";
			} else
			{
				document.getElementById("to_label").style.color = "black";
				document.getElementById("to").style.color = "black";
				document.getElementById("to").style.border = "1px solid #D5A765";
			}
			
			
			if (document.getElementById("first_name").value=="")
			{
				_err++;
				document.getElementById("first_name_label").style.color = "red";
				document.getElementById("first_name").style.color = "red";
				document.getElementById("first_name").style.border = "1px solid red";
			} else 
			{
				document.getElementById("first_name_label").style.color = "black";
				document.getElementById("first_name").style.color = "black";
				document.getElementById("first_name").style.border = "1px solid #D5A765";
			}
			
			
			if (document.getElementById("last_name").value=="") 
			{
				_err++;
				document.getElementById("last_name_label").style.color = "red";
				document.getElementById("last_name").style.color = "red";
				document.getElementById("last_name").style.border = "1px solid red";
			}else 
			{
				document.getElementById("last_name_label").style.color = "black";
				document.getElementById("last_name").style.color = "black";
				document.getElementById("last_name").style.border = "1px solid #D5A765";
			}
			
			
			if (document.getElementById("email").value=="") 
			{
				_err++;
				document.getElementById("email_label").style.color = "red";
				document.getElementById("email").style.color = "red";
				document.getElementById("email").style.border = "1px solid red";
			}else 
			{
				document.getElementById("email_label").style.color = "black";
				document.getElementById("email").style.color = "black";
				document.getElementById("email").style.border = "1px solid #D5A765";
			}
			
					
			if (_err>0)
			{
				document.getElementById("form_info").style.display = "";
				return;
			} else 
			{
				//$("#join_form").fadeOut("fast");
				document.getElementById("contact_form").style.display = "none";
			
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4){
						//AccountGrabPersonal('view');
						//alert(ajaxRequest.responseText);
						$("#contact_thanks").fadeIn("slow");
						setTimeout("$.facebox.close();",3500);
					}
				}
				
				var q = "?action=contact";
				q += "&to_contact="+escape(encodeURI(document.getElementById("to").value));
				q += "&first_name="+escape(encodeURI(document.getElementById("first_name").value));
				q += "&last_name="+escape(encodeURI(document.getElementById("last_name").value));
				q += "&email="+escape(encodeURI(document.getElementById("email").value));
	q += "&phone="+escape(encodeURI(document.getElementById("phone").value));
				q += "&message="+escape(encodeURI(document.getElementById("message").value));
				
				
				
				
				ajaxRequest.open("GET", "/global/ajax/contact.php" + q, true);
				ajaxRequest.send(null);
			}
		}
		
		
		
		function openReserveWindow(rDate,rTime,rGuests)
		{
			var url = "http://www.opentable.com/opentables.aspx?t=Single&rid=28264&m=6&p=1&d=6/19/2009+7:00:00+PM";
			window.open (url,"mywindow","menubar=1,resizable=1,width=350,height=250"); 
		}
		
		
		
		function clickyLog(title, href)
		{
			var ajaxRequest; 
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4)
					{
					//alert(ajaxRequest.responseText);
					}
				}
				
				var q = "?action=do_log";
				q += "&t="+escape(encodeURI(title));
				q += "&h="+escape(encodeURI(href));
				
				ajaxRequest.open("GET", "/global/ajax/clicky_log.php" + q, true);
				ajaxRequest.send(null);
		}
		
		
		
		
		function submitCookbookPreOrder(contact_to,first_name, last_name, email, address, city, state, zip, quantity)
		{
				var ajaxRequest;  // The variable that makes Ajax possible!
			
			
			
			var _err = 0;
			
				try{
					// Opera 8.0+, Firefox, Safari
					ajaxRequest = new XMLHttpRequest();
				} catch (e){
					// Internet Explorer Browsers
					try{
						ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try{
							ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e){
							// Something went wrong
							alert("Your browser broke!");
							return false;
						}
					}
				}
				
				// Create a function that will receive data sent from the server
				ajaxRequest.onreadystatechange = function(){
					if(ajaxRequest.readyState == 4){
						//AccountGrabPersonal('view');
						//alert(ajaxRequest.responseText);
						//$("#contact_thanks").fadeIn("slow");
						//setTimeout("$.facebox.close();",3500);
					}
				}
				
				var q = "?action=pre_order";
				q += "&first_name="+escape(encodeURI(first_name));
				q += "&last_name="+escape(encodeURI(last_name));
				q += "&email="+escape(encodeURI(email));
				q += "&address="+escape(encodeURI(address));
				q += "&city="+escape(encodeURI(city));
				q += "&state="+escape(encodeURI(state));
				q += "&zip="+escape(encodeURI(zip));
				q += "&quantity="+escape(encodeURI(quantity));
				
				
				ajaxRequest.open("GET", "/global/ajax/pre_order.php" + q, true);
				ajaxRequest.send(null);
		}