function showdiv(divid)
{
	document.getElementById(divid).style.display = "block";
	document.loginform.username.focus();
	return false;
}

function showpro(linkid,wordid,wordword)
{
	var divObj = document.getElementById("probox");
	var linkObj = document.getElementById(linkid);
	divObj.innerHTML = "test Me!!";
	divObj.style.display = "block";
	divObj.style.visibility = "visible";
    divObj.style.left=linkObj.offsetLeft + 345 + "px";
	divObj.style.top=linkObj.offsetTop + 160 + "px";
	return false;
}


function getY( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetTop;
oElement = oElement.offsetParent;
}
return iReturnValue;
}

function getX( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetLeft;
oElement = oElement.offsetParent;
}
return iReturnValue;
}

function showform(linkid,formtype,wordid)
{
	var divObj = document.getElementById("hfb");
	var linkObj = document.getElementById(linkid);
	divObj.style.left = getX(linkObj) + "px";
	divObj.style.top = getY(linkObj)+15 + "px";
	divObj.style.display = "block";
	divObj.style.visibility = "visible";
	frames['formframe'].location.href = "../Term/forms.asp?word_id=" + wordid + "&formtype=" + formtype;
	return false;
}

function hideform()
{
	var divObj = document.getElementById("hfb");
	divObj.style.display = "none";
	divObj.style.visibility = "hidden";
	return false;
}
