getElementValue = function(oXml, iIndex, sElement)  {
	if(!oXml) throw "XmlDocumentNullException";
	if(!iIndex) throw "IndexIntegerNullException";
	if(!sElement) throw "ElementStringNullException";
	
	return oXml.firstChild.childNodes[iIndex].getElementsByTagName(sElement)[0].text;
}

setElementValue = function(oXml, iIndex, sElement, sValue)  {
	if(!oXml) throw "Xml Document Is Nothing";
	if(!iIndex) throw "Index Integer Is Nothing";
	if(!sElement) throw "Element String Is Nothing";
	
	eval('oXml.firstChild.childNodes[' + iIndex + '].getElementsByTagName(' + sElement + ')[0]').text = sValue;
	
}	