function stoperror(){
return true
}
window.onerror=stoperror


_editor_url = "";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor/editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }


function Pop(filename, w, h){ 
popup = window.open(filename,"popDialog","height="+h+",width="+w+",leftmargin=0 ,marginwidth=0, topmargin=0 ,marginheight=0,location=0,resizable=1,toolbar=0,scrollbars=1,status=0,fullscreen=0,alwaysRaised=no,screenX=20,screenY=5,z-lock=yes,left=20,top=20") 
if ( popup.document.close() ) { 
popup.document.close() 
} 
} 

function popWindow( url, width, height, windowName )
{
	//get center coords
	var left = (screen.width - width) / 1;
    var top = (screen.height - height) / 1;
    
    win=window.open(url, windowName, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height='+ height + ',left=' + left + ',top=' + top);
}



function SayiKontrol(ths) 
{ 
        if (event.keyCode < 46 || event.keyCode > 57) 
    { 
        event.keyCode = 0; 
        return  false; 
    } 
    else 
        return true; 
} 

 


function fotoac(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
 }
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla(''"+img+"'')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
largh=foto1.width;
altez=foto1.height;
stringa="width="+largh+",height="+altez;
// finestra=window.open(img,"",stringa);
//finestra=window.open(img,'','height=500,width=400,left=100,top=100,scrollbars=no,toolbar=no,menubar=no,location=no');
//finestra=window.open(img,'',stringa+'location=0,resizable=1,toolbar=0,scrollbars=0,status=0,fullscreen=0,alwaysRaised=no,screenX=20,screenY=5,titlebar=yes,z-lock=yes,left=20,top=20');

title ='Resim'
html = '<html><head><title>'+title+'</title><META HTTP-EQUIV="imagetoolbar" CONTENT="no"></head><body onload="'+img+'" leftmargin=0 marginwidth=0 topmargin=0 marginheight=0><center><a href="javascript:window.close();" title=Kapat><img src="'+img+'" border=0 width='+largh+' height='+altez+'></a></center></body></html>';

prop="width="+ largh+",height="+altez+"location=0,resizable=1,toolbar=0,scrollbars=0,status=0,fullscreen=0,alwaysRaised=no,screenX=20,screenY=5,titlebar=yes,z-lock=yes,left=20,top=20";
win=window.open(img,'',prop);
win.document.open();
win.document.write(html);
win.document.close()
}






