var Layer=function(isModal,setID){this.isModal=isModal;this.setID=setID?setID:false;};Layer.dialogName='dialogBox';Layer.imagePath='objects/sysicons/';Layer.className='dialogBox';Layer.closeIcon=null;Layer.maxDepth=5;Layer.prototype.create=function(){var container=Layer.createElement('div');container.style.position='absolute';container.style.display='none';container.className=Layer.className;container.dialogBox=this;this.container=container;var mainTable=Layer.createElement('table',container);mainTable.cellSpacing='0';mainTable.cellPadding='0';mainTable.border='0';var tBodyM=Layer.createElement('tbody',mainTable);var rowM=Layer.createElement('tr',tBodyM);var cellM=Layer.createElement('td',rowM);var titleTable=Layer.createElement('table',cellM);titleTable.cellSpacing='0';titleTable.cellPadding='0';titleTable.border='0';titleTable.width='100%';titleTable.className='dboxTbTitle';var tBodyT=Layer.createElement('tbody',titleTable);var rowT=Layer.createElement('tr',tBodyT);var cellT=Layer.createElement('td',rowT);cellT.className='dboxTbLeft';var titleCell=Layer.createElement('td',rowT);this.titleCell=titleCell;titleCell.className='dboxTitle';var cellT=Layer.createElement('td',rowT);cellT.className='dboxTbRight';Layer.initCloseIcon();var closeIcon=Layer.createElement('img',cellT);closeIcon.src=Layer.closeIcon.src;closeIcon.border='0';closeIcon.alt='Kapat';closeIcon.dialogBox=this;var aLink=Layer.createElement('a',cellT);aLink.href='javascript:void(0)';aLink.appendChild(closeIcon);aLink.onclick=Layer.closeBox;var rowM=Layer.createElement('tr',tBodyM);var cellM=Layer.createElement('td',rowM);cellM.className='dboxMainPanel';var contentArea=Layer.createElement('div',cellM);this.contentArea=contentArea;contentArea.className='dboxContentArea';var rowB=Layer.createElement('tr',tBodyM);var cellB=Layer.createElement('td',rowB);cellB.className='dboxButtons';var buttonsArea=Layer.createElement('div',cellB);this.buttonsArea=buttonsArea;Drag.init(titleCell,container,0,null,0);};Layer.prototype.createBox=function(){var container=Layer.createElement('div');container.style.position='absolute';container.style.display='none';container.dialogBox=this;this.container=container;var mainTable=Layer.createElement('table',container);mainTable.bgColor='#dddddd';mainTable.cellSpacing='10';mainTable.cellPadding='0';mainTable.border='0';var tBodyM=Layer.createElement('tbody',mainTable);var rowM=Layer.createElement('tr',tBodyM);var cellM=Layer.createElement('td',rowM);cellM.bgColor='#ffffff';var contentArea=Layer.createElement('div',cellM);this.contentArea=contentArea;};Layer.prototype.show=function(){if(this.isModal){this.veil=Layer.veiling.show(this.veilCss?this.veilCss:null);}Layer.body.toTop(this.container);this.container.style.display='block';Layer.box.hideShowBehind();};Layer.prototype.hide=function(){if(this.isModal){Layer.veiling.hide(this.veil);}if(this.contentType=='object'){this.contentArea.childNodes[0].style.display='none';this.htmlContentParent.appendChild(this.contentArea.childNodes[0]);}this.container.parentNode.removeChild(this.container);Layer.box.hideShowBehind();if(this.closeFunction){this.closeFunction();}};Layer.prototype.setWidth=function(width){this.contentArea.style.width=width+'px';};Layer.prototype.setHeight=function(height){this.contentArea.style.height=height+'px';this.contentArea.style.overflow='auto';};Layer.prototype.setTitle=function(title){this.titleCell.innerHTML=title;};Layer.prototype.setVeilCss=function(val){this.veilCss=val;};Layer.prototype.setContent=function(htmlContent){this.contentType=typeof htmlContent;if(this.contentType=='string'){this.contentArea.innerHTML=htmlContent;if(this.setID){this.container.id=(Layer.dialogName+Math.random());}}else if(this.contentType=='object'){htmlContent.style.position='relative';htmlContent.style.display='block';this.htmlContentParent=htmlContent.parentNode;this.contentArea.appendChild(htmlContent);if(this.setID){this.container.id=(Layer.dialogName+htmlContent.id);}}};Layer.prototype.resetForm=function(formName){if(document.forms[formName]){document.forms[formName].reset();}};Layer.prototype.setCloseFunction=function(func){this.closeFunction=func;};Layer.prototype.addButton=function(attributes){var button=document.createElement('input');button.type='button';button.id=(attributes.name?attributes.name:('btn'+Math.random()));button.name=(attributes.name?attributes.name:('btn'+Math.random()));button.value=(attributes.value?attributes.value:'Buton');button.style.cssText=(attributes.css?attributes.css:'');button.onclick=attributes.onclick||Layer.closeBox;this.buttonsArea.appendChild(button);};Layer.prototype.addToButtonsArea=function(html){this.buttonsArea.innerHTML=html;};Layer.prototype.focusOn=function(el){if(el){el.focus();}else{var els=this.contentArea.getElementsByTagName('input');if(els.length>0){for(var i=0;i<els.length;i++){if((els[i].type=='button')||(els[i].type=='text')){els[i].focus();break;}}}else{var buts=this.buttonsArea.getElementsByTagName('input');if(buts.length>0){buts[buts.length-1].focus();}}}};Layer.prototype.moveTo=function(x,y){if(!x||(x==-1)){x=Math.round((document.documentElement.clientWidth-this.container.offsetWidth)/2);}if(!y||(y==-1)){y=Math.round((document.documentElement.clientHeight-this.container.offsetHeight)/2)+document.documentElement.scrollTop;}this.container.style.left=x+'px';this.container.style.top=y+'px';};Layer.prototype.setUrl=function(url,height){if(!this.frmEl){this.frmEl=document.createElement('iframe');this.frmEl.frameBorder='no';this.frmEl.style.width='100%';if(height){this.frmEl.style.height=height+'px';}this.contentArea.appendChild(this.frmEl);}this.frmEl.src=url;};Layer.prototype.getUrl=function(){if(this.frmEl){var url=this.frmEl.src;if(this.frmEl.contentWindow){try{url=this.frmEl.contentWindow.location.href;}catch(e){}}return url;}return false;};Layer.prototype.getContentNode=function(){return this.contentArea;};Layer.initCloseIcon=function(){if(Layer.closeIcon==null){Layer.closeIcon=new Image();Layer.closeIcon.src=Layer.imagePath+'close.gif';}};Layer.closeBox=function(e){if(!e){e=window.event;}var node=e.target?e.target:e.srcElement;var count=0;while((node!=null)&&(count<Layer.maxDepth)){if(node.dialogBox){node.dialogBox.hide();break;}node=node.parentNode;count++;}};Layer.closeBoxById=function(id){var el=document.getElementById(Layer.dialogName+id);if(el&&el.dialogBox){el.dialogBox.hide();}};Layer.createElement=function(type,parent){var el=null;if(document.createElementNS){el=document.createElementNS('http://www.w3.org/1999/xhtml',type);}else{el=document.createElement(type);}if(typeof parent!='undefined'){parent.appendChild(el);}return el;};Layer.body={toTop:function(el,unclickable){if(!Layer.body.que){Layer.body.que=document.createElement('div');document.body.appendChild(Layer.body.que);}if(!el.bodyZ){el.bodyZ=Layer.body.nid++;if(!unclickable){addListener(el,'mousedown',function(){Layer.body.toTop(el)});}Layer.body.que.appendChild(el);Layer.body.set(el);}else if(el.bodyZ!=Layer.body.last.bodyZ){Layer.body.set(el);}},set:function(el){el.style.zIndex=Layer.body.nextZ++;Layer.body.last=el;},nid:1,nextZ:10001};Layer.veiling={show:function(css){var veil=Layer.veiling.create();for(var prop in Layer.veiling.css)veil.style[prop]=Layer.veiling.css[prop];if(css){for(var prop in css)veil.style[prop]=css[prop];}else{veil.style['backgroundColor']='#000000';veil.style['filter']='alpha(opacity=60)';veil.style['opacity']=0.6;}veil.style.display='block';return veil;},hide:function(el){el.parentNode.removeChild(el);},create:function(){var shadow=Layer.createElement('div');shadow.innerHTML='';Layer.body.toTop(shadow,true);addListener(window,'resize',function(){Layer.veiling.fix(shadow);});Layer.veiling.fix(shadow);return shadow;},fix:function(el){el.style.width=Math.max(document.body.scrollWidth,getWinW())+'px';el.style.height=Math.max(document.body.scrollHeight,getWinH())+'px';},css:{position:'absolute',display:'none',top:0,left:0,cursor:'not-allowed'}};Layer.box={getAllBox:function(){var divs=new Array();var els=document.getElementsByTagName('div');for(var i=0;i<els.length;i++){if(els[i].dialogBox){divs.push(els[i]);}}return divs;},getTopBox:function(){var divs=this.getAllBox();if(divs.length>0){return divs[divs.length-1];}else{return document.body;}},hideShowBehind:function(){var tags=new Array('object','applet','iframe','embed');if(navigator.appName=="Microsoft Internet Explorer"){var rawVersion=/MSIE\s([0-9]+)\.[0-9];/g.exec(navigator.appVersion);var version=parseInt(rawVersion[1]);if(version<7){tags.push('select');}}for(var k=0;k<tags.length;k++){var arr=document.getElementsByTagName(tags[k]);for(var i=0;i<arr.length;i++){arr[i].style.visibility='hidden';}}var target=this.getTopBox();for(var k=0;k<tags.length;k++){var arr=target.getElementsByTagName(tags[k]);for(var i=0;i<arr.length;i++){arr[i].style.visibility='visible';}}}};var Drag={obj:null,init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper){o.onmousedown=Drag.start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left))){o.root.style.left='0px';}if(o.vmode&&isNaN(parseInt(o.root.style.top))){o.root.style.top='0px';}if(!o.hmode&&isNaN(parseInt(o.root.style.right))){o.root.style.right='0px';}if(!o.vmode&&isNaN(parseInt(o.root.style.bottom))){o.root.style.bottom='0px';}o.minX=typeof minX!='undefined'?minX:null;o.minY=typeof minY!='undefined'?minY:null;o.maxX=typeof maxX!='undefined'?maxX:null;o.maxY=typeof maxY!='undefined'?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();},start:function(e){var o=Drag.obj=this;e=Drag.fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=e.clientX;o.lastMouseY=e.clientY;if(o.hmode){if(o.minX!=null){o.minMouseX=e.clientX-x+o.minX;}if(o.maxX!=null){o.maxMouseX=o.minMouseX+o.maxX-o.minX;}}else{if(o.minX!=null){o.maxMouseX=-o.minX+e.clientX+x;}if(o.maxX!=null){o.minMouseX=-o.maxX+e.clientX+x;}}if(o.vmode){if(o.minY!=null){o.minMouseY=e.clientY-y+o.minY;}if(o.maxY!=null){o.maxMouseY=o.minMouseY+o.maxY-o.minY;}}else{if(o.minY!=null){o.maxMouseY=-o.minY+e.clientY+y;}if(o.maxY!=null){o.minMouseY=-o.maxY+e.clientY+y;}}document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return false;},drag:function(e){e=Drag.fixE(e);var o=Drag.obj;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null){ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX);}if(o.maxX!=null){ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX);}if(o.minY!=null){ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY);}if(o.maxY!=null){ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY);}nx=x+((ex-o.lastMouseX)*(o.hmode?1:-1));ny=y+((ey-o.lastMouseY)*(o.vmode?1:-1));if(o.xMapper){nx=o.xMapper(y);}else if(o.yMapper){ny=o.yMapper(x);}Drag.obj.root.style[o.hmode?'left':'right']=nx+'px';Drag.obj.root.style[o.vmode?'top':'bottom']=ny+'px';Drag.obj.lastMouseX=ex;Drag.obj.lastMouseY=ey;Drag.obj.root.onDrag(nx,ny);return false;},end:function(){document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?'left':'right']),parseInt(Drag.obj.root.style[Drag.obj.vmode?'top':'bottom']));Drag.obj=null;},fixE:function(e){if(typeof e=='undefined'){e=window.event;}if(typeof e.layerX=='undefined'){e.layerX=e.offsetX;}if(typeof e.layerY=='undefined'){e.layerY=e.offsetY;}return e;}};
function getPosition(el){var r={x:el.offsetLeft,y:el.offsetTop};if(el.offsetParent){var tmp=getPosition(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}return r;}
function addListener(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);}else if(obj.attachEvent){obj.attachEvent('on'+evType,fn);}}
function remListener(obj,evType,fn){if(obj.removeEventListener){obj.removeEventListener(evType,fn,false);}else if(obj.detachEvent){obj.detachEvent('on'+evType,fn);}}
function getWinW(){if(document.documentElement&&(document.documentElement.clientWidth>0)){return document.documentElement.clientWidth;}else if(window.innerWidth){return window.innerWidth;}else{return document.body.clientWidth;}}
function getWinH(){if(window.innerHeight){return window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientHeight>0)){return document.documentElement.clientHeight;}else{return document.body.clientHeight;}}
function getScrollLeft(){if(window.pageXOffset){return window.pageXOffset;}else if(document.documentElement&&(document.documentElement.scrollLeft>0)){return document.documentElement.scrollLeft;}else{return document.body.scrollLeft;}}
function getScrollTop(){if(window.pageYOffset){return window.pageYOffset;}else if(document.documentElement&&(document.documentElement.scrollTop>0)){return document.documentElement.scrollTop;}else{return document.body.scrollTop;}}
function wolAdd(func){addListener(window,'load',function(){eval(func)});}
function worAdd(func){addListener(window,'resize',function(){eval(func)});}
function layer(status,target,width,height,title,buttons,opa){if(status=='hide'){Layer.closeBoxById(target);}else{var targetObj=document.getElementById(target);if(!targetObj){messageDialog('Hedef içerik bulunamadı!',{type:'OK',icon:'warning.gif'});}else{var dialog=new Layer(true,true,'auto');dialog.create();dialog.setWidth(width);dialog.setTitle(title);dialog.setContent(targetObj);if(opa||(Layer.box.getAllBox().length>0)){dialog.setVeilCss({backgroundColor:'#ffffff',filter:'alpha(opacity=0)',opacity:0});}if(buttons){if(buttons.align){dialog.buttonsArea.style.textAlign=buttons.align;}if(buttons.onClose){dialog.setCloseFunction(buttons.onClose);}switch(buttons.type){case'YESNO':var labelYES=buttons.labelYES?buttons.labelYES:'Evet';var labelNO=buttons.labelNO?buttons.labelNO:'HayÄ±r';var functionYES=buttons.functionYES?(typeof(buttons.functionYES)=='function'?buttons.functionYES:function(){eval(buttons.functionYES)}):function(){};var functionNO=buttons.functionNO?(typeof(buttons.functionNO)=='function'?buttons.functionNO:function(){eval(buttons.functionNO)}):function(){};dialog.addButton({name:'btnYes',value:labelYES,onclick:functionYES});dialog.addButton({name:'btnNo',value:labelNO,onclick:functionNO});break;case'YESNOCANCEL':var labelYES=buttons.labelYES?buttons.labelYES:'Evet';var labelNO=buttons.labelNO?buttons.labelNO:'Hayır';var labelCANCEL=buttons.labelCANCEL?buttons.labelCANCEL:'İptal';var functionYES=buttons.functionYES?(typeof(buttons.functionYES)=='function'?buttons.functionYES:function(){eval(buttons.functionYES)}):function(){};var functionNO=buttons.functionNO?(typeof(buttons.functionNO)=='function'?buttons.functionNO:function(){eval(buttons.functionNO)}):function(){};var functionCANCEL=buttons.functionCANCEL?(typeof(buttons.functionCANCEL)=='function'?buttons.functionCANCEL:function(){eval(buttons.functionCANCEL)}):function(){};dialog.addButton({name:'btnYes',value:labelYES,onclick:functionYES});dialog.addButton({name:'btnNo',value:labelNO,onclick:functionNO});dialog.addButton({name:'btnCancel',value:labelCANCEL,onclick:functionCANCEL});break;case'OKCANCEL':var labelOK=buttons.labelOK?buttons.labelOK:'Tamam';var labelCANCEL=buttons.labelCANCEL?buttons.labelCANCEL:'İptal';var functionOK=buttons.functionOK?(typeof(buttons.functionOK)=='function'?buttons.functionOK:function(){eval(buttons.functionOK)}):function(){};var functionCANCEL=buttons.functionCANCEL?(typeof(buttons.functionCANCEL)=='function'?buttons.functionCANCEL:function(){eval(buttons.functionCANCEL)}):function(){};dialog.addButton({name:'btnOk',value:labelOK,onclick:functionOK});dialog.addButton({name:'btnCancel',value:labelCANCEL,onclick:functionCANCEL});break;case'SAVECANCEL':var labelSAVE=buttons.labelSAVE?buttons.labelSAVE:'Kaydet';var labelCANCEL=buttons.labelCANCEL?buttons.labelCANCEL:'İptal';var functionSAVE=buttons.functionSAVE?(typeof(buttons.functionSAVE)=='function'?buttons.functionSAVE:function(){eval(buttons.functionSAVE)}):function(){};var functionCANCEL=buttons.functionCANCEL?(typeof(buttons.functionCANCEL)=='function'?buttons.functionCANCEL:function(){eval(buttons.functionCANCEL)}):function(){};dialog.addButton({name:'btnSave',value:labelSAVE,onclick:functionSAVE});dialog.addButton({name:'btnCancel',value:labelCANCEL,onclick:functionCANCEL});break;case'SAVEDELETECANCEL':var labelSAVE=buttons.labelSAVE?buttons.labelSAVE:'Kaydet';var labelDELETE=buttons.labelDELETE?buttons.labelDELETE:'Sil';var labelCANCEL=buttons.labelCANCEL?buttons.labelCANCEL:'İptal';var functionSAVE=buttons.functionSAVE?(typeof(buttons.functionSAVE)=='function'?buttons.functionSAVE:function(){eval(buttons.functionSAVE)}):function(){};var functionDELETE=buttons.functionDELETE?(typeof(buttons.functionDELETE)=='function'?buttons.functionDELETE:function(){eval(buttons.functionDELETE)}):function(){};var functionCANCEL=buttons.functionCANCEL?(typeof(buttons.functionCANCEL)=='function'?buttons.functionCANCEL:function(){eval(buttons.functionCANCEL)}):function(){};dialog.addButton({name:'btnSave',value:labelSAVE,onclick:functionSAVE});dialog.addButton({name:'btnDelete',value:labelDELETE,onclick:functionDELETE});dialog.addButton({name:'btnCancel',value:labelCANCEL,onclick:functionCANCEL});break;case"OK":var labelOK=buttons.labelOK?buttons.labelOK:'Tamam';var functionOK=buttons.functionOK?(typeof(buttons.functionOK)=='function'?buttons.functionOK:function(){eval(buttons.functionOK)}):function(){};dialog.addButton({name:'btnOk',value:labelOK,onclick:functionOK});break;default:if(buttons.html){dialog.addToButtonsArea(buttons.html);}}}dialog.show();addListener(window,'resize',function(){dialog.moveTo()});addListener(window,'scroll',function(){dialog.moveTo()});dialog.moveTo();dialog.resetForm(target+'form');dialog.focusOn();}}}
function messageDialog(message,properties,status){var targetID='processDialog';if(status&&(status=='hide')){if(document.getElementById(targetID)){layer('hide',targetID);document.getElementById(targetID).parentNode.removeChild(document.getElementById(targetID));}return false;}if(document.getElementById(targetID)){targetID=targetID+Math.random();}var el=Layer.createElement('div');el.id=targetID;var table=Layer.createElement('table',el);table.width='100%';table.border='0';table.cellPadding='0';table.cellSadding='0';var tbody=Layer.createElement('tbody',table);var tr=Layer.createElement('tr',tbody);var td=Layer.createElement('td',tr);td.align='center';td.height='85';if(properties&&properties.icon){var im=Layer.createElement('img',td);im.width='32';im.height='32';im.alt='Simge';im.border='0';im.hspace='5';im.align='absmiddle';im.src=Layer.imagePath+properties.icon;}var span=Layer.createElement('span',td);span.innerHTML=message;document.body.appendChild(el);var type=(properties&&properties.type)?properties.type:'OK';var title=(properties&&properties.title)?properties.title:'Mesaj';var closeFunc=(properties&&properties.onClose)?properties.onClose:'';switch(type){case"YESNO":var labelYES=properties.labelYES?properties.labelYES:'Evet';var labelNO=properties.labelNO?properties.labelNO:'Hayır';var functionYES=properties.functionYES?(typeof(properties.functionYES)=='function'?function(){properties.functionYES();layer('hide',targetID)}:function(){eval(properties.functionYES);layer('hide',targetID)}):function(){layer('hide',targetID)};var functionNO=properties.functionNO?(typeof(properties.functionNO)=='function'?function(){properties.functionNO();layer('hide',targetID)}:function(){eval(properties.functionNO);layer('hide',targetID)}):function(){layer('hide',targetID)};layer('show',targetID,400,160,title,{type:'YESNO',labelYES:labelYES,labelNO:labelNO,height:35,align:'center',functionYES:functionYES,functionNO:functionNO,onClose:closeFunc},(properties.opa?true:false));break;default:var labelOK=properties.labelOK?properties.labelOK:'Tamam';var functionOK=properties.functionOK?(typeof(properties.functionOK)=='function'?function(){properties.functionOK();layer('hide',targetID)}:function(){eval(properties.functionOK);layer('hide',targetID)}):function(){layer('hide',targetID)};layer('show',targetID,400,160,title,{type:'OK',labelOK:labelOK,height:35,align:'center',functionOK:functionOK,onClose:closeFunc},(properties.opa?true:false));}return true;}
function processDialog(status,message){var targetID='messageDialog';if(status&&(status=='hide')){Layer.closeBoxById(targetID);document.body.removeChild(document.getElementById(targetID));}else{var html=Layer.createElement('div');html.id=targetID;var table=Layer.createElement('table',html);table.width='100%';table.border='0';table.cellPadding='5';table.cellSpacing='0';var tbody=Layer.createElement('tbody',table);var tr1=Layer.createElement('tr',tbody);var tr2=Layer.createElement('tr',tbody);var td1=Layer.createElement('td',tr1);var td2=Layer.createElement('td',tr2);td1.align='center';td2.align='center';var img=Layer.createElement('img',td1);img.src='objects/loaders/loading.gif';img.alt='Yükleniyor...';var b=Layer.createElement('b',td2);b.innerHTML=message?message:'Yükleniyor, lütfen bekleyiniz...';document.body.appendChild(html);var dialog=new Layer(true,true);dialog.createBox();dialog.setWidth(250);dialog.setContent(html);dialog.setVeilCss({backgroundColor:'#ffffff',filter:'alpha(opacity=0)',opacity:0});dialog.show();addListener(window,'resize',function(){dialog.moveTo()});addListener(window,'scroll',function(){dialog.moveTo()});dialog.moveTo();}}
function processingModalDialog(status,text){if(!document.getElementById("processModalDialog")){var processDialog=document.createElement('div');processDialog.id='processModalDialog';processDialog.style.display='none';processDialog.style.textAlign='center';processDialog.style.fontWeight='bold';processDialog.innerHTML=result;document.body.appendChild(processDialog);}if(document.getElementById("processModalDialog")){if(status=="show"){var result='<table width="100%" height="95" border="0" cellpadding="0" cellspacing="0">\n';result+='<tr><td align="center">\n';if(text){result+=text;}else{result+='<img src="objects/sysicons/indicator.gif" width="16" height="16" alt="Yükleniyor" border="0" align="absmiddle" vspace="5" hspace="5"/> İşlem yapılıyor..';result+='<div style="color:#FF0000; font-weight:bold; line-height:30px">Lütfen bekleyin</div>';}result+='</td></tr>\n';result+='</table>';document.getElementById("processModalDialog").innerHTML=result;if(document.getElementById("processModalDialog").style.display=='none'){layer('show','processModalDialog',350,120,'İşlem Yapılıyor..');}}else{if(document.getElementById('processModalDialog')&&(document.getElementById("processModalDialog").style.display=='block')){layer('hide','processModalDialog');}}}};
function warningModalDialog(status,type,message){if(status=='show'){switch(type){case"warning":var color='#FF0000';break;case"caution":var color='#5eb500';break;default:var color='#999999';}var target=document.getElementById('warningDialog');if(!target){var el=document.createElement('div');el.id='warningDialog';el.style.position='absolute';el.style.backgroundColor=color;el.style.width='300px';el.style.height='50px';el.style.left=((document.documentElement.clientWidth/2)-150+document.documentElement.scrollLeft)+'px';el.style.top=((document.documentElement.clientHeight/2)-25+document.documentElement.scrollTop)+'px';el.style.overflow='hidden';el.style.border='2px outset #999999';el.style.zIndex='100';var r='<table width="100%" border="0" cellpadding="5" cellspacing="0">\n';r+='<tr><td id="warningDialogText" align="center" style="height:50px; color:#FFFFFF; font-weight:bold; font-size:12px">\n';r+=message;r+='</td></tr>\n';r+='</table>';el.innerHTML=r;document.body.appendChild(el);}else{document.getElementById('warningDialogText').innerHTML=message;document.getElementById('warningDialogText').style.backgroundColor=color;}}else{var target=document.getElementById('warningDialog');if(target){document.body.removeChild(target);}}hideshowbehind('content','warningDialog');};
function hideshowbehind(sourcename,targetname){var tags=new Array('object','applet','iframe','select','embed');var source=document.getElementById(sourcename);var target=document.getElementById(targetname);if(navigator.appName!="Microsoft Internet Explorer"){return false;}if(target){var p=getposition(target);var EX1=p.x;var EX2=target.offsetWidth+EX1;var EY1=p.y;var EY2=target.offsetHeight+EY1;}else{var EX1=0;var EX2=0;var EY1=0;var EY2=0;}for(var k=0;k<tags.length;k++){if(source){var ar=source.getElementsByTagName(tags[k]);}else{var ar=document.getElementsByTagName(tags[k]);}var cc=null;for(var i=0;i<ar.length;i++){cc=ar[i];p=getposition(cc);var CX1=p.x;var CX2=cc.offsetWidth+CX1;var CY1=p.y;var CY2=cc.offsetHeight+CY1;if((CX1>EX2)||(CX2<EX1)||(CY1>EY2)||(CY2<EY1)){cc.style.visibility='visible';}else{cc.style.visibility='hidden';}}}};
function getposition(el){var r={x:el.offsetLeft,y:el.offsetTop};if(el.offsetParent){var tmp=getposition(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}return r;}