<!--
/**********************************************
* utility.js                                  *
*                                             *
* allita                                      *
**********************************************/

function pencere(url, w, h, t, l, x)
{
	//var x;

	var param='';
	param=param+'directories=no';
	param=param+',location=no';
	param=param+',menubar=yes';
	param=param+',resizable=yes';
	param=param+',status=yes';
	param=param+',toolbar=yes';
	param=param+',scrollbars=yes';
	param=param+',top=150';
	param=param+',left=400';
	param=param+',width='+w;
	param=param+',height='+h;
	window.open(url, x, param);
}
function buyukResimPencere(resimURL)
{
	var x='resim';

	var param='';
	param=param+'directories=no';
	param=param+',location=no';
	param=param+',menubar=no';
	param=param+',resizable=yes';
	param=param+',status=no';
	param=param+',toolbar=no';
	param=param+',scrollbars=yes';
	param=param+',top=50';
	param=param+',left=50';
	param=param+',width=830';
	param=param+',height=620';
	window.open('/buyuk_resim.aspx?resim=' + resimURL, x, param);
}

function FlashYaz(id,w,h,source, wm, bgc, fvar, StartTag, EndTag)
{
	if (wm=='t') wmode='transparent';
	else wmode='opaque';

	document.writeln(StartTag);
	document.writeln('<object width="' + w + '" height="' + h + '" id="' + id + '" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
	document.writeln('<param name="movie" value="' + source + '" />');
	document.writeln('<param name="bgcolor" value="' + bgc + '" />');
	document.writeln('<param name="wmode" value="' + wmode + '" />');
	document.writeln('<param name="FlashVars" value="' + fvar + '" />');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="menu" value="false" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="salign" value="t" />');
	document.writeln('<embed id="' + id + '" name="' + id + '" src="' + source + '" quality="high" flashvars="' + fvar + '" wmode="' + wmode + '" bgcolor="' + bgc + '" width="' + w + '" height="' + h + '" align="middle" salign="t" menu="false" scale="noscale" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
	document.writeln(EndTag);
}


function git(frm, box){
	eval("var indis=document." + frm + "." + box + ".selectedIndex;");
	eval("var sayfa=document." + frm + "." + box + ".options[indis].value;");
	if (sayfa!="") {window.location.href=sayfa;}
}

function XMLHTTP_Olustur()
{
     var retval=null;
     try
     {
          retval=new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch(e)
     {
          try
          {
               retval=new ActiveXObject("Microsoft.XMLHTTP");
          } 
          catch(oc)
          {
               retval=null;
          }
     }

     if(!retval && typeof XMLHttpRequest != "undefined") 
     {
          retval=new XMLHttpRequest();
     }

     return retval;
}

function getWindowHeight() {
    if (self.innerHeight) return self.innerHeight;
    if (document.documentElement && document.documentElement.clientHeight)
        return document.documentElement.clientHeight;
    if (document.body) return document.body.clientHeight;
    return 0;
};

function getWindowWidth() {
    if (self.innerWidth) return self.innerWidth;
    if (document.documentElement && document.documentElement.clientWidth)
        return document.documentElement.clientWidth;
    if (document.body) return document.body.clientWidth;
    return 0;
};

var setMouseOverColor = function(element, renk) {
    tablo_ilk_renk = element.style.backgroundColor;
    element.style.backgroundColor = renk;
    element.style.cursor = 'pointer';
}
var setMouseOutColor = function(element) {
    element.style.backgroundColor = tablo_ilk_renk;
}

//-->
