var xpos=200;
var ypos=200;
var gNow = new Date();
var ggWinCal;
var openwindowstr="";

function show_calendar(x,y) {

/*
	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.
*/

/*
	p_item = arguments[0];

	if (arguments[1] == null)
		p_month = new String(gNow.getMonth());
	else
		p_month = arguments[1];
		
	if (arguments[2] == "" || arguments[2] == null)
		p_year = new String(gNow.getFullYear().toString());
	else
		p_year = arguments[2];
	
	if (arguments[3] == null)
		p_format = "YYYY-MM-DD";
	else
		p_format = arguments[3].toUpperCase();
*/

	//if (arguments[4] == null)
		xpos = x;
	//else
	//	xpos = arguments[4];
	
	//if (arguments[5] == null)
		ypos = y;
	//else
	//	ypos = arguments[5];

	openwindowstr = "width=210,height=175,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no',top=" + ypos + ",left=" + xpos

	vWinCal = window.open("cd.php", "Calendar", openwindowstr);
	//vWinCal.opener = self;
	vWinCal.focus()
	//vWinCal.moveTo(400,300)
	ggWinCal = vWinCal;
	//Build(p_item, p_month, p_year, p_format);
}