<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="users/users_ReassignSelectType" type="xmlform" width="100%" enableTemplate="1">
  <TITLE1 type="title">
    <en><![CDATA[Select the reassign type]]></en>
  </TITLE1>
  <USR_UID type="hidden"/>
  <TYPE type="dropdown" size="20" maxlength="20" required="0">
    <en><![CDATA[Type]]><option name="ANY_USER"><![CDATA[Any user]]></option></en>
  </TYPE>
  <BTN_CANCEL type="button" onclick="cancel()">
    <en><![CDATA[Cancel]]></en>
  </BTN_CANCEL>
  <CONTINUE type="button" onclick="goToStep2();">
    <en><![CDATA[Continue]]></en>
  </CONTINUE>
  <JS type="javascript"><![CDATA[

var goToStep2 = function() {
  oRPC = new leimnud.module.rpc.xmlhttp({
    url   : 'users_ReassignCases?&iStep=2',
    method: 'POST',
    args  :  'USR_UID=' + getField('USR_UID').value
          + '&TYPE=' + getField('TYPE').value
  });
  oRPC.callback = function(oRPC) {
    currentPopupWindow.clearContent();
    currentPopupWindow.addContent(oRPC.xmlhttp.responseText);
    var scs = oRPC.xmlhttp.responseText.extractScript();
    scs.evalScript();
  }.extend(this);
  oRPC.make();
};


function cancel(){
    currentPopupWindow.remove();
}
]]></JS>
</dynaForm>
