function findChildWithTag(el, tag) {
	for(var i=0;i<el.childNodes.length;i++) {
		if(el.childNodes[i].tagName != null && el.childNodes[i].tagName.toLowerCase() == tag) return el.childNodes[i];
	}
	return null;
}
/*
 * Find the a child of el of type tag
 */
Find the a child of el of type tag
Find the a child of el of type tag
function findChildWithTag(el, tag) {
	for(var i=0;i<el.childNodes.length;i++) {
		if(el.childNodes[i].tagName != null && el.childNodes[i].tagName.toLowerCase() == tag) return el.childNodes[i];
	}
	return null;
}
function findChildWithTag ( el , tag ) { for ( var i = 0 ; i < el . childNodes . length ; i ++ ) { if ( el . childNodes [ i ] . tagName != null && el . childNodes [ i ] . tagName . toLowerCase ( ) == tag ) return el . childNodes [ i ] ; } return null ; }
Find the a child of el of type tag
Find the a child of el of type tag