	// When DOM loads, init the page.
		$( myForm );
 
		/*// Init the page.
		function InitPage(){
			var jInput = $( ":input" );
 
			// Bind the onchange event of the inputs to flag
			// the inputs as being "dirty".
			
			jInput.change(
				function( objEvent ){
					// Add dirtry flag to the input in
					// question (whose value has changed).
					alert('page changed');
					
					///$( this ).addClass( "dirty" );
				}
				);
		}*/
		
		function myForm(){
		
$("#invoiceNumber").change(function() { //if the value of these elements change, do this
	var id1 = $("#invoiceNumber").val();
	//var id2 = $("#id2").val();
	$.post("postInvoice.cfm", $("#invoiceNumber"), function(data) 
		{
			$("#elementCheck1").html(data); 
		});
	return false;
});



$("#invoiceDate").change(function() { //if the value of these elements change, do this
	var id1 = $("#invoiceDate").val();
	//var id2 = $("#id2").val();
	
	$.post("postInvoice.cfm", $("#invoiceDate"), function(data) 
		{
			$("#elementCheck").html(data); 
		});
	return false;
});

/*
$("#invoiceDay").change(function() { //if the value of these elements change, do this
	var id1 = $("#invoiceDay").val();
	//var id2 = $("#id2").val();
	
	$.post("postInvoice.cfm", $("#invoiceDay"), function(data) 
		{
			$("#elementCheck").html(data); 
		});
	return false;
});


$("#invoiceMonth").change(function() { //if the value of these elements change, do this
	var id1 = $("#invoiceMonth").val();
	//var id2 = $("#id2").val();
	
	$.post("postInvoice.cfm", $("#invoiceMonth"), function(data) 
		{
			$("#elementCheck").html(data); 
		});
	return false;
});

$("#invoiceYear").change(function() { //if the value of these elements change, do this
	var id1 = $("#invoiceYear").val();
	//var id2 = $("#id2").val();
	
	$.post("postInvoice.cfm", $("#invoiceYear"), function(data) 
		{
			$("#elementCheck").html(data); 
		});
	return false;
});*/

}
