function js_popup(str_url, str_name, str_window, int_width, int_height, int_x, int_y, str_features) {
 str_features = str_features + ',width=' + int_width + ',height=' + int_height;
 if (int_x=='false')
  str_features = str_features + ',left=' + (screen.width/2 - int_width/2) + ',top=' + (screen.height/2 - int_height/2);
 else
  str_features = str_features + ',left=' + int_x + ',top=' + int_y;
 eval(str_name+"=window.open('"+str_url+"','"+str_window+"','"+str_features+"')");
 eval(str_window+".focus()");
}


var blnToolTipCanceled = false;
function SetToolTip(strHTML) {
	blnToolTipCanceled = false;
	SetToolTip2(strHTML, 8, 10)
}

function SetToolTip2(strHTML, xoffset, yoffset) {
	blnToolTipCanceled = false;
	setTimeout("ShowToolTip('" + strHTML + "', " + (window.event.clientX + document.body.scrollLeft + xoffset) + ", " + (window.event.clientY + document.body.scrollTop + yoffset) + ")", 150);
}

function ShowToolTip(strHTML, lngX, lngY) {
	document.all.ToolTipText.innerHTML=strHTML;
	if (!blnToolTipCanceled) {
		if (lngX + ToolTip.offsetWidth > document.body.clientWidth) lngX = document.body.clientWidth - ToolTip.offsetWidth - 15;
		ToolTip.style.pixelLeft = lngX;
		ToolTip.style.pixelTop = lngY;
		ToolTip.style.visibility="visible";
	}
}
function ResetToolTip() {
	blnToolTipCanceled = true;
	ToolTip.style.visibility="hidden";
}

