window.onload = function initApp() {
	getHTMLelencoTc(0);
}

function submitForm(x) {
	obj = document.getElementById(x);
	obj.submit();
}
function openNewWin(url) {
	window.open(url);
}
function showSomewhat(id) {
	row = document.getElementById(id);
	if(row.className == 'show')
	{
		row.className = 'hide';
	}
	else
	{
		row.className = 'show';
	}
}


function showHideAjaxRequest() {
	if($('ajaxRequest').className == 'hide') {
		var top = document.documentElement.scrollTop;
		$('ajaxRequest').style.top = top+'px';
		$('ajaxRequest').className = 'show';
	} else {
		$('ajaxRequest').className = 'hide';
	}
		
}
function getHTMLelencoTc(eltc) {
	showHideAjaxRequest();
	var ajax = new Ajax.Updater(
		'ltContent',
		'_aHTMLSearch.php?eltc='+ eltc,
		{
			method: 'get', 
			onComplete: showHideAjaxRequest
		}
	);
}
