	<!--
		function createRequestObject() 
		{
		try {
			  
			//Moz supports XMLHttpRequest. IE uses ActiveX. 
			//browser detction is bad. object detection works for any browser
			var ro;
			ro = window.XMLHttpRequest?new XMLHttpRequest():
  					new ActiveXObject("Microsoft.XMLHTTP");
			  return ro;	
			}
			catch (e) {
			// browser doesn't support ajax. handle however you want
			}			
		}
		

		var http = createRequestObject();

		function sndReq(action) 
		{
			// Open an HTTP connection to the server
			http.open('post', 'ovulation-proc.asp?action='+action);
			
			// Set the content type for POSTed form data (omit for GET, HEAD, etc). 
			http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
			
			// Handle the response when the ReadyStateChange event fires,
			// i.e. when the XMLHttpRequest object changes state
			http.onreadystatechange = handleResponse;
			
			
			if(action.indexOf('_' != -1)) 
				{
				inputid = action.split('_');
				}
			
			// Send the data stream over HTTP to the host. 
			http.send(inputid[0] + "=" + document.getElementById(inputid[0]).value + "&" + inputid[1] + "=" + document.getElementById(inputid[1]).value + "&" + inputid[2] + "=" + document.getElementById(inputid[2]).value + "&" + inputid[3] + "=" + document.getElementById(inputid[3]).value)
		}

		function handleResponse() 
		{
			// if the readyState code is 4 (Completed)
			// and http status is 200 (OK) we go ahead and get the responseText
			// other readyState codes:
			// 0=Uninitialised 1=Loading 2=Loaded 3=Interactive
			if ((http.readyState == 4) && (http.status == 200)){
				var response = http.responseText;
				var update = new Array();

				if(response.indexOf('|' != -1)) {
					update = response.split('|');
					document.getElementById(update[0]).innerHTML = update[1];
				}
			}
		}
		
		function ValidateForm()
		{
			if (document.getElementById("date").day.value==""){alert('Please enter a day'); return false}
			if (document.getElementById("date").month.value==""){alert('Please enter a month'); return false}
			if (document.getElementById("date").year.value==""){alert('Please enter a year'); return false}
			if (document.getElementById("date").cycle.value==""){alert('Please enter the length of your cycle'); return false}
		}
			
	-->
