//\u5f39\u51fa\u65e5\u5386\u9009\u62e9\u65e5\u671f\u548c\u65f6\u95f4
//if(sRetValue != null && sRetValue != "####") \u4e3a\u6709\u6548\u503c
function getDateTime()
{
    var sRetValue = window.showModalDialog ("http://"+document.location.host+":8080/cms/system/common/calendar_datetime.jsp",
            "","toolbar=0;status=0;dialogWidth=226px;dialogheight=400px");
    return sRetValue;
}

//\u5f39\u51fa\u65e5\u5386\u9009\u62e9\u65e5\u671f\u548c\u65f6\u95f4
//if(sRetValue != null && sRetValue != "####") \u4e3a\u6709\u6548\u503c
function getTime()
{
    var sRetValue = window.showModalDialog ("http://"+document.location.host+":8080/cms/system/common/calendar_time.jsp",
            "","toolbar=0;status=0;dialogWidth=226px;dialogheight=400px");
    return sRetValue;
}

//\u5f39\u51fa\u65e5\u5386\u9009\u62e9\u65e5\u671f
//if(sRetValue != null && sRetValue != "####") \u4e3a\u6709\u6548\u503c
function getDate()
{
    var sRetValue = window.showModalDialog ("http://"+document.location.host+":8080/cms/system/common/calendar_date.jsp",
            "","toolbar=0;status=0;dialogWidth=220px;dialogheight=300px");
    return sRetValue;
}

//\u5f39\u51fa\u65e5\u5386\u9009\u62e9\u65e5\u671f\u548c\u65f6\u95f4,\u653e\u5230sid\u4e2d
function show_date_calendar(sId)
{
    var sRetValue = getDate();
    if(sRetValue != null && sRetValue != "####")
    {
        window.document.all(sId).value = sRetValue;
    }
}

//\u5f39\u51fa\u65e5\u5386\u9009\u62e9\u65e5\u671f,\u653e\u5230sid\u4e2d
function show_datetime_calendar(sId)
{
    var sRetValue = getDateTime();
    if(sRetValue != null && sRetValue != "####")
    {
        window.document.all(sId).value = sRetValue;
    }
}

//\u5f39\u51fa\u65e5\u5386\u9009\u62e9\u65f6\u95f4,\u653e\u5230sid\u4e2d
function show_time_calendar(sId)
{
    var sRetValue = getTime();
    if(sRetValue != null && sRetValue != "####")
    {
        window.document.all(sId).value = sRetValue;
    }
}

