// gets the element name.
// used in main.js, stock.php
function getElementName(obj) {
	// gets id of the div
	var temp = obj.id
	
	var infoArr = new Array();
	// splits the id 
	infoArr = temp.split('_'); 
	
	// returns the second part of the id
	return infoArr[1];
}

