
function popup(url, width, height)
{
	newwindow = window.open(url,'name','height='+height+',width='+width+',scrollbars=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}

function deleteselected(form)
{
	form.form.value = 'delete';
	form.submit();
}

function otherlanguage(form)
{
	form.form.value = 'otherlanguage';
	form.submit();
}

function textcontrol(action, std)
{
	xmlhttpPost('buttons', '/ajaxresponse.php', 'module=textcontrol&std='+std+'&action='+action);
}

function overlib(action, content, event)
{
	var X = event.clientX + 10;
	var Y = event.clientY + 10;
	
	if(document.layers||(document.getElementById&&!document.all))
	{
	   browseWidth=window.outerWidth;
	   browseHeight=window.outerHeight;
	}
	else if(document.all)
	{
	   browseWidth=document.body.clientWidth;
	   browseHeight=document.body.clientHeight;
	}
	
	browseWidth =  browseWidth - 410;
	
	document.getElementById('infobox').innerHTML = content;
	document.getElementById('infobox').style.top = Y+'px';
	
	if(X > browseWidth)	
		document.getElementById('infobox').style.left = browseWidth+'px';
	else
		document.getElementById('infobox').style.left = X+'px';
	
	if(action == 'over')
		document.getElementById('infobox').style.visibility = 'visible';
	else if(action != 'move')
		document.getElementById('infobox').style.visibility = 'hidden';
}
