/*
function createRequestObject(){
	var http; 
	try{
		// Firefox, Opera, Safari
		http = new XMLHttpRequest();
	}catch(e){
		// Internet Explorer
		try {
			//For IE 6
			http = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try {
				//For IE 5
				http = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				alert('Your browser is not IE 5 or higher, or Firefox or Safari or Opera');
			}
		}
	}
	return http;
}

//Make the XMLHttpRequest Object
var http = createRequestObject();

function sendRequest(method, url, id){
	if(method == 'get' || method == 'GET'){
		alert(url);
		http.open(method, url, true);
		http.onreadystatechange = handleResponse;
		http.send(null);
	}else if(method == 'post' || method == 'POST'){
		alert(url+"?id="+escape(id));
		http.open(method, url+"?id="+escape(id), true);
		http.onreadystatechange = handleResponse;
		http.send(null);
	}
}
function handleResponse(){
	if(http.readyState == 4 && http.status == 200){
		var response = http.responseText;
		alert(response);
		if(response){
			document.getElementById("product_content").innerHTML = response;
		}
	}
}
*/
function iframe_request(product_id, page_id, lang){
	if(product_id != "none")
		document.getElementById(page_id).src="data/web_content/"+lang+"/"+product_id+lang+".jsp";
	else
		document.getElementById(page_id).src="data/web_content/none.jsp";
}

function iframe_refresh(product_id, lang){
	if(product_id != "none")
		window.location = "data/web_content/"+lang+"/"+product_id+lang+".jsp";
	else
		window.location = "data/web_content/"+lang+"/"+product_id+lang+".jsp";
}



