function createNewElement(tag, attributes, textContent){	
	var newElm = document.createElement(tag);
	if(attributes != null && attributes){
		for(attribCount=0; attribCount<attributes.length; attribCount++){	
			newElm.setAttribute(attributes[attribCount][0], attributes[attribCount][1], "false");
		}
	}
	if(textContent != null && textContent){
		var valueNode = document.createTextNode(textContent);					
		newElm.appendChild(valueNode);
	}	
	return newElm;
}

function appendNewElement(parentNode, tag, attributes, textContent){	
	var newElm = document.createElement(tag);
	if(attributes != null && attributes){
		for(attribCount=0; attribCount<attributes.length; attribCount++){	
			newElm.setAttribute(attributes[attribCount][0], attributes[attribCount][1], "false");
		}
	}
	if(textContent != null && textContent){
		var valueNode = document.createTextNode(textContent);					
		newElm.appendChild(valueNode);
	}	
	parentNode.appendChild(newElm);
	return newElm;
}

function removeNodeElements(rootDelElm){	
	while (rootDelElm.hasChildNodes()) {
		rootDelElm.removeChild(rootDelElm.firstChild);
	}
}

function getNodeByTagName(rootNodeElement, name, index){
	if(index != null)
		return rootNodeElement.getElementsByTagName(name)[index];
	else
		return rootNodeElement.getElementsByTagName(name)[0];
}

function getNodeElementsByTagName(rootNodeElement, name){
	return rootNodeElement.getElementsByTagName(name);
}

function extractTextValue(myNode){
	return myNode.firstChild.nodeValue;
}

function ee(){
alert('lola');
}
function extractTextValueFromSectedCombo(myNode){
	return myNode.options[myNode.selectedIndex].firstChild.nodeValue;
}