function expandTA(id, expRows) {
	if(!document.getElementById(id).rowsBefore) document.getElementById(id).rowsBefore = expRows;
	man = document.getElementById(id).rows;
	document.getElementById(id).rows = document.getElementById(id).rowsBefore;
	document.getElementById(id).rowsBefore = man;
}

function go(link) {
	document.location = link;
}

function popup(link, width, height) {
	var left = (screen.width - width - 20) / 2;
	var top = (screen.height - height - 30) / 2;
	var date = new Date();
	var sName = 'win' + date.getHours() + date.getMinutes() + date.getSeconds();
	window.open(link, sName, 'width='+width+',height='+height+',left='+left+',top='+top+',toolbar=no,location=no,status=no,resizable=yes,scrollbars=yes');
	return false;
}

function hideOnCheck(obj, div, value) {
	var o = document.getElementById(div);
	if (obj.checked && (obj.value == value)) o.className = ''; else o.className = 'hide';
}

function hide(div) {
	var o = document.getElementById(div);
	if(o.className=='') o.className = 'hide'; else o.className = '';
}

function showPicture(url, divDest) {
	document.getElementById(divDest).innerHTML="<img src=\""+url+"\"/>";
	return;
}