<!--
var http = createRequestObject();
function createRequestObject() {
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
	}
	catch(e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(f) {
			xmlhttp = null;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest != "undefined") {
		xmlhttp = new XMLHttpRequest();
	}
	return  xmlhttp;
}

function hiderecipe() {
	document.getElementById('RECIPE').innerHTML = "";	
}

function getRecipe(idnum)  {
	var dvelement = document.getElementById('RECIPE');
	dvelement.innerHTML = "<img src='../images/progressimgred.gif'>";
	try {
		http.open('GET', 'getmixrecipe.asp?id=' + idnum);
		http.onreadystatechange = handleResponseText;
		http.send(null);
	}
	catch(e) {}
	finally {}
}

function handleResponseText() {
	try {
		if ((http.readyState == 4) && (http.status == 200)) {
			document.getElementById('RECIPE').innerHTML = http.responseText;
		}
	}
	catch(e) {
		alert("An error occured");
	}
	finally {}
}