function Browser() {
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('WebMetre:/nUnidentified browser./nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom);
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}
is = new Browser();
function IsDigit(e,allowDot) {
	key = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;
	str = false;
	if (allowDot)
//		str = ( (key >= 48) && (key <= 57) || key == 46 )
		str = ( (key >= 48) && (key <= 57) || key == 46 ) == false;
	else
		str = (key >= 48) && (key <= 57) == false;
	if ( str ) { 
		if(is.ie) 
			e.returnValue = false; 
		else 
			e.preventDefault(); 
	} 
}

function getObj(name){if (document.getElementById){return document.getElementById(name);} else if (document.all){return document.all[name];} else if (document.layers) {return document.layers[name];} else return false;}
function getObjS(name){if (document.getElementById){return document.getElementById(name).style;} else if (document.all){return document.all[name].style;} else if (document.layers) {return document.layers[name];} else return false;}

function getIndex(what,which) {
	for (var i=0;i < what.elements.length;i++)
    	if (what.elements[i].name == which)
            return i;
    return -1;
}

function ZoomIn(tag, en, boy) {
var params = "location=no,directories=no,status=no,scrollbars=no,toolbar=no,resizable=no,dependent=yes,screenX=5,screenY=5,menubar=no,width="+en+",height="+boy;
	jszoom = window.open("", "Pencere", params);
	jszoom.document.open("text/html");
	jszoom.document.writeln("<html>");
	jszoom.document.writeln("<head>");
	jszoom.document.writeln("<title>Büyük Resim - Large Image</title>");
	jszoom.document.writeln("<head>");
	jszoom.document.writeln("<body bgcolor='#FFFFFF' leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>");
	jszoom.document.writeln("<table border=0 align=center cellspacing=0 cellpadding=0>");
	jszoom.document.writeln(" <tr>");
	jszoom.document.writeln("   <td align=center valign=top>"+tag+"</td></tr>");
	jszoom.document.writeln(" </tr><tr>");
	jszoom.document.writeln("   <td align=center valign=top>&nbsp;<br><a href='javascript:self.close()'><font face=Verdana,Geneva,Arial,Helvetica,sans-serif size=2>Pencereyi Kapat</font></a></td>");
	jszoom.document.writeln(" </tr>");
	jszoom.document.writeln("</table>");
	jszoom.document.writeln("</body></html>");
	jszoom.document.writeln("</html>");
	jszoom.focus();
}

function ZoomPic(url, en, boy) {
	ZoomIn("<img src='"+url+"' border=0>", en, boy);
}

