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 showtab(menuid)  {
	try {
		http.open('GET', '../iphone/' + menuid + '.asp');
		http.onreadystatechange = handleResponseText;
		http.send(null);
	}
	catch(e) {}
	finally {}
}

function handleResponseText() {
	try {
		if ((http.readyState == 4) && (http.status == 200)) {
			document.getElementById('IMENU').innerHTML = http.responseText;
		}
	}
	catch(e) {
		alert("An error occured");
	}
	finally {}
}