(function(){
	var test_obj = {};
	for( var attr in test_obj ) {
		if( !test_obj.hasOwnProperty( attr ) ) {
			delete Object.prototype[ attr ];
		}
	}
})();

function _T (text) {
	return document.createTextNode( text );
}

function _ ( tag, attributes ) {
	var newEl = document.createElement( tag );
	if( attributes != null ) {
		for( var attr in attributes ) {
			if( !attributes.hasOwnProperty( attr ) ) {
				continue;
			}
			newEl[attr] =  attributes[attr];
		}
	}

	var child;
	for( var i = 2; child = arguments[i]; i++ ) {
		newEl.appendChild( child );
	}
/*	for( attr in newEl ) {
		if( !newEl.hasOwnProperty( attr ) ) {
			delete newEl[ attr ];
		}
	}
*/
	return newEl;
}

function clear(el) {
	while(el.firstChild) {
		el.removeChild(el.firstChild);
	}
}

function ID(i) {
	return document.getElementById(i);
}
