var _onH = new Array(); var _onHParent = new Array(); //KOde by arkebion var processList = new Array(); var mainProcessList = new Array(); //open window function ow(url,g,y,s) { var xc = (document.documentElement.clientWidth) / 2; var yc = (document.documentElement.clientHeight) / 2; if(!s)s=1;else s=0;if(!g)g=320;if(!y)y=200; var myTest = window.open(url,"_blank","top="+yc+",left="+xc+"directories=0,location=0,menubar=0,scrollbars=1,resizeable=yes,status=0,toolbar=0,width="+g.toString()+",height="+y.toString()); if (!myTest) { alert("Açılır Pencere Engellendi! \nLütfen tarayıcınızın ayarlarını kontrol ediniz."); } else { myTest.focus(); return false; } } //advanced open window function aow(my_url,my_settings) { my_settings = my_settings.replace(new RegExp("true","gi"),"1"); my_settings = my_settings.replace(new RegExp("false","gi"),"0"); var w = window.open(my_url,"_blank",my_settings); w.focus(); } //open modal function om(url,g,y) { var now = new Date(); var flag = url.search(/\?/gi); if(flag != -1) var seperator = "&"; else var seperator = "?"; url = url + seperator +"time="+ now.getSeconds() + now.getMinutes() + now.getHours(); if(!g)g=320;if(!y)y=200; xx = setTimeout(function() { alert("Argggh, Açılır Pencere Engellendi! \nLütfen tarayıcınızın ayarlarını kontrol ediniz."); },100); var myTest = window.showModalDialog(url,window,"dialogHeight: "+y+"px; dialogWidth: "+g+"px; edge: Raised; center: Yes; resizable: No; status: No;Help: No; unadorned:Yes "); clearTimeout(xx); } function confirmDialog(confirmationString) { return om("confirm.php?s="+confirmationString,250,200); } function resizeDialogToContent() { if(window.dialogWidth) { // resize window so there are no scrollbars visible var dw = window.dialogWidth; while (isNaN(dw)) { dw = dw.substr(0,dw.length-1); } difw = dw - this.document.body.clientWidth; window.dialogWidth = this.document.body.scrollWidth+difw+'px'; var dh = window.dialogHeight; while (isNaN(dh)) { dh = dh.substr(0,dh.length-1); } difh = dh - this.document.body.clientHeight; window.dialogHeight = this.document.body.scrollHeight+difh+'px'; } } function resizeWindowToContent() { var dw = document.documentElement.offsetWidth; while (isNaN(dw)) { dw = dw.substr(0,dw.length-1); } difw = dw - this.document.body.clientWidth; var width = this.document.body.scrollWidth+difw+5; var dh = document.documentElement.offsetHeight; while (isNaN(dh)) { dh = dh.substr(0,dh.length-1); } difh = dh - (this.document.body.clientHeight+this.document.body.clientTop); var height = this.document.body.scrollHeight+difh+40; dif = this.document.body.scrollHeight - this.document.body.clientHeight; window.resizeTo(width,height); // IE7 fix setTimeout('resizeWindowToContentFix('+width+','+height+');', 10); //center the window if(opener) { var windowOpener = (opener) ? opener : parent; var xc = (windowOpener.document.documentElement.offsetWidth - width) / 2; var yc = (windowOpener.document.documentElement.offsetHeight - height) / 2 - 40; window.moveTo(xc+windowOpener.screenLeft,yc+windowOpener.screenTop); } } function resizeWindowToContentFix(width,height) { width += this.document.body.scrollWidth - this.document.body.clientWidth; height += this.document.body.scrollHeight - this.document.body.clientHeight; window.resizeTo(width,height); //center the window if(opener) { var windowOpener = (opener) ? opener : parent; var xc = (windowOpener.document.documentElement.offsetWidth - width) / 2; var yc = (windowOpener.document.documentElement.offsetHeight - height) / 2; window.moveTo(xc+windowOpener.screenLeft,yc+windowOpener.screenTop); } } function menuStart() { document.writeln(""); } function menuItem(t,v,lt) { if(!lt) lt = "right" document.writeln(""); } function menuEnd() { document.writeln("
"); } function cc(item, color) { item.style.background = color; } function cL(link,lt) { if(lt == "top") parent.location.replace("index.php?a="+link); } function cc(obj, className) { obj.className = className; } var clickedMenuItem = 0; function naVpreloadImages() { //v3.0 var d=document; if(d.images){ if(!d.naVp) d.naVp=new Array(); var i,j=d.naVp.length,a=naVpreloadImages.arguments; for(i=0; i 10; } function flatSelected(cal, date) { var el = document.getElementById("preview"); el.innerHTML = date; } function showFlatCalendar() { var parent = document.getElementById("display"); // construct a calendar giving only the "selected" handler. var cal = new Calendar(true, null, flatSelected); // hide week numbers cal.weekNumbers = false; // We want some dates to be disabled; see function isDisabled above cal.setDisabledHandler(isDisabled); cal.setDateFormat("%A, %B %e"); // this call must be the last as it might use data initialized above; if // we specify a parent, as opposite to the "showCalendar" function above, // then we create a flat calendar -- not popup. Hidden, though, but... cal.create(parent); // ... we can show it here. cal.show(); } function IstNum(evnt,obj) { var nn=obj.value var charCode = (navigator.appName == "Netscape") ? evnt.which : evnt.keyCode // allow minus sign at the beginning: if (obj.value.length==0 && charCode==45) return true // permit 1 decimal place... // permit 2 floating point if (nn.indexOf(".") != -1 && obj.value.length > (nn.indexOf(".")+3)) return false; if (charCode==46 && nn.indexOf(".")==-1) return true // ...and numbers if (charCode == 44 && nn.indexOf(".")==-1) { obj.value = obj.value + "."; return false; } if (charCode > 31 && (charCode < 48 || charCode > 57 )){ return false } return true } function cancelKey(evt) { if((evt.ctrlKey && evt.keyCode == 67) || (evt.ctrlKey && evt.keyCode == 86)) evt.returnValue = true; else { evt.keyCode = 0; evt.returnValue = false; } } var activeRowColor; function listerHighlightRow(rowId,color) { var row = document.getElementById(rowId); var selected = row.getAttribute('selected'); if(selected == "false") activeRowColor = row.style.background; else activeRowColor = ""; var selected = row.getAttribute('selected'); if(selected == "false") row.style.background = color; } function listerLowlightRow(rowId,color) { var row = document.getElementById(rowId); var selected = row.getAttribute('selected'); if(selected == "false") { if(activeRowColor) row.style.background = activeRowColor; else { row.style.background = color; } } } function listerSelectRow(rowId,selectedColor,color) { var row = document.getElementById(rowId); var selected = row.getAttribute('selected'); if(selected == "false") { row.setAttribute('selected','true'); row.style.background = selectedColor; } else { row.setAttribute('selected','false'); row.style.background = color; } } function findPosX(obj) { return $(obj).getPosition().x; } // Y Locator function findPosY(obj) { return $(obj).getPosition().y; } // Hide element function hide( el ){ el.style.display='none'; } // Show element function show( el ){ el.style.display='block'; } // Returns noBr'ed string function noBr( fk ){ return ""+fk+"" } document.onmouseup=function(){ _resizerDown=0; //document.onselectstart=function(){return true;} document.onmousemove = function(){return true;} document.onselectstart = new function(){return true;} try{ clrIH( $('_conResWid') ); }catch(e){''} try{ hide( $('_conResWid') ); }catch(e){''} try{ hide( $('_conResClone') ); }catch(e){''} } function createHidden( name, value ) { var np = document.createElement('INPUT'); np.name = name; np.type = 'HIDDEN'; np.value= value; np.className = 'hidden'; return np; } // START MESSAGE BOX STUFF function hmArray( arr) { var ct=0; for(var i =0; i maxY ){ if( maxY == 0) {xstepper = 1;ystepper = 0;maxI = maxX;} else{ maxI = maxY; xstepper = maxX / maxY; ystepper = 1; } } else{ if( maxX == 0) {ystepper = 1;xstepper = 0;maxI = maxY;} else{ ystepper = maxY / maxX; xstepper = 1; maxI = maxX; } } speedx = speedy = speed; if( dify < 0 ) speedy = -speed; if( difx < 0 ) speedx = -speed; this.speedx = speedx; this.speedy = speedy; this.xstepper = xstepper; this.ystepper = ystepper; this.xstepper<0 ? this.xstepper = -this.xstepper : ''; this.ystepper<0 ? this.ystepper = -this.ystepper : ''; maxI<0 ? maxI = -maxI : ''; //alert(xstepper+' '+ystepper) while ( i maxY ){ if( maxY == 0) {xstepper = 1;ystepper = 0;maxI = maxX;} else{ maxI = maxY; xstepper = maxX / maxY; ystepper = 1; } } else{ if( maxX == 0) {ystepper = 1;xstepper = 0;maxI = maxY;} else{ ystepper = maxY / maxX; xstepper = 1; maxI = maxX; } } speedx = speedy = speed; if( dify < 0 ) speedy = -speed; if( difx < 0 ) speedx = -speed; this.speedx = speedx; this.speedy = speedy; this.xstepper = xstepper; this.ystepper = ystepper; this.xstepper<0 ? this.xstepper = -this.xstepper : ''; this.ystepper<0 ? this.ystepper = -this.ystepper : ''; maxI<0 ? maxI = -maxI : ''; while ( i= 65 && charOrd <= 90) || (charOrd >= 97 && charOrd <= 122) || (charOrd >= 48 && charOrd <= 57) || (charOrd == 33) || (charOrd == 36) || (charOrd == 95)) { // this is alphanumeric or $-_.+!*'(), which according to RFC1738 we don't escape res += str.charAt(i); } else { res += '%'; if (charOrd > 255) res += 'u'; hexValStr = charOrd.toString(16); if ((hexValStr.length) % 2 == 1) hexValStr = '0' + hexValStr; res += hexValStr; } } return res; } function findNodeIndex( node,parElement ){ var nname = node.nodeName; nodeCol = (!parElement ? document.getElementsByTagName(nname) : parElement.getElementsByTagName(nname) ); for(var i=0;i