
function isDate(dtStr){
return true;
}

var xmlhttpShowLeasing;
var xmlhttpShowReduceri;
var xmlhttpShowStareVehicul;
var xmlhttpShowUtilizare;
var xmlhttpShowDataStart;
var xmlhttpShowDurata;
var xmlhttpShowVarstaCaen;
var xmlhttpShowTipVehicul;
var xmlhttpShowCaracteristici;
var xmlhttpShowMalus;
var xmlhttpShowOferte;
var xmlhttpShowJudete;
var xmlhttpShowLocalitate;
var xmlhttpShowLoco;
var xmlhttpShowMarca;
var xmlhttpShowPermis;
var xmlhttpSaveDataPermis;
var xmlhttpShowClasaMalus;
var xmlhttpshowCalculNou;
var xmlhttpSendParereaMea;
var xmlhttpShowPutere;



function sendparereamea(nume, email, mesaj, tip, trm) 
{
	xmlhttpSendParereaMea=GetXmlHttpObject();

	if(xmlhttpSendParereaMea==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="sendparereamea.php";
	url=url+"?num="+nume;
	url=url+"&em="+email;
	url=url+"&mes="+mesaj;
	url=url+"&trm="+trm;
	url=url+"&tip="+tip;
	url=url+"&sid="+Math.random();
	xmlhttpSendParereaMea.onreadystatechange=stateChangedSendParereaMea;
	xmlhttpSendParereaMea.open("GET",url,true);
	xmlhttpSendParereaMea.send(null);
}

function stateChangedSendParereaMea()
{
	if (xmlhttpSendParereaMea.readyState==4)
	{
		document.getElementById("my-content").innerHTML=xmlhttpSendParereaMea.responseText;
		document.getElementById("pnume").innerHTML="";
		document.getElementById("pmail").innerHTML="";
		document.getElementById("pmesaj").innerHTML="";
	
	}
}

function showLeasing(str)
{
	xmlhttpShowLeasing=GetXmlHttpObject();

	if(xmlhttpShowLeasing==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="getLeasing.php";
	url=url+"?tip="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowLeasing.onreadystatechange=stateChangedShowLeasing;
	xmlhttpShowLeasing.open("GET",url,true);
	xmlhttpShowLeasing.send(null);
}

function stateChangedShowLeasing()
{
	if (xmlhttpShowLeasing.readyState==4)
	{
		document.getElementById("leasing").innerHTML=xmlhttpShowLeasing.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
	}
}

function showReduceri(tip, str)
{
	
	xmlhttpShowReduceri=GetXmlHttpObject();
	if(xmlhttpShowReduceri==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="getReduceri.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowReduceri.onreadystatechange=stateChangedShowReduceri;
	xmlhttpShowReduceri.open("GET",url,true);
	xmlhttpShowReduceri.send(null);
}

function stateChangedShowReduceri()
{
	if (xmlhttpShowReduceri.readyState==4)
	{
		document.getElementById("reduceri").innerHTML=xmlhttpShowReduceri.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 20);
		//window.scrollBy(0,50); // horizontal and vertical scroll increments
		

	}
}

function showStareVehicul(tip, str)
{
	
	xmlhttpStareVehicul=GetXmlHttpObject();

	if(xmlhttpStareVehicul==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	//$('html, body').animate({
    //         scrollTop: $(".bau").offset().top
    //     }, 2000);
	var url="getStareVehicul.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpStareVehicul.onreadystatechange=stateChangedStareVehicul;
	xmlhttpStareVehicul.open("GET",url,true);
	xmlhttpStareVehicul.send(null);
}

function stateChangedStareVehicul()
{
	if (xmlhttpStareVehicul.readyState==4)
	{
		document.getElementById("stareVehicul").innerHTML=xmlhttpStareVehicul.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0,100);
		//$("div.selectii").scrollTop(300);
		
	}
}

function showUtilizare(tip, str)
{
	xmlhttpShowUtilizare=GetXmlHttpObject();
	if(xmlhttpShowUtilizare==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	//$('html, body').animate({
     //        scrollTop: $(".bau").offset().top
     //    }, 2000);
	var url="getUtilizare.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowUtilizare.onreadystatechange=stateChangedShowUtilizare;
	xmlhttpShowUtilizare.open("GET",url,true);
	xmlhttpShowUtilizare.send(null);
}

function stateChangedShowUtilizare()
{
	if (xmlhttpShowUtilizare.readyState==4)
	{
		document.getElementById("utilizare").innerHTML=xmlhttpShowUtilizare.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0,190);
		  
	}
}

function showPutere(tip, str)
{
	xmlhttpShowPutere=GetXmlHttpObject();
	if(xmlhttpShowPutere==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="getPutere.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowPutere.onreadystatechange=stateChangedShowPutere;
	xmlhttpShowPutere.open("GET",url,true);
	xmlhttpShowPutere.send(null);
}

function stateChangedShowPutere()
{
	if (xmlhttpShowPutere.readyState==4)
	{
		document.getElementById("putere").innerHTML=xmlhttpShowPutere.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0,500);
		  
	}
}

function showDataStart(tip, str)
{
	xmlhttpShowDataStart=GetXmlHttpObject();
	if(xmlhttpShowDataStart==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	//$('html, body').animate({
    //         scrollTop: $(".bau").offset().top
     //    }, 2000);
	var url="getDataStart.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowDataStart.onreadystatechange=stateChangedShowDataStart;
	xmlhttpShowDataStart.open("GET",url,true);
	xmlhttpShowDataStart.send(null);
}

function stateChangedShowDataStart()
{
	if (xmlhttpShowDataStart.readyState==4)
	{
		document.getElementById("dataStart").innerHTML=xmlhttpShowDataStart.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 340);
	}
}

function showDurata()
{
	xmlhttpShowDurata=GetXmlHttpObject();
	if(xmlhttpShowDurata==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	// $('html, body').animate({
     //        scrollTop: $(".bau").offset().top
     //    }, 2000);
	var data = document.getElementById("dStart").value;
	if (isDate(data)==false)
		return;
	var url="getDurata.php";
	url=url+"?dataStart="+data;
	url=url+"&sid="+Math.random();
	xmlhttpShowDurata.onreadystatechange=stateChangedShowDurata;
	xmlhttpShowDurata.open("GET",url,true);
	xmlhttpShowDurata.send(null);
}

function stateChangedShowDurata()
{
	if (xmlhttpShowDurata.readyState==4)
	{
		document.getElementById("durata").innerHTML=xmlhttpShowDurata.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		//window.scroll(0, 380);
		 
	}
}

function showVarstaCaen(tip, str)
{
	xmlhttpShowVarstaCaen=GetXmlHttpObject();
	if(xmlhttpShowVarstaCaen==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	//$('html, body').animate({
    //         scrollTop: $(".bau").offset().top
     //    }, 2000);
	var url="getVarstaCaen.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowVarstaCaen.onreadystatechange=stateChangedShowVarstaCaen;
	xmlhttpShowVarstaCaen.open("GET",url,true);
	xmlhttpShowVarstaCaen.send(null);
}

function stateChangedShowVarstaCaen()
{
	if (xmlhttpShowVarstaCaen.readyState==4)
	{
		document.getElementById("varstacaen").innerHTML=xmlhttpShowVarstaCaen.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 390);
		  
	}
}

function showTipVehicul(tip, str)
{
	xmlhttpTipVehicul=GetXmlHttpObject();

	if(xmlhttpTipVehicul==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	// $('html, body').animate({
     //        scrollTop: $(".bau").offset().top
     //    }, 2000);
	var url="getTipVehicul.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpTipVehicul.onreadystatechange=stateChangedTipVehicul;
	xmlhttpTipVehicul.open("GET",url,true);
	xmlhttpTipVehicul.send(null);
}

function stateChangedTipVehicul()
{
	if (xmlhttpTipVehicul.readyState==4)
	{
		document.getElementById("tipVehicul").innerHTML=xmlhttpTipVehicul.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 430);
		 
	}
}

function showCaracteristici(tip, str)
{
	xmlhttpShowCaracteristici=GetXmlHttpObject();
	if(xmlhttpShowCaracteristici==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	 //$('html, body').animate({
     //        scrollTop: $(".bau").offset().top
      //   }, 3000);
	var url="getCaracteristici.php";
	url=url+"?tip="+tip;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowCaracteristici.onreadystatechange=stateChangedShowCaracteristici;
	xmlhttpShowCaracteristici.open("GET",url,true);
	xmlhttpShowCaracteristici.send(null);
}

function stateChangedShowCaracteristici()
{
	if (xmlhttpShowCaracteristici.readyState==4)
	{
		document.getElementById("caracteristici").innerHTML=xmlhttpShowCaracteristici.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 470);
		 
	}
}
function showMalus(tip, id)
{
	xmlhttpShowMalus=GetXmlHttpObject();
	if(xmlhttpShowMalus==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	// $('html, body').animate({
    //         scrollTop: $(".bau").offset().top
    //     }, 3000);
	var url="getMalus.php";
	url=url+"?tip="+tip;
	url=url+"&id="+id;
	url=url+"&sid="+Math.random();
	xmlhttpShowMalus.onreadystatechange=stateChangedShowMalus;
	xmlhttpShowMalus.open("GET",url,true);
	xmlhttpShowMalus.send(null);
}

function stateChangedShowMalus()
{
	if (xmlhttpShowMalus.readyState==4)
	{
		document.getElementById("malus").innerHTML=xmlhttpShowMalus.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 600);
	}
}


function showClasaMalus(tip, id)
{
	xmlhttpShowClasaMalus=GetXmlHttpObject();
	if(xmlhttpShowClasaMalus==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	 //$('html, body').animate({
     //        scrollTop: $(".bau").offset().top
     //    }, 3000);
	var url="getClasaMalus.php";
	url=url+"?tip="+tip;
	url=url+"&id="+id;
	url=url+"&sid="+Math.random();
	xmlhttpShowClasaMalus.onreadystatechange=stateChangedShowClasaMalus;
	xmlhttpShowClasaMalus.open("GET",url,true);
	xmlhttpShowClasaMalus.send(null);
}

function stateChangedShowClasaMalus()
{
	if (xmlhttpShowClasaMalus.readyState==4)
	{
		document.getElementById("clasamalus").innerHTML=xmlhttpShowClasaMalus.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 520);
		 
	}
}


function showOferte(cor, tip, of, str)
{
	xmlhttpShowOferte=GetXmlHttpObject();
	if(xmlhttpShowOferte==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	 //$('html, body').animate({
     //        scrollTop: $(".bau").offset().top
     //    }, 3000);
	var url="getOferte.php";
	url=url+"?cor="+cor;
	url=url+"&tip="+tip;
	url=url+"&of="+of;
	url=url+"&id="+str;
	url=url+"&sid="+Math.random();
	xmlhttpShowOferte.onreadystatechange=stateChangedShowOferte;
	xmlhttpShowOferte.open("GET",url,true);
	xmlhttpShowOferte.send(null);
}

function stateChangedShowOferte()
{
	if (xmlhttpShowOferte.readyState==4)
	{
		document.getElementById("off").innerHTML=xmlhttpShowOferte.responseText;
		showJudete();
	}
}

function showJudete(tip)
{
	xmlhttpShowJudete=GetXmlHttpObject();
	if(xmlhttpShowJudete==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	// $('html, body').animate({
    //         scrollTop: $(".bau").offset().top
    //     }, 3000);
	var url="getJudete.php";
	url=url+"?tip="+tip;
	url=url+"&sid="+Math.random();
	xmlhttpShowJudete.onreadystatechange=stateChangedShowJudete;
	xmlhttpShowJudete.open("GET",url,true);
	xmlhttpShowJudete.send(null);
	
}

function stateChangedShowJudete()
{
	if (xmlhttpShowJudete.readyState==4)
	{
		document.getElementById("judet").innerHTML=xmlhttpShowJudete.responseText;
		window.scroll(0, 650);
	}
}

function showLocalitate(id)
{
	xmlhttpShowLocalitate=GetXmlHttpObject();
	if(xmlhttpShowLocalitate==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	 //$('html, body').animate({
     //        scrollTop: $(".bau").offset().top
      //   }, 3000);
	var url="getLocalitate.php";
	url=url+"?id="+id;
	url=url+"&sid="+Math.random();
	xmlhttpShowLocalitate.onreadystatechange=stateChangedShowLocalitate;
	xmlhttpShowLocalitate.open("GET",url,true);
	xmlhttpShowLocalitate.send(null);
}

function stateChangedShowLocalitate()
{
	if (xmlhttpShowLocalitate.readyState==4)
	{
		document.getElementById("localitate").innerHTML=xmlhttpShowLocalitate.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 730);
	}
}



function showLoco(id)
{
	xmlhttpShowLoco=GetXmlHttpObject();
	if(xmlhttpShowLoco==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	// $('html, body').animate({
     //        scrollTop: $(".bau").offset().top
     //    }, 3000);
	var url="getLoco.php";
	url=url+"?id="+id;
	url=url+"?sid="+Math.random();
	xmlhttpShowLoco.onreadystatechange=stateChangedShowLoco;
	xmlhttpShowLoco.open("GET",url,true);
	xmlhttpShowLoco.send(null);
}

function stateChangedShowLoco()
{
	if (xmlhttpShowLoco.readyState==4)
	{
		document.getElementById("loco").innerHTML=xmlhttpShowLoco.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 780);
	}
}



function showMarca(id)
{
	xmlhttpShowMarca=GetXmlHttpObject();
	if(xmlhttpShowMarca==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	// $('html, body').animate({
    //         scrollTop: $(".bau").offset().top
    //     }, 3000);
	var url="getMarca.php";
	url=url+"?id="+id;
	url=url+"&sid="+Math.random();
	xmlhttpShowMarca.onreadystatechange=stateChangedShowMarca;
	xmlhttpShowMarca.open("GET",url,true);
	xmlhttpShowMarca.send(null);
}

function stateChangedShowMarca()
{
	if (xmlhttpShowMarca.readyState==4)
	{
		document.getElementById("marca").innerHTML=xmlhttpShowMarca.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 820);
		 
	}
}

function showPermis(id)
{
	xmlhttpShowPermis=GetXmlHttpObject();
	if(xmlhttpShowPermis==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	 //$('html, body').animate({
    //         scrollTop: $(".bau").offset().top
    //     }, 2000);
	var url="getPermis.php";
	url=url+"?id="+id;
	url=url+"&sid="+Math.random();
	xmlhttpShowPermis.onreadystatechange=stateChangedShowPermis;
	xmlhttpShowPermis.open("GET",url,true);
	xmlhttpShowPermis.send(null);
}

function stateChangedShowPermis()
{
	if (xmlhttpShowPermis.readyState==4)
	{
		document.getElementById("permis").innerHTML=xmlhttpShowPermis.responseText;
		document.getElementById("off").innerHTML='&nbsp; <input type="hidden" name="sus" id="sus" value="1">Completati datele de alaturi pentru a gasi <strong>ASIGURAREA RCA</strong> care vi se potriveste!<br /><br /><strong>Totul in mai putin de 2 minute!</strong>';
		window.scroll(0, 950);
	}
}

function saveDataPermis(of, str, dur)
{
	xmlhttpSaveDataPermis=GetXmlHttpObject();
	if(xmlhttpSaveDataPermis==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="saveDataPermis.php";
	url=url+"?of="+of;
	url=url+"&dataP="+str;
	url=url+"&durata="+dur;
	url=url+"&sid="+Math.random();
	xmlhttpSaveDataPermis.onreadystatechange=stateChangedDataPermis;
	xmlhttpSaveDataPermis.open("GET",url,true);
	xmlhttpSaveDataPermis.send(null);
}

function stateChangedDataPermis()
{
	if (xmlhttpSaveDataPermis.readyState==4)
	{
		document.getElementById("off").innerHTML=xmlhttpSaveDataPermis.responseText;
		window.scroll(0, 1020);
		showCalculNou();

	}
}

function showCalculNou()
{
	xmlhttpshowCalculNou=GetXmlHttpObject();
	if(xmlhttpshowCalculNou==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="calculNou.php";
	url=url+"?sid="+Math.random();
	xmlhttpshowCalculNou.onreadystatechange=stateChangedCalculNou;
	xmlhttpshowCalculNou.open("GET",url,true);
	xmlhttpshowCalculNou.send(null);
}

function stateChangedCalculNou()
{
	if (xmlhttpshowCalculNou.readyState==4)
	{
		document.getElementById("calcul_nou").innerHTML=xmlhttpshowCalculNou.responseText;
		window.scroll(0, 1060);
	}
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
	 try
		{
		  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		 }
		catch (e)
		 {
			 xmlHttp=new ActiveXObject("Microsoft.XMLDOM");
		 }
 
  }

 }
return xmlHttp;
}

function loadXMLString(txt)
{
try //Internet Explorer
  {
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async="false";
  xmlDoc.loadXML(txt);
  return xmlDoc;
  }
catch(e)
  {
  try //Firefox, Mozilla, Opera, etc.
    {
    parser=new DOMParser();
    xmlDoc=parser.parseFromString(txt,"text/xml");
    return xmlDoc;
    }
  catch(e) {alert(e.message)}
  }
return null;
}


