﻿d=document;
w=window;
b=navigator;
s=screen;

g_bStartup=false;

g_oDispNewIs=null;

g_iPlatform=null;
g_iBrowser=null;
g_aKeymap=null;

//Process Table/Struct (BEGIN)
var oCP={pid:-1,oRef:null};        //Cp is the current process

var o$;

var _CoreProcessBlock=
{
  pid:-1,
  XmlHttpObj:null,
  pname:"",
  param:"",
  curDir:"",
  aDirs:"",
  LayerObj:null,
  Prev:null,
  Next:null
};

// Linked List Doubly : Struct

var _CollectionListLinkedDoubly=
{
  Next:null,
  Prev:null,
  Data:null
};

var _CollectionListLinkedDoublyHead=
{
NodeCount:0,
CurrentIndex:0,
FirstNode:null,
LastNode:null,
CurrentNode:null
};

function _CollectionListLinkedDoublyHeadPtr()
{
  return _CollectionListLinkedDoublyHead;
}


function AP(a,a0) //Active Process
{
 oCP.pid=a;oCP.oRef=a0
}

/*
document.createEvent


*/

// TooLtip Type Const Definition (BEGIN)
var ttImg=0;
var ttFrame=1;
var ttText=2;
// TooLtip Type Const Definition (END)


var lmDesign=0;
var lmDefault=1;




// Drag & Drop Const
ddAll=0
ddX=1
ddY=2

// Browser Const
brNone   = 0;
brIE     = 1;
brOpera  = 2;
brFirefox= 3;
brCamino = 4;
brSafari = 5;
brConquerer = 6;
brDom = 7;
brOther = 8;

// Os Const
osNone  = 0;
osWin   = 1;
osLinux = 2;
osUnix  = 3;
osReact = 4;

//Process Table/Struct (END)

g_mode=0; // 0=normal seyir modu; 1=sipariş modu;

//-- Cursor Consts (BEGIN)
crHand="pointer";
crAuto="auto";
crDefault="default";
crCrosshair="crosshair";
crWait="wait";
crText="text";
crHelp="help";
crMove="move";
crResizeN="n-resize";
crResizeNE="ne-resize";
crResizeNW="nw-resize";
crResizeE="e-resize";
crResizeW="w-resize";
crResizeS="s-resize";
crResizeSE="se-resize";
crResizeSW="sw-resize";

//-- Cursor Consts (END)

//-- Event Consts (BEGIN)
evClick="onclick";
evKeyup="onkeyup";
evKeydown="onkeydown";
evKeypress="onkeypress";
evMousedown="onmousedown";
evMouseup="onmouseup";
evMouseout="onmouseout";
evMouseover="onmouseover";
evMousemove="onmousemove";
evDblclick="ondblclick";
evBlur="onblur";
evFocus="onfocus";
evChange="onchange";
evSelect="onselect";
evScroll="onscroll";
evResize="onresize";
evMousewheel="onmousewheel";
evLoad="onload";
evUnload="onunload";
evAbort="onabort";
evError="onerror";
evSubmit="onsubmit";
evReset="onreset";

evDrag="ondrag";
evDrop="ondrop";

evCut="oncut";
evCopy="oncopy";
evPaste="onpaste";

// Not standart event
evPasteBefore="onbeforepaste"

evPropertychange="onpropertychange";
evStatechange="onreadystatechange";

evStart="onstart";
evStop="onstop";
//-- Event Consts (END)

//-- Menu Type Consts (BEGIN)
mtDefault=0;
mtBar=1;
mtPopup=2;
mtContext=3;
//-- Menu Type Consts (END)

//-- LV Dir (BEGIN)
dirDefault=0;
dirHorz=1;
dirVert=2;

//-- LV Dir (END)

//-- LV Type (BEGIN)


//-- LV Type (END)

var _GUILayerBorder_Node={w:0,style:"solid",color:""};

function BaseKeymapInit()
{
var l_aKeymap=new Array();
// With Shift Key
l_aKeymap[0]="=";
l_aKeymap[1]="!";
l_aKeymap[2]="'";
l_aKeymap[3]="^";
l_aKeymap[4]="+";
l_aKeymap[5]="%";
l_aKeymap[6]="&";
l_aKeymap[7]="/";
l_aKeymap[8]="(";
l_aKeymap[9]=")";
l_aKeymap[10]=";";
l_aKeymap[11]="_";
l_aKeymap[12]=":";
l_aKeymap[14]="é";
l_aKeymap[45]="?";
l_aKeymap[48]=">";

// With Alt Key
l_aKeymap[49]="}";
l_aKeymap[50]=">";
l_aKeymap[51]="£";
l_aKeymap[52]="#";
l_aKeymap[53]="$";
l_aKeymap[54]="½";
l_aKeymap[55]="";
l_aKeymap[56]="{";
l_aKeymap[57]="[";
l_aKeymap[58]="]";
l_aKeymap[66]="æ";
l_aKeymap[70]="€";
l_aKeymap[82]="@";
l_aKeymap[83]="´";
l_aKeymap[85]="`";
l_aKeymap[86]="|";
l_aKeymap[87]="";
l_aKeymap[88]="<";
l_aKeymap[116]="¨";
l_aKeymap[118]="~";
l_aKeymap[120]="\\";
l_aKeymap[123]="|";

return l_aKeymap;
}

function StrFormatHtmlClearTags(a_sStr)
{
  var l_iIndexOfOpenTag=1;
  var a_sStr1;

  while (l_iIndexOfOpenTag!=-1)
  {
    var l_iIndexOfOpenTag=a_sStr.indexOf("<",0);

    var l_iIndexOfCloseTag=a_sStr.indexOf(">",l_iIndexOfOpenTag);

    a_sStr1=a_sStr.substring(l_iIndexOfOpenTag,l_iIndexOfCloseTag+1);

    a_sStr=a_sStr.replace(""+a_sStr1+"","");
  }

  return a_sStr;
}

/*function StrDecode(a_sStr)
{

}*/

function StrBuilder(a_cChr,a_iLength)
{
  var l_sBuf="";

  for (var i=0;i<=a_iLength-1;i++)
  {


    l_sBuf+=a_cChr;
  }
  
  
  return l_sBuf;
}

function StrSPEncode(a_sStr)
{
  a_sStr=a_sStr.replace(/\ /g,"+");



  a_sStr=a_sStr.replace(/\%/g,"%25");
  a_sStr=a_sStr.replace(/\&lt;/g,"%3C");
  a_sStr=a_sStr.replace(/\&gt;/g,"%3E");
  a_sStr=a_sStr.replace(/\&amp;/g,"%26");
  //a_sStr=a_sStr.replace(/\&/g,"%26");




  //a_sStr=a_sStr.replace(/\=/g,"%3D");



  a_sStr=a_sStr.replace(/\&quot;/g,"%22");
  //a_sStr=a_sStr.replace(/\©/g,"&quot;");  //&copy;

  //(&reg;). &trade;

  return a_sStr;
}

function StrEncode(a_sStr)
{
  return escape(a_sStr.replace(/\+/g,"&AABBCCDD;"));
}

function StrDecode1(a_sStr)
{
 /* a_sStr=a_sStr.replace(/&#304;/g,String.fromCharCode(196)+String.fromCharCode(176));
  a_sStr=a_sStr.replace(/&#214;/g,String.fromCharCode(195)+String.fromCharCode(150));
  a_sStr=a_sStr.replace(/&#220;/g,String.fromCharCode(195)+String.fromCharCode(156));
  a_sStr=a_sStr.replace(/&#199;/g,String.fromCharCode(195)+String.fromCharCode(135));
  a_sStr=a_sStr.replace(/&#286;/g,String.fromCharCode(196)+String.fromCharCode(158));
  a_sStr=a_sStr.replace(/&#350;/g,String.fromCharCode(197)+String.fromCharCode(158));
  a_sStr=a_sStr.replace(/&#305;/g,String.fromCharCode(196)+String.fromCharCode(177));
  a_sStr=a_sStr.replace(/&#246;/g,String.fromCharCode(195)+String.fromCharCode(182));
  a_sStr=a_sStr.replace(/&#252;/g,String.fromCharCode(195)+String.fromCharCode(188));
  a_sStr=a_sStr.replace(/&#231;/g,String.fromCharCode(195)+String.fromCharCode(167));
  a_sStr=a_sStr.replace(/&#287;/g,String.fromCharCode(196)+String.fromCharCode(159));
  a_sStr=a_sStr.replace(/&#351;/g,String.fromCharCode(197)+String.fromCharCode(159));
*/
  return a_sStr;
}

function d2h(d,a_iCharCount)
{
  if (a_iCharCount==null) return null;

  l_sHx="0123456789ABCDEF";

  var h=l_sHx.substr(d&15,1);

  while(d>15)
  {
    d>>=4;
    h=l_sHx.substr(d&15,1)+h;
  }

  var l_iLenOfData=h.length;

  if (l_iLenOfData!=a_iCharCount)
  {
    l_sZero="";
  
    while(l_iLenOfData!=a_iCharCount)
    {
      l_sZero=l_sZero+"0";

      l_iLenOfData++;
    }

    h=l_sZero+h;
  }
  return h;
}

function h2d(h)
{
 return parseInt(h,16)
}

function GOB(a)
{
 return d.getElementById(a)
}

function GID(a)
{
 return a.id
}

// ############################################################################
// Collection > List > Linked > Doubly
// 
function CollectionListLinkedDoublyCreate()
{

  var l_oDLListHead=new _CollectionListLinkedDoublyHeadPtr;


  l_oDLListHead.NodeCount=0;

  l_oDLListHead.CurrentIndex=0;
  l_oDLListHead.FirstNode=null;
  l_oDLListHead.LastNode=null;
  l_oDLListHead.CurrentNode=null;

  return l_oDLListHead;
}

function _CollectionListLinkedDoublyPtr()
{
  return _CollectionListLinkedDoubly;
}

function CollectionListLinkedDoublyNodeInsert(a_oDLListHead,a_oData)
{
  var l_oDLListNode=new _CollectionListLinkedDoublyPtr();


    if (a_oDLListHead.FirstNode==null)
    {
      //alert("1");

      a_oDLListHead.FirstNode=l_oDLListNode;

      l_oDLListNode.Prev=null;
    }
    else
    {
      //alert("2");

      a_oDLListHead.LastNode.Next=l_oDLListNode;

      l_oDLListNode.Prev=a_oDLListHead.LastNode;
    }
    a_oDLListHead.LastNode=l_oDLListNode;

    l_oDLListNode.Next=null;


/*
  if (a_oDLListHead.FirstNode==null)
  {
    a_oDLListHead.FirstNode=l_oDLListNode;

    l_oDLListNode.Prev=null;
  }

  else
  {
    a_oDLListHead.LastNode.Next=l_oDLListNode;

    l_oDLListNode.Prev=a_oDLListHead.LastNode;
  }

  a_oDLListHead.LastNode=l_oDLListNode;

  l_oDLListNode.Next=null;
*/

  l_oDLListNode.Data=a_oData;


  /*if (a_oDLListHead.FirstNode==null)
  {
    a_oDLListHead.FirstNode=l_oDLListNode;
    a_oDLListHead.LastNode=l_oDLListNode;
    l_oDLListNode.Prev=null;
    l_oDLListNode.Next=null;
  }
  else
  {
    var l_oLastNode=a_oDLListHead.LastNode;

    
    l_oDLListNode.Prev=l_oLastNode;

    a_oDLListHead.LastNode.Next=l_oDLListNode;
    a_oDLListHead.LastNode=l_oDLListNode;

    l_oDLListNode.Next=null;
  }

  l_oDLListNode.Data=a_oData;*/

  a_oDLListHead.NodeCount++;

  return l_oDLListNode;
}

function CollectionListLinkedDoublyNodeRemove(a_oDLListHead,a_oDLListNode)
{
  if (a_oDLListHead.FirstNode==a_oDLListNode)
  {
    a_oDLListHead.FirstNode=a_oDLListNode.Next;
  }

  if (a_oDLListHead.LastNode==a_oDLListNode)
  {
    a_oDLListHead.LastNode=a_oDLListNode.Prev;
  }

  var l_oListNodeNext=a_oDLListNode.Next;
  var l_oListNodePrev=a_oDLListNode.Prev;

  l_oListNodeNext.Prev=l_oListNodePrev;
  l_oListNodePrev.Next=l_oListNodeNext;


  delete l_oDLListNode;


  a_oDLListHead.NodeCount--;
}

function CollectionListLinkedDoublyNodeCount(a_oDLListHead)
{
  return a_oDLListHead.NodeCount;
}

function CollectionListLinkedDoublyNodeNext()
{

}

function CollectionListLinkedDoublyNodePrev()
{


}

function CollectionListLinkedDoublyDestroy()
{
  
  
}

function CollectionListLinkedDoublyNodeCount()
{
  
  
}

function GUILayerOverflowSet(a,a_sOverflow)
{
  a.style.overflow=a_sOverflow;
}

function GUILayerOverflowGet(a)
{
  return a.style.overflow;
}


function GUILayerChildAdd$0(a,a1) // a=obj; a0=parent;
{
 a.appendChild(a1)
}

function GUILayerChildRemove(a,a1) // a=obj; a0=parent;
{
 a.removeChild(a1)
}

function $2(a)
{
 w.open(""+a+"","nw0")
}

function $3(a,a0,a1)
{
 d.title=a;
 d.charset=a0;
 d.body.scroll=a1
}

function $4(a,a0) //setInnerHtml
{
 a.innerHTML+=a0
}

function $5(a) //GetoffstW (Bug ex: $5(d.body) ie=1280; firefox=1264; opera=1274; )
{
 return a.offsetWidth
}

function $6(a) //GetoffstH (Bug ex:$6(d.body) ie=866; firefox=20; opera=885; )
{
 return a.offsetHeight
}

function $GUILayerTextOverflowSet(a,a1)
{
 a.style.textOverflow=a1;
}

function $GUILayerTextOverflowGet(a)
{
  return a.style.textOverflow;
} 

function $7(a,a1) //SetTxtOFlow --------(Not Tested Yet)-----------
{
 a.textOverflow=a1;
}

function $8() //get offsetWidth browser
{
  if (window.offsetWidth)
  {
    return window.offsetWidth;
  }
  else
  {
    return d.body.offsetWidth;
  }
}

function $9()  // get offsetH Browser
{
  if (window.offsetHeight)
  {
    return window.offsetHeight;
  }
  else
  {
    return d.body.offsetHeight;
  }
}

/*
karakter aralığı.
satır aralık mesafesi.
paragraf ayarları

GUILayer ile ilgili yeni özellik fonksiyonları ekle. Örneğin tab klavye tuşu kullanımıyla ilgili.

GUILayerParentSet(a_ObjParent,a_Obj);
GUILayerParentGet(a_Obj);


*/


// Layer Anim Functions (Begin)
function GUILayerMarquee(a_iDelayTime)
{


}

function GUILayerAnimCreate(a_Obj,a_iDelayTime)
{


}

function GUILayerAnimDestroy(a_iDelayTime)
{


}

function GUILayerAnimStart(a_iDelayTime)
{


}

function GUILayerAnimPause()
{

}

function GUILayerAnimStop()
{

}

// Anim path..

// Layer Anim Functions (End)


// Layer Drag & Drop Functions (BEGIN)

/*
GUILayerDragSet(oLyr1,true,oLyr1Header,ddAll,{12,1000,12,300});

a_Obj = İşlemşn uygulanacagı nesne;
a_bEnable = işlem etkinliği;
a_olayın tetiklenen nesne.
a_drag_drop_mode_direction =  ddAll / ddX / ddY
a_drag_limit = sürükle bırakın sürükleme sınırları.

Half Implemented
GUILayerDragSet(a_Obj,a_bActive,a_oTriggeredObj,a_iDir,a_aLimit)

a_aLimit not implemented yet.

Ex:
{12,1000,12,300}

x düzleminde 12px ile 1000px arasında nesne taşınabilir.
y düzleminde 12px ile 300px arasında nesne taşınabilir.

*/

//GUILayerDragSet(oLyr1,true,oLyr1Header,ddAll,{12,1000,12,300});

// Misc Functions

  function ControlCoordLimit(a_iLyrCoord,a_iLimitLow,a_iLimitHigh,a_iDim,a_iCoordType)  // son param=1 Y coord ; 0 ise X coord
  {
    //alert("a_iLyrCoord="+a_iLyrCoord+">a_iLimitLow="+a_iLimitLow+":"+a_iLimitHigh+":Dim="+a_iDim+"");

    if (a_iLyrCoord < a_iLimitLow)
    {
      // CoreErrorSet(); Hata : Taşınacak olan X nesnesinin coord u o nesnenin drag alanı Düşük X düzleminden taştı.
      return false;
    }

    if (a_iLyrCoord+a_iDim < a_iLimitHigh)
    {
      // CoreErrorSet(); Hata : Taşınacak olan X nesnesinin coord u o nesnenin drag alanı Yüksek X düzleminden dışarı taştı.
      return false;
    }
    return true;
  }

function MiscCoordContain(a_iTargX,a_iTargX1,a_iTargY,a_iTargY1,a_iSrcX,a_iSrcY,a_iCoordType) // a_iCoordType : 0 All, 1 X, 2 Y;
{

  // Contain X Coord
  if (a_iCoordType==1)
  {
    if (a_iTargX < a_iSrcX && a_iSrcX < a_iTargX1)
    {
      return true;
    }
  }
  else if (a_iCoordType==2)
  {
    if (a_iTargY < a_iSrcY && a_iSrcY < a_iTargY1)
    {
      return true;
    }
  }
  else if (a_iCoordType==0)
  {
    if (a_iTargX < a_iSrcX && a_iSrcX < a_iTargX1)
    {
      if (a_iTargY < a_iSrcY && a_iSrcY < a_iTargY1)
      {
        return true;
      }
      return false;
    }
  }

  return false;  
}


function StrFormatId(a_sId)
{
  if (a_sId.indexOf("$")==-1)
  {
    return a_sId;
  }

  var l_iIndexOfDolar=a_sId.indexOf("$");

  if (l_iIndexOfDolar!=-1)
  {
    l_iIndexOfDolar=parseInt(l_iIndexOfDolar)-1

    return a_sId.substring(l_iIndexOfDolar,0,l_iIndexOfDolar);
  }
}

function StrFormatFilePath(a_sFPath)
{
  return a_sFPath.replace(/\//g,String.fromCharCode(92));
}

function StrFormatFileParent(a_sFPath)
{
  a_sFPath=StrFormatFilePath(a_sFPath);

  var l_iIndexOfSeperator=a_sFPath.lastIndexOf(String.fromCharCode(92));


  if (l_iIndexOfSeperator!=-1)
  {
    return a_sFPath.substring(0,l_iIndexOfSeperator);
  }
  return a_sFPath;
}

function GUILayerModeSet(a_Obj,a_iVal)
{
  a_Obj.mode=a_iVal;
}

function GUILayerModeGet(a_Obj)
{
  return a_Obj.mode;
}



function GUILayerDragSet(a_Obj,a_bActive,a_oTriggeredObj,a_iDir,a_aLimit)
{
  if (a_bActive==false || a_bActive==null)
  {
    l_bStop=true;
    d.onmousemove=null;
    d.onmouseup=null;
    return null;
  }

  var l_iXLimitLow,l_iXLimitHigh,l_iYLimitLow,l_iYLimitHigh;

  // Control a_aLimit ile nesnenin ilk başlangıç coordu uyumsuzsa hata. genişlikler limit alanını taşırıyorsa.
  // GUILayerXSet
  // GUILayerYSet //bu işlemlerde de drag drop etkin ise ve atanan coord lar uyumsuzsa hata ver.
  // GUILayerWSet
  // GUILayerHSet


  var l_iLyrX=GUILayerXGet(a_Obj);
  var l_iLyrY=GUILayerYGet(a_Obj);
  var l_iLyrW=GUILayerWGet(a_Obj);
  var l_iLyrH=GUILayerHGet(a_Obj);

  if (a_aLimit!=null)
  {
    if (a_iDir==ddX)
    {
      l_iXLimitLow=a_aLimit[0];
      l_iXLimitHigh=a_aLimit[1];

      if (ControlCoordLimit(l_iLyrX,l_iXLimitLow,l_iXLimitHigh,l_iLyrW,0)==false) return null;
    }

    if (a_iDir==ddY)
    {
      l_iYLimitLow=a_aLimit[0];
      l_iYLimitHigh=a_aLimit[1];

      if (ControlCoordLimit(l_iLyrY,l_iXLimitLow,l_iYLimitHigh,l_iLyrH,1)==false) return null;
    }

    if (a_iDir==ddAll)
    {
      l_iXLimitLow=a_aLimit[0];
      l_iXLimitHigh=a_aLimit[1];
      l_iYLimitLow=a_aLimit[2];
      l_iYLimitHigh=a_aLimit[3];

      if (ControlCoordLimit(l_iLyrX,l_iXLimitLow,l_iXLimitHigh,l_iLyrW,0)==false) return null;
      if (ControlCoordLimit(l_iLyrY,l_iXLimitLow,l_iYLimitHigh,l_iLyrH,1)==false) return null;


    }
  }

  var oAttr1=d.createAttribute("XLimLow");
  a_Obj.setAttributeNode(oAttr1);

  var oAttr2=d.createAttribute("XLimHigh");
  a_Obj.setAttributeNode(oAttr2);

  var oAttr3=d.createAttribute("YLimLow");
  a_Obj.setAttributeNode(oAttr3);

  var oAttr4=d.createAttribute("YLimHigh");
  a_Obj.setAttributeNode(oAttr4);

  a_Obj.XLimLow=l_iXLimitLow;
  a_Obj.XLimHigh=l_iXLimitHigh;
  a_Obj.YLimLow=l_iYLimitLow;
  a_Obj.YLimHigh=l_iYLimitHigh;

  function InlineDragObj(e,o)
  {
    if (!e) e=event;
    function InlineDragEvent(e)
    {
      if (!e) e=event;
      if(l_bStop==false)
      {
        if ( ((EventMouseX(e)+l_oX-l_eX)>l_iXLimitLow && (EventMouseX(e)+l_oX-l_eX)<l_iXLimitHigh) || l_iXLimitLow==null || l_iXLimitHigh==null)
        {
          l_iTy=EventMouseX(e)+l_oX-l_eX;
        }
        else
        {
          l_iTy=l_iTy;
        }

        if ( ((EventMouseY(e)+l_oY-l_eY)>l_iYLimitLow && (EventMouseY(e)+l_oY-l_eY)<l_iYLimitHigh) || l_iYLimitLow==null || l_iYLimitHigh==null)
        {
          l_iTx=EventMouseY(e)+l_oY-l_eY;
        }
        else
        {
          l_iTx=l_iTx;
        }

        if(a_iDir==ddY || a_iDir==ddAll) GUILayerYSet(o,l_iTx);

        if(a_iDir==ddX || a_iDir==ddAll) GUILayerXSet(o,l_iTy);
      }
    }

    var l_oX=parseInt(GUILayerXGet(o));
    var l_oY=parseInt(GUILayerYGet(o));
    l_eX=EventMouseX(e);
    l_eY=EventMouseY(e);
    var l_iTy=EventMouseX(e)+l_oX-l_eX;
    var l_iTx=EventMouseY(e)+l_oY-l_eY;

    var l_bStop=false;

    d.onmousemove=InlineDragEvent;
    d.onmouseup=function()
    {
      l_bStop=true;
      d.onmousemove=null;
      d.onmouseup=null;
    };
  } 
  
  var oAttr1=d.createAttribute("dragObj");
  a_oTriggeredObj.setAttributeNode(oAttr1);

  a_oTriggeredObj.dragObj=a_Obj;

  GUILayerEventAdd(a_oTriggeredObj,evMousedown,function(e){if (!e) e=event;InlineDragObj(e,EventSender(e).dragObj)});
}

/*
function GUILayerDragGet(a_Obj)
{

}

GUILayerEventDrag=function() // event ondrag
{

};

 En fazla nekadr büyütülebilinecek.
 Sadece köşeden mi büyüsün layerın hangi kısmından seçilerek büyüsün.

 GUILayerResizeSet(a_Obj,true,array(x1,y1,x2,y2));
*/




function GUILayerResizeSet(a_Obj,a_bEnabled)
{
  if (a_bEnabled==false || a_bEnabled==null)
  {
    l_bStop=true;
    d.onmousemove=null;
    d.onmouseout=null;
    return null;
  }

  a_Obj.ObjResizeable=a_bEnabled;









  if (a_bEnabled==true)
  {
    // 0 not selected; 1=nw; 2=ne; 3=sw; 4=se; 5=n; 6=s; 7=w; 8=e;
    var l_iResizeDir=0;

    GUILayerEventAdd(a_Obj,evMouseover,function(e)
    {
      if (!e) e=event;

      var l_oSender=EventSender(e);

      if (MiscCoordContain(1,15,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeNW)}
      else if (MiscCoordContain(85,100,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeNE)}
      else if (MiscCoordContain(1,15,85,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeSW)}
      else if (MiscCoordContain(85,100,85,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeSE)}
      else if (MiscCoordContain(15,85,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeN)}
      else if (MiscCoordContain(15,85,95,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeS)}
      else if (MiscCoordContain(1,5,15,85,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeW)}
      else if (MiscCoordContain(95,100,15,85,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeE)}
      else{GUILayerCursorSet(l_oSender,crAuto)}

      l_oSender.onmousemove=function(e)
      {
        if (!e) e=event;

        if (MiscCoordContain(1,15,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeNW)}
        else if (MiscCoordContain(85,100,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeNE)}
        else if (MiscCoordContain(1,15,85,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeSW)}
        else if (MiscCoordContain(85,100,85,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeSE)}
        else if (MiscCoordContain(15,85,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeN)}
        else if (MiscCoordContain(15,85,95,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeS)}
        else if (MiscCoordContain(1,5,15,85,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeW)}
        else if (MiscCoordContain(95,100,15,85,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeE)}
        else{GUILayerCursorSet(l_oSender,crAuto)}
      };

      l_oSender.onmousedown=function(e)
      {
        if (!e) e=event;
        
        var l_oSender=EventSender(e);

        if (MiscCoordContain(1,15,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeNW);l_iResizeDir=1;}
        if (MiscCoordContain(85,100,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeNE);l_iResizeDir=2;}
        if (MiscCoordContain(1,15,85,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeSW);l_iResizeDir=3;}
        if (MiscCoordContain(85,100,85,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeSE);l_iResizeDir=4;}
        if (MiscCoordContain(15,85,1,15,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeN);l_iResizeDir=5;}
        if (MiscCoordContain(15,85,95,100,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeS);l_iResizeDir=6;}
        if (MiscCoordContain(1,5,15,85,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeW);l_iResizeDir=7;}
        if (MiscCoordContain(95,100,15,85,e.offsetX,e.offsetY,0)==true){GUILayerCursorSet(l_oSender,crResizeE);l_iResizeDir=8;}

        var l_iXStartOfCur=EventMouseX(e);
        var l_iYStartOfCur=EventMouseY(e);
        var l_iWStartOfLayer=l_oSender.offsetWidth;
        var l_iHStartOfLayer=l_oSender.offsetHeight;
        var l_iXStartOfLayer=GUILayerXGet(l_oSender);
        var l_iYStartOfLayer=GUILayerYGet(l_oSender);


        function InlineResizeEvent(e)
        {
          if (!e) e=event;

          var l_oSender=EventSender(e);

          var l_iXMoveOfCur=EventMouseX(e);
          var l_iYMoveOfCur=EventMouseY(e);
          var l_iWMoveOfLayer=l_oSender.offsetWidth;
          var l_iHMoveOfLayer=l_oSender.offsetHeight;
          var l_iXMoveOfLayer=GUILayerXGet(l_oSender);
          var l_iYMoveOfLayer=GUILayerYGet(l_oSender);

          if (l_iResizeDir==1)
          {

          }
          else if (l_iResizeDir==2)
          {

          }
          else if (l_iResizeDir==3)
          {

          }
          else if (l_iResizeDir==4)
          {

          }
          else if (l_iResizeDir==5)
          {

          }
          else if (l_iResizeDir==6)
          {
            alert("sad");
            l_iHNew=(l_iYMoveOfCur-l_iHMoveOfLayer)+EventMouseY(e);
            GUILayerHSet(l_oSender,l_iHNew);

            //l_oSender
          }
          else if (l_iResizeDir==7)
          {

          }
          else if (l_iResizeDir==8)
          {

          }


          if(l_bStop==false)
          {


          }
        }
      

        /*var l_oX=parseInt(GUILayerXGet(o));
        var l_oY=parseInt(GUILayerYGet(o));
        l_eX=EventMouseX(e);
        l_eY=EventMouseY(e);
        var l_iTy=EventMouseX(e)+l_oX-l_eX;
        var l_iTx=EventMouseY(e)+l_oY-l_eY;*/

        var l_bStop=false;

        d.onmousemove=InlineResizeEvent;
        d.onmouseup=function()
        {
          l_bStop=true;
          d.onmousemove=null;
          d.onmouseup=null;
        };
     













      };




    });
  }
  else
  {
    //Bu resize özelliğini kaldır.
  }

  
}

/*
function GUILayerResizeGet(a_Obj)
{

}

GUILayerEventResize=function() // event onresize
{

};*/

// Layer Drag & Drop Functions (END)


function GUILayerParentGet(a_Obj)
{
  if (a_Obj.parentNode)
  {
    return a_Obj.parentNode;
  }
  else
  {
    return a_Obj.parentElement;
  }
}

function GUILayerParentSet(a_Obj,a_ObjParent)
{
  a_ObjParent.appendChild(a_Obj);
}

function GUILayerBlurSet(a)
{
  a.blur()
}

function GUILayerFocusSet(a)
{
  if (a.setActive)
  {
    a.setActive()
  }
  else
  {
    a.focus()
  }
}

function GUILayerActiveSet(a)
{
  if (a.setActive)
  {
    a.setActive()
  }
  else
  {
    a.focus()
  }
}

function $B(a,a1) //SetTrueNoWrap
{
 a.noWrap=a1;
}

function GUILayerCursorSet(a,a1)
{
 a.style.cursor=a1;
}

function GUILayerCursorGet(a)
{
 return a.style.cursor;
}

function $D(a) //GetOfftW
{
 return a.offsetWidth;
}

//--------- GUI > Layer > Font (BEGIN)

function GUILayerFontColorSet(a,a1)
{
  a.style.color=a1;
}

function GUILayerFontColorGet(a)
{
  return a.style.color;
}

function GUILayerFontTypeSet(a,a0)
{
  a.style.fontFamily=a0;
}

function GUILayerFontTypeGet(a)
{
  return a.style.fontFamily;
}

function GUILayerFontSizeSet(a,a0)
{
  a.style.fontSize=a0;
}

function GUILayerFontSizeGet(a)
{
  return a.style.fontSize;
}

function GUILayerFontStyleSet(a,a0)
{
  if (a0=="italic")
  {
    a.style.fontStyle=a0;
  }
  else
  {
    a.style.textDecoration=a0;
  }
}

function GUILayerFontStyleGet(a)
{
  return a.style.textDecoration;
}

function GUILayerFontWeightSet(a,a0)
{
  a.style.fontWeight=a0;
}

function GUILayerFontWeightGet(a)
{
  return a.style.fontWeight;
}
//--------- GUI > Layer > Font (END)

function GUILayerTooltipSet(a,a1)
{
 a.title=a1;
}

function GUILayerTooltipGet(a)
{
  return a.title;
}

function $A(a,a0)  // CreateAttribute
{
  var l_oAttr=d.createAttribute(a0);
  a.setAttributeNode(l_oAttr);
}

function GUILayerVisibleSet(a,a0)
{
  var l_sDisplayStr="";
  if (a0==true)
  {
    l_sDisplayStr="inline";
  }
  else
  {
    l_sDisplayStr="none";
  }

  a.style.display=l_sDisplayStr;
}

function GUILayerVisibleGet(a)
{
  var l_sDisplayStr="";

  l_sDisplayStr=a.style.display;

  if (l_sDisplayStr=="inline")
  {
    return true;
  }
  else if (l_sDisplayStr=="")
  {
    return true;
  }
  else
  {
    return false;
  }
}

function GUILayerPaddingSet(a,a0)
{
  a.style.padding=a0;
}

function GUILayerPaddingGet(a)
{
  return a.style.padding;
}


function GUILayerTextRangeSelectAll(a_oObj)
{
  if(a_oObj != null && ((a_oObj.childNodes.length == 1 && a_oObj.childNodes[0].nodeName == "#text") || (a_oObj.tagName == "INPUT"
      && a_oObj.type == "text")))
  {
    if(a_oObj.type=="text")
    {
      a_oObj.select();
    }
    else if(window.getSelection)
    {
      var sel = window.getSelection();
      var range = document.createRange();
      range.selectNode(a_oObj.firstChild);
      sel.removeAllRanges();
      sel.addRange(range);
    }
    else
    {
      document.selection.empty();
      var range = document.body.createTextRange();
      range.moveToElementText(a_oObj);
      range.select();
    }
  }
}


//--------- GUI > Layer > Dimensions (BEGIN)

function GUILayerZSet(a,a1) //SetZ
{
 a.style.zIndex=a1;
}

function GUILayerZGet(a) //GetZ
{
 return a.style.zIndex;
}

function GUILayerXSet(a,a1) //SetX
{
  if (a.XLimHigh!=null || a.XLimLow!=null)
  {
    if (ControlCoordLimit(a,a.XLimLow,a.XLimHigh,GUILayerWGet(a),0)==false)
    {
      return null;
    }
  }

  if (typeof(a.style.pixelLeft)!="undefined")
  {
    //alert("asd");
    a.style.pixelLeft=a1;
  }
  else
  {
    a.style.left=a1;
  }
}

function GUILayerXGet(a)
{
  if (typeof(a.style.pixelTop)!="undefined")
  {
    return a.style.pixelLeft;
  }
  else
  {
    return a.style.left;
  }
}

function GUILayerWSet(a,a0)
{
  if (a.XLimHigh!=null || a.XLimLow!=null)
  {
    if (ControlCoordLimit(a,a.XLimLow,a.XLimHigh,GUILayerWGet(a),0)==false)
    {
      return null;
    }
  }

  a.style.width=a0;
}

function GUILayerWGet(a)
{
  return a.style.width;
}

function GUILayerYSet(a,a1)
{
  if (a.YLimHigh!=null || a.YLimLow!=null)
  {
    if (ControlCoordLimit(a,a.YLimLow,a.YLimHigh,GUILayerHGet(a),1)==false)
    {
      return null;
    }
  }

  if (typeof(a.style.pixelTop)!="undefined")
  {
    a.style.pixelTop=a1;
  }
  else
  {
    a.style.top=a1;
  }
}

function GUILayerYGet(a)
{
  if (typeof(a.style.pixelTop)!="undefined")
  {
    return a.style.pixelTop;
  }
  else
  {
    return a.style.top;
  }
}

function GUILayerHSet(a,a1)
{
  if (a.YLimHigh!=null || a.YLimLow!=null)
  {
    if (ControlCoordLimit(a,a.YLimLow,a.YLimHigh,GUILayerHGet(a),1)==false)
    {
      return null;
    }
  }

  a.style.height=a1;
}

function GUILayerHGet(a)
{
  return a.style.height;
}
//--------- GUI > Layer > Dimensions (END)


// InsertAdjacentElement on Firefox
//a_Obj.appendChild(parsedNode);



//Inser Adjacent Text on Firefox
//var parsedText = document.createTextNode(txtStr)
//a_Obj.appendChild(parsedText);


function $H(a,a1) //SetInsertHtml
{
  if (a.insertAdjacentHTML!=null) // if browser=ie or opera
  {
    a.insertAdjacentHTML("beforeEnd",a1);
  }
  else // Firefox Gecko engine
  {
    var r=a.ownerDocument.createRange();
    r.setStartBefore(a);
    var parsedHTML=r.createContextualFragment(a1);
    a.appendChild(parsedHTML);
  }
}

function $I(a,a1,a2) //SetHoverEvnt4TxtClr
{
  a.onmouseover=function(e){if (!e) e=event;EventSender(e).style.color=a1;};
  a.onmouseout=function(e){if (!e) e=event;EventSender(e).style.color=a2;};
}

function GUILayerTextSet(a,a0) //setInnerHtmlDAssign
{
  a.innerHTML=a0
}

function GUILayerTextLengthSet(a,a0) //setMaxLength
{
  a.maxLength=a0
}

function $L(a,a1,a2) //SetHoverEvnt4TxtClr
{
  a.onfocus=function(e){if (!e) e=event;l_oSenderObj=EventSender(e);l_oSenderObj.style.borderColor=a1;l_oSenderObj.style.backgroundColor="#f8f8f8";};
  a.onblur=function(e){if (!e) e=event;l_oSenderObj=EventSender(e);l_oSenderObj.style.borderColor=a2;l_oSenderObj.style.backgroundColor="#fff";};
}

//--------- GUI > Layer > Background (BEGIN)

function GUILayerBgColorSet(a,a0)
{
  a.style.backgroundColor=a0;
}

function GUILayerBgColorGet(a)
{
  return a.style.backgroundColor;
}

function GUILayerBgImgSet(a,a0)
{
  a.style.backgroundImage=a0;
}

function GUILayerBgImgGet(a)
{
  return a.style.backgroundImage;
}

//--------- GUI > Layer > Background (END)

function $O(a) //hasScrollBar
{
 if(a.scrollHeight<=$6(a)) return true;
 return false;
}

function $R(a,a1) //SetAlign
{
 a.align=a1;
}

// GetAlign

function GUILayerScSet(a,a1)
{
 a.className=a1;
}

function GUILayerScGet(a)
{
  return a.className;
}

function GUILayerEnableSet(a_Obj,a_bTrue)
{
  if (a_bTrue==true)
  {
    a_bTrue=false;
  }
  else
  {
    a_bTrue=true;
  }

  a_Obj.disabled=a_bTrue;
}

function GUILayerEnableGet(a_Obj)
{
  if (a_Obj.disabled==true)
  {
    return false;
  }
  else
  {
    return true;
  }
}

function GUILayerBorderSet(a_Obj,/*IN*/a_GUILayerBorder_Node)
{
  a_Obj.style.borderWidth=a_GUILayerBorder_Node.w;
  a_Obj.style.borderStyle=a_GUILayerBorder_Node.style;
  a_Obj.style.borderColor=a_GUILayerBorder_Node.color;

  return true;
}

function GUILayerBorderGet(a_Obj,/*OUT*/ a_GUILayerBorder_Node)
{
  a_GUILayerBorder_Node.w=a_Obj.style.borderWidth;
  a_GUILayerBorder_Node.style=a_Obj.style.borderStyle;
  a_GUILayerBorder_Node.color=a_Obj.style.borderColor;

  return a_GUILayerBorder_Node;
}

// GUI > LAYER > HELPING OPERATIONS

function GUILayerEventAdd(a_Obj,a_sEventName,a_Code)
{
  if (typeof(a_Obj.attachEvent)!="undefined" || a_Obj.attachEvent!=null)
  {
    a_Obj.attachEvent(a_sEventName,a_Code);
  }
  else
  {
    a_sEventName=a_sEventName.substr(2,a_sEventName.length);
    a_Obj.addEventListener(a_sEventName,a_Code,true);
  }
}

function GUILayerEventRemove(a_Obj,a_sEventName,a_Code) //Warning : UseCapture  false
{
  if (typeof(a_Obj.detachEvent)!="undefined" || a_Obj.detachEvent!=null)
  {
    a_Obj.detachEvent(a_sEventName,a_Code);
  }
  else
  {
    a_sEventName=a_sEventName.substr(2,a_sEventName.length);
    a_Obj.removeEventListener(a_sEventName,a_Code,false);
  }
}

function GUILayerEventFire(a_Obj,a_sEventName) // Half Implemented
{
   // boolean            dispatchEvent(in Event evt)
     //                                   raises(EventException);

  a_Obj.fireEvent(a_sEventName)
}
// Event Functions


function EventSender(e)
{
  if (e.target)
  {
    return e.target;
  }
  else
  {
    return e.srcElement;
  }
}


function EventKeyCapslockStateGet(e)
{
  kc=e.keyCode?e.keyCode:e.which;
  if (e.shiftKey)
  {
    sk=e.shiftKey;
  }
  else
  {
    if (kc == 16)
    {
      sk=true;
    }
    else
    {
      sk=false;
    }
  }

  if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
  {
    return true;
  }
  else
  {
    return false;
  }
}


function $GUILayerXGlobalGet(a_Obj)
{
  var l_iCurrentX=0;
  if(a_Obj.offsetParent)
  {
    while (true) 
    {
      l_iCurrentX+=a_Obj.offsetLeft;
      if(!a_Obj.offsetParent) break;

      a_Obj=a_Obj.offsetParent;
    }
  }
  //else if(a_Obj.x)
  //{
  //  l_iCurrentX+=a_Obj.x;
  //}
  return l_iCurrentX;
}


function $GUILayerYGlobalGet(a_Obj)
{
  var l_iCurrentY=0;
  if(a_Obj.offsetParent)
  {
    while (true)
    {
      l_iCurrentY+=a_Obj.offsetTop;

      //alert(a_Obj.offsetParent.id);
      if(!a_Obj.offsetParent) break;

      a_Obj=a_Obj.offsetParent;
    }
  }
  //else if(a_Obj.y)
  //{
  //  l_iCurrentY+=a_Obj.y;
  //}
  return l_iCurrentY;
}











function EventMouseButton(e)
{
  
  
}

function EventMouseX(e)
{
  if (e.pageX)
  {
    return e.pageX
  }
  else if (e.clientX)
  {
    return (e.clientX + d.body.scrollLeft);
  }
  else
  {
    return null;
  }
}

function EventMouseX1(e)
{
  if (e.pageX)
  {
    return e.pageX;
  }
  else if (e.clientX)
  {
    return (e.clientX + document.body.scrollLeft);
  }
  else
  {
    return null;
  }
}

function EventMouseY1(e)
{
  if (e.pageY)
  {
    return e.pageY;
  }
  else if (e.clientY)
  {
    return (e.clientY + document.body.scrollTop);
  }
  else
  {
    return null;
  }
}


function EventMouseY(e)
{

  if (e.pageY)
  {
    return e.pageY;
  }
  else if (e.clientY)
  {
    return (e.clientY + d.body.scrollTop);
  }
  else
  {
    return null;
  }
}


//-----------------------------------------------
function CXHR(a,a0,rFnc,rFnc1)
{

 var o;
 if(b.appName.indexOf("Microsoft")!=-1)
 {
  try
  {
   o=new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch(e)
  {
   try
   {
    o=new ActiveXObject("Microsoft.XMLHTTP");
   }
   catch(e)
   {
    o=false;
   }
  }
 }
 else
 {
  o=new XMLHttpRequest();
 }

 if(!o) return null;
 var oDate=new Date();

  //""+a0+"&dt="+oDate.toUTCString()+oDate.getMilliseconds()+""
 o.open(a,""+a0+"&dt="+oDate.toUTCString()+oDate.getMilliseconds()+"",true);

 o.onreadystatechange=function()
 {
  if(o.readyState==4)
  {
   if(o.status==200)
   {
     OnLoaded(o,rFnc);
   }
   /*else
   {
     alert(o.status);
   }*/
  }
  else if(o.readyState==1)
  {
   //if(o.status==200)
   //{
     OnLoading(a,rFnc1);
   //}
   /*else
   {
     alert(o.status+"_q");
   }*/
  }
 };

 return o;
}

function OnLoading(a,rFunc)
{
 rFunc()
 {
 
 };
}

function OnLoaded(a,rFunc)
{
 rFunc()
 {

 };
}
//-------------------------------------------
// XML PARSER (COMPATIBLE GECKO-IE-OPERA)
function CXMLParse(a_sXMLText,a_bAsyncIs)
{
  var o;
  if (a_bAsyncIs==null)
  {
    a_bAsyncIs=false;
  }

  if (window.ActiveXObject)
  {
    o=new ActiveXObject("Microsoft.XMLDOM");
    o.async=a_bAsyncIs;
    o.loadXML(a_sXMLText);
  }
  else
  {
    var parser=new DOMParser();
    o=parser.parseFromString(a_sXMLText,"text/xml");
  }

  return o;
}
//-------------------------------------------
function LoadProcess(a0,sCmdParam,f1)
{
  var oXhr=new CXHR("get","b/s.1.asp?mid="+a0+"&p0="+sCmdParam+"",f0,f1);
 
  oXhr.send(null);

  function f0()
  {

    o$.innerHTML="";

    var l0=oXhr.responseText;

/*
    if(l0=="é4")
    {
      alert("Sistem Hatası\n"+a0+" kimliğine ait işlem bulunamadı.");
    }
    else
    {
      $H(o$,"&nbsp;<script defer>"+l0+"</script>");
    }
*/
  }
}

function BaseInit()
{
  var l_sPlatformStr;
  l_sPlatformStr=window.navigator.userAgent;

  if (l_sPlatformStr.indexOf("MSIE")!=-1)
  {
    g_iBrowser=brIE;
  }
  else if (l_sPlatformStr.indexOf("Firefox")!=-1)
  {
    g_iBrowser=brFirefox;
  }
  else if (l_sPlatformStr.indexOf("Safari")!=-1)
  {
    g_iBrowser=brSafari;
  }
  else if (l_sPlatformStr.indexOf("Opera")!=-1)
  {
    g_iBrowser=brOpera;
  }
  else if (l_sPlatformStr.indexOf("Camino")!=-1)
  {
    g_iBrowser=brCamino;
  }
  else if (l_sPlatformStr.indexOf("Conquerer")!=-1)
  {
    g_iBrowser=brConquerer;
  }
  else
  {
    g_iBrowser=brNone;
  }

  if (l_sPlatformStr.indexOf("Windows")!=-1)
  {
    g_iPlatform=osWin;
  }
  else if (l_sPlatformStr.indexOf("Linux")!=-1)
  {
    g_iPlatform=0;
  }
  else if (l_sPlatformStr.indexOf("Linux")!=-1)
  {
    g_iPlatform=osLinux;
  }
  else if (l_sPlatformStr.indexOf("Unix")!=-1)
  {
    g_iPlatform=osUnix;
  }
  else if (l_sPlatformStr.indexOf("React")!=-1)
  {
    g_iPlatform=osReact;
  }
  else
  {
    g_iPlatform=osNone;
  }

  g_bStartup=true;

  $H(d.body,"<div id=\"ID_BASE_SYSTEM\" style=\"display:none;\"></div>");

  o$=GOB("ID_BASE_SYSTEM");
}

// Error Exception Management

var g_iErrCode=0;
var g_iErrStr="";
function CoreErrorCodeSet(a_iCode)
{
  g_iErrCode=a_iCode;
}

function CoreErrorCodeGet()
{
  return g_iErrCode;
}

function CoreErrorStrSet(a_sStr)
{
  g_iErrStr=a_sStr;
}

function CoreErrorStrGet()
{
  return g_iErrStr;
}

function CoreProcessWait4()
{

}

// Startup info & currentDir
function CoreProcessCreate(a0,sCmdParam,f1)
{
 var oXhr=new CXHR("get","modules/s.1.asp?cid="+a0+"&p0="+sCmdParam+"",f0,f1);
 
 oXhr.send(null);

 function f0()
 {

  var l0=oXhr.responseText;
  
  if(l0=="[ERROR:6]")
  {
    CoreErrorCodeSet(16);
    CoreErrorStrSet("Sistem Hatası "+a0+" no'lu küme bulunamadı.");
  }
  else
  {
    $H(d.body,"&nbsp;<script defer>"+l0+"</script>");
  }
  
 }
}

//-------------------------------------------
function AProcess(a0,sCmdParam,f1,par,a5) //a5 replace=1; addnEW=0
{
 var oXhr=new CXHR("get","b/s.1.asp?mid="+a0+"&p0="+sCmdParam+"",f0,f1);
 
 oXhr.send(null);

 function f0()
 {
  if(a5==1) par.innerHTML="";
  o$.removeChild(of);
  var l0=oXhr.responseText;

  /*
  if(l0=="é4")
  {
    alert("Sistem Hatası\n"+a0+" kimliğine ait işlem bulunamadı.");
  }
  else
  {
    $H(par,"&nbsp;<script defer>"+l0+"</script>");
  }
  */
 }
}
//-------------------------------------------
function CFlash(id,sFName,quality,x,y,z,w,h,parent)
{
 q="<object id=\""+id+"\" style=\"position:absolute;left:"+x+";top:"+y+";z-Index:"+z+";\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" menu=\"false\" width=\""+w+"\" height=\""+h+"\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\"><param name=\"movie\" value=\""+sFName+"\"><param name=\"quality\" value=\""+quality+"\"><param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"transparent\"></object>";
 $4(parent,q);
 return GOB(id);
}

function UFlash(o,sFN)
{
 GOB(o).movie=sFN;
}

//#############################################################################
// Temporary Js Functions
//

function ComponentComboItemAdd(a_oSelect,a_sText,a_sValue)
{
  var l_oOption=d.createElement("option");
  l_oOption.text=a_sText;
  l_oOption.value=a_sValue;
  a_oSelect.add(l_oOption);
}
