/*
'Function:  GETCOUNTRYLIST
'Descrtiption: Gets available country list in the XML file  generated by the console made in C#
'Added by: Melchor B Pineda
*/

var CountryXML = {
	myCon:   		false,
	contTarget: 	false,
	objControl:		false,
	pageURL:		false,
	params: 		false,
	myFuncWhenDone: false,
	
	getCountryListings: function() {
		document.getElementById("ctryList").innerHTML="FETCHING DATA...";
		CountryXML.myCon = new AjaxDell();
		if(!CountryXML.myCon) return;
		
		var currentTime = new Date()
		CountryXML.pageURL="CountryList.asp";
	
		
		
		CountryXML.myFuncWhenDone = function(xmlObj) {
			var strResult = xmlObj.responseText;
			document.getElementById("ctryList").innerHTML=strResult;
		}
		
		CountryXML.retrieveContent();
	},
		
	retrieveContent: function() {
		CountryXML.myCon.connect(CountryXML.pageURL, "Get", CountryXML.params, CountryXML.myFuncWhenDone);
	},
	
	retrieveTContent: function() {
		window.location = survey.pageURL + '?' + survey.params;
	}
};

CountryXML.getCountryListings();	


