var ajax_value_file=ajax_folder+"GetAjaxValue.php?ajax_type=";

var cookie_file=ajax_value_file+"getCookie";

function requestCookieDetail(name,value,expiredays,filename)
{
	var url = cookie_file+"&cookie_name="+name+"&cookie_value="+value+"&cookie_expiredays="+expiredays+"&filename="+filename;
	/*
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString());	*/
	
	http_cookie.open("GET", url , true);	
	http_cookie.onreadystatechange = handleCookieResponse;			
	http_cookie.send(null);	
}
function handleCookieResponse() 
{		
	
	if (http_cookie.readyState == 4) 
	{	
		if(http_cookie.status==200) 
		{
			var results=http_cookie.responseText;
			if(results!="")
			{	
				//window.location.href = results;
				window.location=results;
				//document.getElementById('file_url').innerHTML = results;
			}		
		}
  	}
}

function getHTTPObject() 
{
	var xmlhttp; 
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		if (!xmlhttp)
		{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
	}
	return xmlhttp;
}

var http_cookie = getHTTPObject();