tr = {};

tr.DortNet = {
	surum: '1.0.0',
	zindexSay:1000
};

if(!tr.DortNet.tarayici) 
tr.DortNet.tarayici = {
	surum : navigator.appVersion,
	isim : navigator.appName,
	NSMi : Boolean(navigator.productSub),
	IEMi : (navigator.appVersion.indexOf("MSIE 5") != -1 || navigator.appVersion.indexOf("MSIE 6") != -1) ? 1 : 0,
	IE55Mi : (navigator.appVersion.indexOf("MSIE 5.5") != -1) ? 1 : 0,
	digerMi : (!this.NSMi && !this.IEMi) ? 1 : 0
};


//tr.DortNet.ca.Kayanyazi BAŞLA
tr.DortNet.Kayanyazi = Class.create();
tr.DortNet.Kayanyazi.prototype = 
{
    initialize: function(deger) 
    {
        this.id = deger.id;
        this.hiz = 1; 
    },
    dur: function()
    {
        $(this.id).stop();    
    },
    yukari: function()
    {
        $(this.id).direction = "up";
        $(this.id).scrollAmount = this.hiz;
        $(this.id).start();    
    },
    yukari2: function()
    {
        $(this.id).direction = "up";
        $(this.id).scrollAmount = this.hiz+2;
        $(this.id).start();    
    },
    asagi: function()
    {
        $(this.id).direction = "down";
        $(this.id).scrollAmount = this.hiz +2;
    
    }
}
//tr.DortNet.ca.Kayanyazi SON



//tr.DortNet.NotSorgula BAŞLA
tr.DortNet.NotSorgula = Class.create();
tr.DortNet.NotSorgula.prototype = 
{
    initialize: function(deger) 
    {
        this.id = deger.id;
		this.eleman = $(this.id);
    },
	set: function(deger) 
    {
		 this.no = deger.no; 
		 this.ogr_no = deger.ogr_no;   	 
		 this.adisoyadi = deger.adisoyadi;   	 
		 this.yazili1 = deger.yazili1;   	 
		 this.yazili2 = deger.yazili2;   	 
		 this.yazili3 = deger.yazili3;   	 
		 this.sozlu1 = deger.sozlu1;   	 
		 this.sozlu2 = deger.sozlu2;   	 
		 this.mesaj = deger.mesaj;  
    },
    goster: function()
    {
		var gecici = '';
		gecici += '<table width="350" cellpadding="0" cellspacing="0" border="0">';
		gecici += '	<tr>';
		gecici += '		<td width="14"><img src="resim/tb_ust_sol.png" width="14" height="22"></td>';
		gecici += '		<td background="resim/tb_ust_orta.png" class="sari_K">'+this.adisoyadi+'</td>';
		gecici += '		<td width="10"><img src="resim/tb_ust_sag.png" width="10" height="22"></td>';
		gecici += '	</tr>';
		gecici += '	<tr>';
		gecici += '		<td colspan="3">';
		gecici += '			<table width="100%" cellpadding="0" cellspacing="0" border="0">';
		gecici += '				<tr>';
		gecici += '					<td background="resim/tb_sol.png" width="3"><img src="resim/bos.gif" width="1px" height="1px"></td>';
		gecici += '					<td background="resim/icerik_arka.png">';
		gecici += '						<table width="100%" cellpadding="0" cellspacing="0" border="0">';
		gecici += '							<tr>';
		gecici += '								<td class="Byz_i" align="center"><b>1.Yazılı</b></td>';
		gecici += '								<td class="Byz_i" align="center"><b>2.Yazılı</b></td>';
		gecici += '								<td class="Byz_i" align="center"><b>3.Yazılı</b></td>';
		gecici += '								<td class="Byz_i" align="center"><b>1.Sözlü</b></td>';
		gecici += '								<td class="Byz_i" align="center"><b>2.Sözlü</b></td>';
		gecici += '							</tr>';
		gecici += '							<tr>';
		gecici += '								<td class="Byz_i" align="center">&nbsp;'+this.yazili1+'</td>';
		gecici += '								<td class="Byz_i" align="center">&nbsp;'+this.yazili2+'</td>';
		gecici += '								<td class="Byz_i" align="center">&nbsp;'+this.yazili3+'</td>';
		gecici += '								<td class="Byz_i" align="center">&nbsp;'+this.sozlu1+'</td>';
		gecici += '								<td class="Byz_i" align="center">&nbsp;'+this.sozlu2+'</td>';
		gecici += '							</tr>';
		gecici += '						</table>';
		gecici += '					</td>';
		gecici += '					<td background="resim/tb_sag.png" width="3"><img src="resim/bos.gif" width="1px" height="1px"></td>';
		gecici += '				</tr>';
		gecici += '			</table>';
		gecici += '		</td>';
		gecici += '	</tr>';
		gecici += '	<tr>';
		gecici += '		<td width="14"><img src="resim/tb_alt_sol.png" width="14" height="10"></td>';
		gecici += '		<td background="resim/tb_alt_orta.png"><img src="resim/bos.gif" width="1px" height="1px"></td>';
		gecici += '		<td width="10"><img src="resim/tb_alt_sag.png" width="10" height="10"></td>';
		gecici += '	</tr>';
		gecici += '</table>';
		gecici += '<table width="350" cellpadding="0" cellspacing="0" border="0">';
		gecici += '	<tr><td height="5px"><img src="" width="1px" height="1px"></td></tr>';
		gecici += '	<tr>';
		gecici += '		<td width="14"><img src="resim/tb_ust_sol.png" width="14" height="22"></td>';
		gecici += '		<td background="resim/tb_ust_orta.png" class="sari_K">Öğretmenin Mesajı</td>';
		gecici += '		<td width="10"><img src="resim/tb_ust_sag.png" width="10" height="22"></td>';
		gecici += '	</tr>';
		gecici += '	<tr>';
		gecici += '		<td colspan="3">';
		gecici += '			<table width="100%" cellpadding="0" cellspacing="0" border="0">';
		gecici += '				<tr>';
		gecici += '					<td background="resim/tb_sol.png" width="3"><img src="resim/bos.gif" width="1px" height="1px"></td>';
		gecici += '					<td background="resim/icerik_arka.png" class="Byz_i" align="center">';
		gecici += this.mesaj;
		gecici += '					</td>';
		gecici += '					<td background="resim/tb_sag.png" width="3"><img src="resim/bos.gif" width="1px" height="1px"></td>';
		gecici += '				</tr>';
		gecici += '			</table>';
		gecici += '		</td>';
		gecici += '	</tr>';
		gecici += '	<tr>';
		gecici += '		<td width="14"><img src="resim/tb_alt_sol.png" width="14" height="10"></td>';
		gecici += '		<td background="resim/tb_alt_orta.png"><img src="resim/bos.gif" width="1px" height="1px"></td>';
		gecici += '		<td width="10"><img src="resim/tb_alt_sag.png" width="10" height="10"></td>';
		gecici += '	</tr>';
		gecici += '</table>';
		$(this.id).innerHTML = gecici;
		//this.eleman.innerHTML = gecici;        
    }
}
//tr.DortNet.NotSorgula SON

var notsorgulama = new tr.DortNet.NotSorgula({ id:"yazilisonuclari" });
var ogr_no = null;

function ogrNo(ogrno)
{
	ogr_no = ogrno;
}

function notSorgula()
{
	var pars = 'islem=notsorgula&ogrno='+ogr_no;
	var ajaxIslem = new Ajax.Request('xmlveri/verisunucu.php',{method: 'POST', parameters: pars, onComplete: ajaxIslemNotSorgula}); 
}

function ajaxIslemNotSorgula(ajaxSonuc)
{
		var kokDugum = ajaxSonuc.responseXML.documentElement;
		var kayit = kokDugum.getElementsByTagName("kayit");
		notsorgulama.set({ no:kayit[0].childNodes[0].firstChild.nodeValue, 
							ogr_no:kayit[0].childNodes[1].firstChild.nodeValue, 
							adisoyadi:kayit[0].childNodes[2].firstChild.nodeValue, 
							yazili1:kayit[0].childNodes[3].firstChild.nodeValue, 
							yazili2:kayit[0].childNodes[4].firstChild.nodeValue, 
							yazili3:kayit[0].childNodes[5].firstChild.nodeValue, 
							sozlu1:kayit[0].childNodes[6].firstChild.nodeValue, 
							sozlu2:kayit[0].childNodes[7].firstChild.nodeValue, 
							mesaj:kayit[0].childNodes[8].firstChild.nodeValue});
		notsorgulama.goster();

}



