//var LoadFileRequest = createRequest();
$.ajaxSetup({cache:false});
/*function Clear()
{
	var s=document.getElementById('Arear');
	s.innerHTML='';
}*/
/*function createRequest() {
	 var request=null;
	 try {
	  request = new XMLHttpRequest();
	 } catch (trymicrosoft) {
	   try {
		request = new ActiveXObject("Msxml2.XMLHTTP");
	   } catch (othermicrosoft) {
		 try {
		  request = new ActiveXObject("Microsoft.XMLHTTP");
		 } catch (failed) {
		  request = null;
		 }
	   }
	 }
	
	 if (request == null) {
	   alert("Error creating request object!");
	 } else {
		return request;	
	 }
}
function LoadFile(FileName)
{	
	if(LoadFileRequest!=null)
	{
		LoadFileRequest.open("GET",FileName,true);
		LoadFileRequest.onreadystatechange = update;
		LoadFileRequest.send(null);
	}
	else
	{
		alert("Error!");
	}
}
function update()
{
	var s;
	//alert(LoadFileRequest.responseText);
	if (LoadFileRequest.readyState==4)
	{
		if(LoadFileRequest.status == 200)
		{
			//alert(LoadFileRequest.responseText);
			s=document.getElementById('Arear');
			s.innerHTML=LoadFileRequest.responseText;
		}
	}
}*/
function News(id,page)
{
	window.location = "news.php?NewsID="+id+'&NewsPage='+page;//LoadFile('news.php?NewsID='+id+'&NewsPage='+page);
}

function Org(lang)
{
	if(lang == 1)		window.location = "orgC.php";//LoadFile('./orgC.php');
	if(lang == 2)		window.location = "orgE.php";//LoadFile('./orgE.php');
}

function Agenda()
{
	window.location = "agenda.php";//LoadFile('./agenda.html');
}

function CallForPaper(lang)
{
	if(lang == 1)		window.location = "paperC.php";//LoadFile('./paperC.php');
	if(lang == 2)		window.location = "paperE.php";//LoadFile('./paperE.php');
}

function KeynoteSpeech()
{
	window.location = "KeynoteSpeech.php";//LoadFile('./KeynoteSpeech.html');
}

function contact(lang)
{
	if(lang == 1)		window.location = "contactC.php";//LoadFile('./contactC.php');
	if(lang == 2)		window.location = "contactE.php";//LoadFile('./contactE.php');
}

function PaperReview()
{
	window.location = "PaperReview.php";//LoadFile('./PaperReview.php');
}

function register()
{
	window.location = "registration.php";//LoadFile('./register.php');
}

function traffic()
{
	window.location = "traffic.php";//LoadFile('./traffic.html');
}

function PaperSubmit()
{
	//window.location = "PaperSubmit.php";//$('#Arear').load('PaperSubmit.php');
	window.location = "EditPaper.php";
}

function Admin()
{
	window.location = "Admin.php";
}
