function GetIEversion()
{
  var ua = window.navigator.userAgent;
  var msie = ua.indexOf ("MSIE");

  if ( msie > 0 )      // If Internet Explorer, return version number
     return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )));
  else                 // If another browser, return 0
     return 0;
}

//make sure no frames...
if (top.location != location)
	top.location.href = document.location.href;

function Redirect(url)
{
	window.location=url;
}

function getXMLHTTP()
{
	try	
	{
		request_o = new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(ex)
	{
		var notIECompatibleXMLHTTP=true;	//either this is not IE, or it is a version of IE which does not support XMLHTTP
	}
	
	if(notIECompatibleXMLHTTP==true)
	{
		try
		{
			request_o = new XMLHttpRequest();
		}
		catch(ex)
		{
			request_o = false;	//we can't use AJAX because this browser is not compatible.
		}
	}
	return request_o;
}
var delim="|";		//delimiter
var XMLHTTP_Func=null;		//current function in process

//init async object
var XMLHTTP_o=null;
if(XMLHTTP_o=getXMLHTTP())
{
	//ok
}
else
{
	alert('Το πρόγραμμα περιήγησης του διαδικτύου που χρησιμοποιείτε δεν είναι συμβατό...');
}

//async call
function AKP_XMLHTTP(func,url,vars,method)
{
	if (method=="GET")
		url=url+"&nocache="+Math.random();
	XMLHTTP_Func=func;
	XMLHTTP_o.open(method,url,"true");
	if (method=="POST")
		XMLHTTP_o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
	XMLHTTP_o.onreadystatechange = AKP_CallBack;
	if (method=="POST")
		XMLHTTP_o.send(vars+"&nocache="+Math.random());
	else
		XMLHTTP_o.send(null);
}