var xmlHttp;
//alert(navigator.appName);
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
function startRequest(action){
	alert(action)
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("GET", action, true);
xmlHttp.send(null);
}
function handleStateChange() {
if((xmlHttp.readyState == 4) && (xmlHttp.status == 200)){
	//alert("The server replied with: " + xmlHttp.responseText);
	document.getElementById("displayResponse").innerHTML = xmlHttp.responsetext;
	
}
}
///////
var newWindow;
function subWindow(eventvalue,hei,wid) 
{
	var attr = "HEIGHT="+hei+",WIDTH="+wid+"";
	if (!newWindow || newWindow.closed){
		newWindow = window.open(eventvalue,"subwindow",attr)
	} else {
	newWindow.location.href=eventvalue
	newWindow.focus()
	}
} 


function del_warning(eventpath){
		var c=confirm("Are you sure delete this!?")
		if (c) {
			location.href = eventpath
		}
		else{location.reload}
}


//show upload image
function showimage(name,path){
	document.getElementById(name).src=path;
}
