var xmlHttpPDF

function getPDF()
{ 
	xmlHttpPDF=GetXmlHttpObjectPDF()
	if (xmlHttpPDF==null)
 	{
 		alert ("Browser does not support HTTP Request")
 		return
 	}
		var url=window.location.protocol + "//" + window.location.hostname + "/annons/admin/PDFarchive.php"
		xmlHttpPDF.onreadystatechange=stateChanged_PDF
		xmlHttpPDF.open("GET",url,true)
		xmlHttpPDF.send(null)
}

function stateChanged_PDF() 
{ 
	if (xmlHttpPDF.readyState==4 || xmlHttpPDF.readyState=="complete")
	{ 
 		if (document.getElementById || document.all) {
  			if (document.getElementById) {
  				obj=document.getElementById("pdfarkiv");
  			}
  			else if (document.all) {
  				obj=document.all["pdfarkiv"];
  				alert("all: "+obj);
  			}
			obj.innerHTML=xmlHttpPDF.responseText;
		} 
 	} 
}

function GetXmlHttpObjectPDF()
{
	var xmlHttpPDF=null;
	try
 	{
 		// Firefox, Opera 8.0+, Safari
 		xmlHttpPDF=new XMLHttpRequest();
 	}
	catch (e)
 	{
 		//Internet Explorer
 		try
  		{
  			xmlHttpPDF=new ActiveXObject("Msxml2.XMLHTTP");
  		}
 		catch (e)
  		{
  			xmlHttpPDF=new ActiveXObject("Microsoft.XMLHTTP");
  		}
 	}
	return xmlHttpPDF;
}