function adcallAfter(strID) {
    //updateStatus("adcallAfter:"+strID);
    frames.sub.document.location.href="/if_/type_epg/page_detail/";
    return "";
}
function adcallBefore(strID) {
    //updateStatus("adcallBefore:"+strID);
    frames.sub.document.location.href="/if_/type_epg/page_detail/";
    return "";
}
function adcall(strID) {
    //updateStatus("adcall:"+strID);
    frames.sub.document.location.href="/if_/type_epg/page_top/";
    return "";
}

function writePlayerEpgDetail(id,cid) {
    var plist = "/player/detailPlaylist.xml/contents_"+cid+"/";
    writePlayer(id,plist,true,460,false,1,true,'','epg',860, 324);
}

function writeSearchResult(id, qs) {
    var url = '/servlet/SearchResult';
    var pars = '';
    if (qs) pars += qs;
    var myAjax = new Ajax.Updater(
                    { success: id },
                    url,
                    {
                        method: 'get',
                        parameters: pars,
                        onFailure: reportError
                    }
                );
}

function reportError(request) {
    //alert('Sorry. There was an error.');
}