    strVariant = (new Date()).getTime()
    
    function AjaxSayfalar()
    {
        dtBugun = new Date() ;
        HaftaninGunu = dtBugun.getDay();
        if (HaftaninGunu == "0")
        {
            HaftaninGunu = "7";
        }
        document.getElementById("lnk_" + HaftaninGunu).className += "_h";
        
        document.getElementById("yaIcerik").innerHTML = '<div style="width: 100%; text-align: center"><img vspace="20" alt="" src="images/indicator.gif" /></div>';
	    if (window.XMLHttpRequest) {
		    XmlHttp=new XMLHttpRequest();
		    XmlHttp.onreadystatechange = function(){XMLYayinAkisiContent("yaIcerik")};
		    XmlHttp.open("GET.html","AjaxYayinAkisi.aspx?Gun=" + HaftaninGunu + "&T=" + strVariant,true);
		    XmlHttp.send(null)
	    } 
	    else if (window.ActiveXObject) {
		    XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		     if (XmlHttp) {
		 	    XmlHttp.onreadystatechange = function(){XMLYayinAkisiContent("yaIcerik")};
			    XmlHttp.open("GET.html", "AjaxYayinAkisi.aspx?Gun=" + HaftaninGunu + "&T=" + strVariant, true);
			    XmlHttp.send()
		    }
	    }
    }
    function XMLYayinAkisiContent(strElementID) {
	    if (XmlHttp.readyState==4) {
		    if (XmlHttp.status==200 && XmlHttp.responseText != "") {
			    document.getElementById(strElementID).innerHTML = XmlHttp.responseText;
			    setTimeout("HaberAjax()", 1);
		    } 
		    else {
			    alert('İşlem gerçekleştirilemedi!');
		    }
	    }
    }

    
    function HaberAjax() {
        //document.getElementById("Kategori_1").style.fontWeight = "bold";
//	    document.getElementById("HaberGenel").innerHTML = '<div style="width: 100%; text-align: center"><img vspace="20" alt="" src="images/indicator.gif" /></div>';
//	    if (window.XMLHttpRequest) {
//		    XmlHttp=new XMLHttpRequest();
//		    XmlHttp.onreadystatechange = function(){XMLHaberContent("HaberGenel")};
//		    XmlHttp.open("GET","AjaxAnasayfaHaberler.aspx?T=" + strVariant,true);
//		    XmlHttp.send(null)
//	    } 
//	    else if (window.ActiveXObject) {
//		    XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
//		     if (XmlHttp) {
//		 	    XmlHttp.onreadystatechange = function(){XMLHaberContent("HaberGenel")};
//			    XmlHttp.open("GET", "AjaxAnasayfaHaberler.aspx?T=" + strVariant, true);
//			    XmlHttp.send()
//		    }
//	    }
    }

    function XMLHaberContent(strElementID) {
	    if (XmlHttp.readyState==4) {
		    if (XmlHttp.status==200 && XmlHttp.responseText != "") {
			    document.getElementById(strElementID).innerHTML = XmlHttp.responseText;
			    setTimeout("SporHaberAjax()", 1);
		    } 
		    else {
			    alert('İşlem gerçekleştirilemedi!');
		    }
	    }
    }
    
    
    function SporHaberAjax() {
        document.getElementById("lnkSporKategori_1").style.fontWeight = "bold";
	    document.getElementById("SporHaberleri").innerHTML = '<div style="width: 100%; text-align: center"><img vspace="20" alt="" src="images/indicator.gif" /></div>';
	    if (window.XMLHttpRequest) {
		    XmlHttp=new XMLHttpRequest();
		    XmlHttp.onreadystatechange = function(){XMLSporHaberContent("SporHaberleri")};
		    XmlHttp.open("GET.html","AjaxAnasayfaSporHaberler.aspx?KutuRenk=1&KategoriTur=Spor&T=" + strVariant,true);
		    XmlHttp.send(null)
	    } 
	    else if (window.ActiveXObject) {
		    XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		     if (XmlHttp) {
		 	    XmlHttp.onreadystatechange = function(){XMLSporHaberContent("SporHaberleri")};
			    XmlHttp.open("GET.html", "AjaxAnasayfaSporHaberler.aspx?KutuRenk=1&KategoriTur=Spor&T=" + strVariant, true);
			    XmlHttp.send()
		    }
	    }
    }


    function XMLSporHaberContent(strElementID) {
	    if (XmlHttp.readyState==4) {
		    if (XmlHttp.status==200 && XmlHttp.responseText != "") {
			    document.getElementById(strElementID).innerHTML = XmlHttp.responseText;
		    } 
		    else {
			    alert('İşlem gerçekleştirilemedi!');
		    }
	    }
    }

    function YayinAkisi(intGun)
    {
        document.getElementById("lnk_1").className = "pzrt";
        document.getElementById("lnk_2").className = "sa";
        document.getElementById("lnk_3").className = "ca";
        document.getElementById("lnk_4").className = "pe";
        document.getElementById("lnk_5").className = "cu";
        document.getElementById("lnk_6").className = "cum";
        document.getElementById("lnk_7").className = "pa";
        document.getElementById("lnk_" + intGun).className += "_h";
        
        ajaxHttp("AjaxYayinAkisi.aspx?Gun=" + intGun, "yaIcerik");
    }

    function YayinAkisiProgramlar(intGun)
    {
        document.getElementById("lnk_1").className = "pzrt";
        document.getElementById("lnk_2").className = "sa";
        document.getElementById("lnk_3").className = "ca";
        document.getElementById("lnk_4").className = "pe";
        document.getElementById("lnk_5").className = "cu";
        document.getElementById("lnk_6").className = "cum";
        document.getElementById("lnk_7").className = "pa";
        document.getElementById("lnk_" + intGun).className += "_h";
        
        ajaxHttp("AjaxYayinAkisi.aspx?Adet=6&Gun=" + intGun, "yaIcerik");
    }
    
    function HaberKategoriSec(intKategoriID, intElementID)
    {
        for(x=1;x<6;x++)
        {
            document.getElementById("Kategori_" + x).style.fontWeight = "normal";
        }
        document.getElementById("Kategori_" + intElementID).style.fontWeight = "bold";
        ajaxHttp("AjaxAnasayfaHaberler.aspx?KategoriID=" + intKategoriID + "", "HaberGenel");
    }
    
    function SporHaberKategoriSec(intKategoriID, intElementID)
    {
        for(x=1;x<5;x++)
        {
            document.getElementById("lnkSporKategori_" + x).style.fontWeight = "normal";
        }
        document.getElementById("lnkSporKategori_" + intElementID).style.fontWeight = "bold";
        ajaxHttp("AjaxAnasayfaSporHaberler.aspx?KategoriID=" + intKategoriID + "", "SporHaberleri");
    }
    
    function ajaxHttp(strURL, strElementID) {
        if (strURL.indexOf("?") != -1)
        {
	        strURL = strURL + "&T=" + (new Date()).getTime();
	    }
	    else
	    {
	        strURL = strURL + "?T=" + (new Date()).getTime();
	    }
    	
	    document.getElementById(strElementID).innerHTML = '<div style="width: 100%; text-align: center"><img vspace="20" alt="" src="images/indicator.gif" /></div>';
	    if (window.XMLHttpRequest) {
		    XmlHttp=new XMLHttpRequest();
		    XmlHttp.onreadystatechange = function(){XMLContent(strElementID)};
		    XmlHttp.open("GET.html",strURL,true);
		    XmlHttp.send(null)
	    } 
	    else if (window.ActiveXObject) {
		    XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		     if (XmlHttp) {
		 	    XmlHttp.onreadystatechange = function(){XMLContent(strElementID)};
			    XmlHttp.open("GET.html", strURL, true);
			    XmlHttp.send()
		    }
	    }
    }

    function XMLContent(strElementID) {
	    if (XmlHttp.readyState==4) {
		    if (XmlHttp.status==200 && XmlHttp.responseText != "") {
				    document.getElementById(strElementID).innerHTML = XmlHttp.responseText;
		    } 
		    else {
			    alert('İşlem gerçekleştirilemedi!');
		    }
	    }
    }
    
    function AjaxProgramYayinAkisiBugun()
    {
        dtBugun = new Date() ;
        HaftaninGunu = dtBugun.getDay();
        if (HaftaninGunu == "0")
        {
            HaftaninGunu = "7";
        }
        document.getElementById("lnk_" + HaftaninGunu).className += "_h";
        
        document.getElementById("yaIcerik").innerHTML = '<div style="width: 100%; text-align: center"><img vspace="20" alt="" src="images/indicator.gif" /></div>';
	    if (window.XMLHttpRequest) {
		    XmlHttp=new XMLHttpRequest();
		    XmlHttp.onreadystatechange = function(){XMLProgramYayinAkisiContent("yaIcerik")};
		    XmlHttp.open("GET.html","AjaxYayinAkisi.aspx?Adet=5&Gun=" + HaftaninGunu + "&T=" + strVariant,true);
		    XmlHttp.send(null)
	    } 
	    else if (window.ActiveXObject) {
		    XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		     if (XmlHttp) {
		 	    XmlHttp.onreadystatechange = function(){XMLProgramYayinAkisiContent("yaIcerik")};
			    XmlHttp.open("GET.html", "AjaxYayinAkisi.aspx?Adet=5&Gun=" + HaftaninGunu + "&T=" + strVariant, true);
			    XmlHttp.send()
		    }
	    }
    }
    function XMLProgramYayinAkisiContent(strElementID) {
	    if (XmlHttp.readyState==4) {
		    if (XmlHttp.status==200 && XmlHttp.responseText != "") {
			    document.getElementById(strElementID).innerHTML = XmlHttp.responseText;
		    } 
		    else {
			    alert('İşlem gerçekleştirilemedi!');
		    }
	    }
    }
    
    function VideoOynat(strURL)
    {
        document.write('<!--Video Player-->');
        document.write('<object id=\"objVideo\" width=\"320\" height=\"285\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft Windows Media Player components...\" type=\"application/x-oleobject\">');
        document.write('<!-- IE icin -->');
        document.write('<param name=\"FileName\" value=\"' + strURL + '\">');
        document.write('<param name=\"AutoStart\" value=\"1\">');
        document.write('<param name=\"AutoSize\" value=\"0\">');
        document.write('<param name=\"Volume\" value=\"-200\">');
        document.write('<param name=\"ShowControls\" value=\"1\">');
        document.write('<param name=\"ShowDisplay\" value=\"0\">');
        document.write('<param name=\"ShowStatusBar\" value=\"0\">');
        document.write('<param name=\"ShowGotoBar\" value=\"0\">');
        document.write('<param name=\"ShowTracker\" value=\"1\">');
        document.write('<param name=\"ShowPositionControls\" value=\"0\">');
        document.write('<param name=\"EnablePositionControls\" value=\"0\">');
        document.write('<param name=\"EnableContextMenu\" value=\"0\">');
        document.write('<!-- Firefox icin -->');
        document.write('<embed type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/download/default.asp\" filename=\"' + strURL + '\" name=\"TVLivePlay\" AutoStart=\"1\" AutoSize=\"0\" Volume=\"-200\" ShowControls=\"1\" ShowDisplay=\"0\" ShowStatusBar=\"0\" ShowGotoBar=\"0\" ShowTracker=\"0\" ShowPositionControls=\"0\" EnablePositionControls=\"1\" EnableContextMenu=\"1\" width=\"320\" height=\"285\"></embed>');
        document.write('</object>');
        document.write('<!--Video Player-->');
    }
    
    function VideoOynatKucuk(strURL, intAutoStart)
    {
        document.write('<!--Video Player-->');
        document.write('<object id=\"objVideo\" width=\"200\" height=\"213\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft Windows Media Player components...\" type=\"application/x-oleobject\">');
        document.write('<!-- IE icin -->');
        document.write('<param name=\"FileName\" value=\"' + strURL + '\">');
        document.write('<param name=\"AutoStart\" value=\"' + intAutoStart + '\">');
        document.write('<param name=\"AutoSize\" value=\"0\">');
        document.write('<param name=\"Volume\" value=\"-200\">');
        document.write('<param name=\"ShowControls\" value=\"1\">');
        document.write('<param name=\"ShowDisplay\" value=\"0\">');
        document.write('<param name=\"ShowStatusBar\" value=\"0\">');
        document.write('<param name=\"TransparentAtStart\" value=\"1\">');		
        document.write('<param name=\"ShowGotoBar\" value=\"0\">');
        document.write('<param name=\"ShowTracker\" value=\"0\">');
        document.write('<param name=\"ShowPositionControls\" value=\"0\">');
        document.write('<param name=\"EnablePositionControls\" value=\"0\">');
        document.write('<param name=\"EnableContextMenu\" value=\"0\">');
        document.write('<!-- Firefox icin -->');
        document.write('<embed type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/download/default.asp\" filename=\"' + strURL + '\" TransparentAtStart=\"1\" name=\"TVLivePlay\" AutoStart=\"' + intAutoStart + '\" AutoSize=\"0\" Volume=\"-200\" ShowControls=\"1\" ShowDisplay=\"0\" ShowStatusBar=\"0\" ShowGotoBar=\"0\" ShowTracker=\"0\" ShowPositionControls=\"0\" EnablePositionControls=\"1\" EnableContextMenu=\"1\" width=\"200\" height=\"213\"></embed>');
        document.write('</object>');
        document.write('<!--Video Player-->');
    }
    

    function textboxMultilineMaxNumber(txt,maxLen){
    try{
    if(txt.value.length > (maxLen-1))return false;
    }catch(e){
    }
    }
