<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
  <PRO_UID type="private"/>
  <cases_Scheduler_New type="private" defaultValue="../cases/cases_Scheduler_New"/>
  <cases_Scheduler_Edit type="private" defaultValue="../cases/cases_Scheduler_Edit"/>
  <cases_Scheduler_Delete type="private" defaultValue="../cases/cases_Scheduler_Delete"/>
  <PAGED_TABLE_ID type="private"/>
  <SEARCH_FILTER_FORM type="private"/>
  <MNU_ADD type="link" value="" link="javascript:newScheduler();" onclick="" colAlign="left" colWidth="100">
    <en><![CDATA[New]]></en>
  </MNU_ADD>
  <PAGED_TABLE_ID type="private"/>
  <PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
  <JS type="javascript"><![CDATA[

add_placeholder("form[PAGED_TABLE_FAST_SEARCH]","@G::LoadTranslation(ID_EMPTY_SEARCH)");
function add_placeholder (id, placeholder) {
	var el = document.getElementById(id);
	el.placeholder = placeholder;
 
    el.onfocus = function () {
		if(this.value == this.placeholder) {
			this.value = '';
			el.style.cssText  = '';
		}
    };
 
    el.onblur = function () {
		if(this.value.length == 0) {
			this.value = this.placeholder;
			el.style.cssText = 'color:#A9A9A9;';
		}
    };
 
	el.onblur();
}

function $_GET(q,s) {
    s = (s) ? s : self.location.search;
    var re = new RegExp('&'+q+'=([^&]*)','i');
    return (s=s.replace(/^\?/,'&').match(re)) ? s=s[1] : s='';
}
function  newScheduler() {
  window.location = 'cases_Scheduler_New?PRO_UID='+$_GET('PRO_UID'); return false;
}

function casesSchedulerDelete(schUID,proUid) {
   ajax_function('cases_Scheduler_Delete','','SCH_UID='+encodeURIComponent(schUID),'GET') ;
  // @#PAGED_TABLE_ID.refresh();
  window.location = 'cases_Scheduler_List?PRO_UID='+proUid;
  
}

function editCaseScheduler(SCH_UID,PRO_UID)
{   
  window.location = 'cases_Scheduler_Edit?SCH_UID='+SCH_UID+'&PRO_UID='+PRO_UID;
  return false; 
}

]]></JS>
</dynaForm>
