   browserName = navigator.appName;
   browserVer = parseInt(navigator.appVersion);
   if ( (browserName == "Netscape" && browserVer >= 3) || 
   (browserName == "Microsoft Internet Explorer" && browserVer >= 4)) compat = "true";
   else compat = "false";
//---------------------------------------------------------------------------------------------------------
function mOvr(src,clrOver)
   {
   if (!src.contains(event.fromElement))
   {
   src.style.cursor = 'hand'; src.bgColor = clrOver;
   }
   }
//---------------------------------------------------------------------------------------------------------
function stopBanner() {
        if (bannerRunning)
                clearTimeout(timerID)
        bannerRunning = false
}
function startBanner() {
        stopBanner()
        showBanner()
}
function showBanner() {
        var text = ar[currentMessage]
        if (offset < text.length) {
                if (text.charAt(offset) == " ")
                        offset++                        
                var partialMessage = text.substring(0, offset + 1) 
                window.status = partialMessage
                offset++ 
                timerID = setTimeout("showBanner()", speed)
                bannerRunning = true
        } else {
                offset = 0
                currentMessage++
                if (currentMessage == ar.length)
                        currentMessage = 0
                timerID = setTimeout("showBanner()", pause)
                bannerRunning = true
        }
}
//---------------------------------------------------------------------------------------------------------

function mOut(src,clrIn)
   {
   if (!src.contains(event.toElement))
   {
   src.style.cursor = 'default';
   src.bgColor = clrIn;
   }
   }
//---------------------------------------------------------------------------------------------------------
function mClk(src)
   {
   if(event.srcElement.tagName=='TD')
   {
   src.children.tags('A')[0].click();
   }
   }
//---------------------------------------------------------------------------------------------------------
function getDate() {
    var days = new Array("Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi");
    var months = new Array("Ocak","Şubat","Mart","Nisan","Mayıs", "Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"); 
		
    var dateObj = new Date() 
    var lmonth = months[dateObj.getMonth()]
    var date = dateObj.getDate()
    var day = days[dateObj.getDay()];
    if ( dateObj.getYear() < 2000) {  
      var fyear = (1900 +dateObj.getYear()) 
    }
    else{   
      var fyear = dateObj.getYear()   
    } 
   // document.write(day)
   // document.write(" ")
    document.write(date)
    document.write(" ")
    document.write(lmonth)
    document.write(" ")
    document.write(fyear)
    document.write(", ")
    document.write(day)
  }
//---------------------------------------------------------------------------------------------------------
function showMsg(msg) {
  window.status = msg;
  return true;
}
//---------------------------------------------------------------------------------------------------------
function SelectUnSelectAll(flag, my_form, field_name)
{
	len = my_form.elements.length;
	var index = 0;
	for(index=0; index < len; index++ )
	{
	  if( my_form.elements[index].name == field_name )
	  {
	    my_form.elements[index].checked=flag;
	  }
	}
}
//---------------------------------------------------------------------------------------------------------
   function back() {
    if (compat == "true") {
    history.go(-1)
    }
   }
//---------------------------------------------------------------------------------------------------------
   function jumpBox(list) {
            if (compat == "true") {
              location.href = list.options[list.selectedIndex].value;
           }
   }
//---------------------------------------------------------------------------------------------------------
    function popupyap(link) {
        var popup = window.open("", "", "toolbar=0, location=0, directories=0, status=0, menubar=0,scrollbars=1,resizable=0,width=480,height=480");
        popup.location = link;}
    function PopUpResim(link) {
        var popup = window.open("", "", "toolbar=0, location=0, directories=0, status=0, menubar=0,scrollbars=1,resizable=1,width=320,height=240");
        popup.location = link;}

//---------------------------------------------------------------------------------------------------------
function setCookie( name, value )
{
	// '=' is identifier between name and value for real cookie.
	document.cookie = name + '=' + value
	/*
		this simple line work a huge job:
			cookie creation or replacement.
		implementing setSubCookie(),
		my brain did goes over and over amazing.
		fuck.
	*/
}
function getCookie( name )
{
	var flag = document.cookie.indexOf( name+'=' )
	if( flag != -1 ) {
		flag += name.length + 1
		end = document.cookie.indexOf( "; ", flag )
		if( end == -1 ) end = document.cookie.length
		return document.cookie.substring( flag, end )
	}
}

function setSubCookie( uName, name, value )
{
	uValue = getCookie( uName )
	if( uValue ) {
		// ':' is breaker for sub cookie each
		uCookies = uValue.split( ':' )
		var found = -1 // whether sub-cookie for the name is present
		for( c = 0; c < uCookies.length; c++ )
		{
			// '-' is identifier between name and value for sub cookie.
			t = uCookies[c].split( '-' )
			if( t[0] == name ) {
				found = 1
				t[1] = value
				uCookies[c] = t.join( '-' )
			}
		}
		if( found == -1 )
			uCookies[uCookies.length] = name + '-' + value
		uValue = uCookies.join( ':' )
	} else {
		uValue = name + '-' + value
	}
	// update real cookie
	setCookie( uName, uValue )
}
function getSubCookie( uName, name )
{
	uValue = getCookie( uName )
	if( !uValue ) return

	var flag = uValue.indexOf( name+'-' )
	if( flag != -1 ) {
		flag += name.length + 1
		end = uValue.indexOf( ':', flag )
		if( end == -1 ) end = uValue.length
		return uValue.substring( flag, end )
	}
}
//---------------------------------------------------------------------------------------------------------