function expandCollapse() {
	for (var i=0; i<expandCollapse.arguments.length; i++) {
	var element = document.getElementById (expandCollapse.arguments[i]);
		element.style.display = (element.style.display == "none") ? "block" : "none";
	}
}


function goToAnchor(anchor_val){
	
	if(anchor_val){
		window.location.href=window.location.href+anchor_val;
	}
}


function ScrollToElement(elem_id){
	var elem = document.getElementById(elem_id);
	if(elem){
		elem.scrollIntoView();
	}
}


/*
//Finds y value of given object
function findPos(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		do {
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	return [curtop];
	}
}
//Get object
var SupportDiv = document.getElementById('customer_info');
 
//Scroll to location of SupportDiv on load
window.scroll(0,findPos(SupportDiv));

*/
