//wangqian 2004-2-25
//????????????????
//ctrlobj????????????????????
function fPopUpCalendarDlg(ctrlobj)
{
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlg.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlg function error:"+e.getMessage);
	}
}
function fPopUpCalendarDlgCalviDate(ctrlobj)
{
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlgCalviDate.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlg function error:"+e.getMessage);
	}
}

function fPopUpCalendarDlgReg(ctrlobj){
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlgRegister.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlgReg function error:"+e.getMessage);
	}
}

function fPopUpCalendarDlgBirthday(ctrlobj){
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlgBirthday.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlgReg function error:"+e.getMessage);
	}
}

function fPopUpCalendarDlgBirthday1(ctrlobj){
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlgBirthday1.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlgReg function error:"+e.getMessage);
	}
}
function fPopUpCalendarDlgBirthday2(ctrlobj){
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlgBirthday2.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlgReg function error:"+e.getMessage);
	}
}


function fPopUpCalendarDlgBirthday3(ctrlobj){
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		newWINwidth = 210 + 4 + 18;

		retval = window.showModalDialog("/ECHT/global/inc/datePages/CalendarDlgBirthday3.html", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no;location=no"  );
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("fPopUpCalendarDlgReg function error:"+e.getMessage);
	}
}
//??????????????????beginObj??qssm????????
//targetObj??????????????
function popOutTimecode(beginObj,targetObj){
  		try{
			newWINwidth = 210 + 4 + 18;
			var windPara = new Array(beginObj.value,targetObj.value);
			retval = window.showModalDialog("/ECHT/global/inc/timeCode/timeCode.html", windPara, "dialogWidth:197px; dialogHeight:210px;status:no; directories:yes;scrollbars:no;Resizable=no;center:yes; location=no "  );
		if( retval != null ){
			beginObj.value=retval[0]
			targetObj.value = retval[1];
		}
	}catch(e){
		alert("popOut function error:"+e.description);
	}
  }
  //¿ØÖÆµ¯³öÊ÷µÄÎ»ÖÃ
function fPopTreeDlg(ctrlobj,url)
{
	try{
		showx = event.screenX - event.offsetX - 4 - 120 ; // + deltaX;
		showy = event.screenY - event.offsetY + 20; // + deltaY;
		//newWINwidth = 210 + 4 + 18;
		retval = window.open(url, "", "width=350,height=440,toolbar=no,Left="+showx+"px; Top="+showy+"px; scrollbars=yes");
		if( retval != null ){
			ctrlobj.value = retval;
		}
	}catch(e){
		alert("AssetTypeName function error:"+e.getMessage);
	}
}