function fPopUpCalendarDlg(ctrlobj) {
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;
	retval = window.showModalDialog("../js/calendardlg.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
	if( retval != null ) {
		ctrlobj.value = retval;
	}
}

function open_window(url,win_width,win_height)
{
	var pop=window.open(url,"open","width="+win_width+",height="+win_height+",scrollbars=yes,status=no");
	pop.moveTo((screen.width-win_width)/2,(screen.height-win_height)/2)
}

function showMyDialog(url,width,height){
	window.showModalDialog(url,window,'dialogHeight: '+height+'px; dialogWidth: '+width+'px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: No; status: No;') ;
}

//document.oncontextmenu=new Function("event.returnValue=false;");
//document.onselectstart=new Function("event.returnValue=false;");
