
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=1024');");
}
function showDialog(URL, width, height) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + "');");
}
function submitPopupForm(formSubmit){
	formSubmit.submit();
	window.opener.location.reload();
	self.close();
}

var tipParent="";
var tipId="";
function showTip(me,id) {
  tipParent=me;
  tipId = id;
  tipParent.onmousemove=updatePos;
  document.getElementById(tipId).style.display="block";
  window.onscroll=updatePos;
}
function updatePos() {
  var ev=arguments[0]?arguments[0]:event;
  var x=ev.clientX;
  var y=ev.clientY;
  diffX=24;
  diffY=0;
  document.getElementById(tipId).style.top  = y-2+diffY+document.body.scrollTop+ "px";
  document.getElementById(tipId).style.left = x-2+diffX+document.body.scrollLeft+"px";
  tipParent.onmouseout=hideTip;
}
function hideTip() {
  document.getElementById(tipId).style.display="none";
}

