//
// @ Lusoned Webconcepts 2010
//
function loadXMLDoc(dname){
	if (window.XMLHttpRequest){
		xhttp=new XMLHttpRequest();
	}else{
		xhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xhttp.open("GET",dname,false);
	xhttp.send("");
	return xhttp.responseXML;
}
//
function write_text(n){
	xmlDoc=loadXMLDoc(n);
	var x = xmlDoc.getElementsByTagName("link")[0];
	var y = x.childNodes[0];

	var b = y.nodeValue;
	
	return b;
}
//
function write_div(n){
window.location = write_text(n);

}
