function show_calendar() {
	/* 
		p_month : 0-11 for Jan-Dec; 12 for All Months.
		p_year	: 4-digit year
		p_format: Date format (mm/dd/yyyy, dd/mm/yy, ...)
		p_item	: Return Item.
	*/

	var ctl = arguments[0];

	var path = "";
	if (arguments[1] == null)
		path = "/Manager/";
	else
		path = arguments[1];

	fPopUpDlg(path + 'js/calendar.htm', ctl, 'WinCalendar', 234, 261);
	//return false;
}

function fPopUpDlg(endtarget, ctl, WINname, WINwidth, WINheight){
	
	showx =  WINwidth + 120  ; // + deltaX;
	showy = WINheight -50 ; // + deltaY;
	

	newWINwidth = WINwidth + 4 + 18;
	var features =
		'dialogWidth:'  + newWINwidth  + 'px;' +
		'dialogHeight:' + WINheight + 'px;' +
		'dialogLeft:'   + showx     + 'px;' +
		'dialogTop:'    + showy     + 'px;' +
		'directories:no; localtion:no; menubar:no; help:no; status=no; toolbar=no;scrollbars:yes;Resizeable=no';
	
	//alert(endtarget);
	//alert(ctl.value);
	
	retval = window.showModalDialog(endtarget, ctl, features );
	if( retval != null ){
		ctl.value = retval;
	}else{
		//alert("canceled");
	}
}





