<!--
    function Tarayici() 
    {
        var ua, s, i ;
        this.iseIE = false ;
        this.iseNS = false ;
        this.version = null ;
        ua = navigator.userAgent ;
        s = "MSIE" ;
        if ((i = ua.indexOf(s)) >= 0) 
        {
            this.iseIE = true ;
            this.version = parseFloat(ua.substr(i + s.length)) ;
            return ;
        }
        s = "Netscape6/" ;
        if ((i = ua.indexOf(s)) >= 0) 
        {
            this.iseNS = true ;
            this.version = parseFloat(ua.substr(i + s.length)) ;
            return ;
        }
        // Treat any other "Gecko" browser as NS 6.1.
        s = "Gecko" ;
        if ((i = ua.indexOf(s)) >= 0) 
        {
            this.iseNS = true ;
            this.version = 6.1 ;
            return ;
        }
    }//function Tarayici() 
    var tarayici = new Tarayici();

    function innerTextGetir(pId)
    {
	    if (document.getElementById(pId))
	    {
		    if (tarayici.iseIE) 
		    {
			    return (document.getElementById(pId).innerText) ;
		    }
		    else if (tarayici.iseNS) 
		    {
			    return (document.getElementById(pId).textContent) ;
		    }
	    }
	    else
	    {
	        //alert (pId + "bulunamadi!") ;
	        return "" ;
	    }
    }//function innerTextGetir(pId) 

    function tumunuDegistir(strAsil, strAranan, strDegisecek) 
    {
        while (strAsil.indexOf(strAranan) != -1)
        {
            strAsil = strAsil.replace(strAranan, strDegisecek) ;
        }
        return strAsil ;
    }//function tumunuDegistir(strAsil, strAranan, strDegisecek) 

    function replaceAll(text, strA, strB)
    {
        return text.replace(new RegExp(strA, "g"), strB);    
    }

    function xmlDondur(pXmlYolu)
    {
        var xmlDoc = null ;
        if (tarayici.iseIE)  //internet explorer icin.
	    {
		    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		    xmlDoc.async = false ;
		    if (pXmlYolu != null)
		    {
		        xmlDoc.load(pXmlYolu) ;
		        if (xmlDoc.parseError.errorCode != '0')
		        {
			        document.write("XML Yuklenemedi!") ;
			        return null ;
		        }
		        else
		        {
			        return xmlDoc ;
		        }
		    }
            else
            {
                return xmlDoc ;
            }
	    }//if (window.ActiveXObject) //internet explorer icin.
	    else if (tarayici.iseNS) //firefox icin.
	    {		
		    if( document.implementation.hasFeature("XPath", "3.0") )
		    {
			    XMLDocument.prototype.selectNodes = function(cXPathString, xNode)
			    {
				    if( !xNode ) 
				    { 	
					    xNode = this; 
				    }				
				    var oNSResolver = this.createNSResolver(this.documentElement) ;
				    var aItems = this.evaluate(cXPathString, xNode, oNSResolver, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null) ;
				    var aResult = [];
				    for( var i = 0; i < aItems.snapshotLength; i++)
				    {
					    aResult[i] = aItems.snapshotItem(i);
				    }
				    return aResult;
			    }//XMLDocument.prototype.selectNodes = function(cXPathString, xNode)
    		
			    XMLDocument.prototype.selectSingleNode = function(cXPathString, xNode)
			    {
				    if( !xNode ) 
				    { 
					    xNode = this; 
				    }				
				    var xItems = this.selectNodes(cXPathString, xNode);
				    if( xItems.length > 0 )
				    {
					    return xItems[0];
				    }
				    else
				    {
					    return null;
				    }
			    }//XMLDocument.prototype.selectSingleNode = function(cXPathString, xNode)
    		
			    Element.prototype.selectNodes = function(cXPathString)
			    {
				    if(this.ownerDocument.selectNodes)
				    {
					    return this.ownerDocument.selectNodes(cXPathString, this);
				    }
				    else
				    {
					    throw "For XML Elements Only";
				    }
			    }//Element.prototype.selectNodes = function(cXPathString)
    		
			    Element.prototype.selectSingleNode = function(cXPathString)
			    {
				    if(this.ownerDocument.selectSingleNode)
				    {
					    return this.ownerDocument.selectSingleNode(cXPathString, this);
				    }
				    else
				    {
					    throw "For XML Elements Only";
				    }
			    }//Element.prototype.selectSingleNode = function(cXPathString)
			    xmlDoc = document.implementation.createDocument("", "", null) ;
			    xmlDoc.async = false ;
			    if (pXmlYolu != null)
			    {
			        var isLoaded = xmlDoc.load(pXmlYolu) ;
			        if (isLoaded == true)
			        {
				        return xmlDoc ;
			        }
			        else
			        {
				        //alert("hata") ;
				        document.write("XML Yuklenemedi!") ;
				        return null ;
			        }
			    }
                else
                {
                    return xmlDoc ;
                }
		    }//if( document.implementation.hasFeature("XPath", "3.0") )
	    }//else if (tarayici.iseNS) //firefox icin.
    }//function xmlDondur(pXmlYolu) 

    function loadXMLDoc(dname) 
    {
        try 
        {
            if (tarayici.iseIE) //Internet Explorer
            {
                xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
            }
            else if (tarayici.iseNS) //firefox icin.
            {
                xmlDoc = document.implementation.createDocument("", "", null) ;
            }
            xmlDoc.async = false ;
            xmlDoc.load(dname) ;
            return(xmlDoc) ;
        }
        catch(e){
        	alert(e.message) ;
        }
        return(null) ;
    }//function loadXMLDoc(dname) 

    function loadXMLString(txt) 
    {
        try //Internet Explorer
        {
            if (tarayici.iseIE) //Internet Explorer
            {
                xmlDoc = new ActiveXObject("Microsoft.XMLDOM") ;
                xmlDoc.async = "false" ;
                xmlDoc.loadXML(txt) ;
                return(xmlDoc) ; 
            }
            else if (tarayici.iseNS) //firefox icin.
            {
                parser = new DOMParser() ;
                xmlDoc = parser.parseFromString(txt, "text/xml") ;
                return(xmlDoc) ;
            }
        }
        catch(e) {
            alert(e.message) ;
        }
        return(null);
    }//function loadXMLString(txt) 

    function getNV(pBabaNod, pHedefNod)
    {
        var txt = null ;
        if (tarayici.iseIE) //Internet Explorer
        {
        	if (pBabaNod.selectSingleNode(pHedefNod))
        		txt = pBabaNod.selectSingleNode(pHedefNod).text ;
        }
        else if (tarayici.iseNS) //firefox icin.
        {
	        var nod_ = ssN(pBabaNod, pHedefNod) ;
	        if (nod_)
	        	txt = nod_.childNodes[0].nodeValue ;
        }
        return txt ;
    }//function getNV(pBabaNod, pHedefNod) //TEST EDILDI CALISIYOR.

    function getNAV(pHedefNod, pHedefOzellik)
    {
        var txt = null ;
        if (tarayici.iseIE) //Internet Explorer
        {
        	if (ssN(pHedefNod,'@' + pHedefOzellik))
        		txt = ssN(pHedefNod,'@' + pHedefOzellik).text ;
        }
        else if (tarayici.iseNS) //firefox icin.
        {
        	if (ssN(pHedefNod))
        		txt = ssN(pHedefNod).getAttribute(pHedefOzellik) ;
        }
        return txt ;
    }//function getNAV(pBabaNod, pHedefNod, pHedefOzellik)

    function ssN(pBabaNod, pHedefNod)
    {
	    if (tarayici.iseIE) //Internet Explorer
        {
		    return pBabaNod.selectSingleNode(pHedefNod) ;
	    }
	    else if (tarayici.iseNS) //firefox icin.
	    {
	       var xpe = new XPathEvaluator() ;
	       var nsResolver = xpe.createNSResolver( pBabaNod.ownerDocument == null ? pBabaNod.documentElement : pBabaNod.ownerDocument.documentElement) ;
	       var results = xpe.evaluate(pHedefNod, pBabaNod, nsResolver, XPathResult.FIRST_ORDERED_NODE_TYPE, null) ;
	       return results.singleNodeValue ; 
	    }
	    return null ;
    }//function ssN(pBabaNod, pHedefNod) //TEST EDILDI CALISIYOR.

    function sNs(pBabaNod, pHedefNod)
    {
        if (tarayici.iseIE) //Internet Explorer
        {
		    return pBabaNod.selectNodes(pHedefNod) ;
	    }
	    else if (tarayici.iseNS) //firefox icin.
	    {
	        var oEvaluator = new XPathEvaluator() ;
	        var oResult = oEvaluator.evaluate(pHedefNod, pBabaNod, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null) ;
	        var aNodes = new Array() ;
	        if (oResult != null) 
	        {
		        var oElement = oResult.iterateNext() ;
		        while(oElement) 
		        {
			        aNodes.push(oElement) ;
			        oElement = oResult.iterateNext() ;
		        }
		        return aNodes ;
	        }
        }
	    return null ;
    }//function sNs(pBabaNod, pHedefNod)

    /*
    function utf2Turkish(pStr)
    {
	    //a(); 
	    var donenStr = "" ;
	    donenStr = replaceAll(pStr, "&#231;", "ç") ;
	    donenStr = replaceAll(donenStr, "&#199;", "Ç") ;
	    donenStr = replaceAll(donenStr, "&#287;", "ð") ;
	    donenStr = replaceAll(donenStr, "&#286;", "Ð") ;
	    donenStr = replaceAll(donenStr, "&#305;", "ý") ;
	    donenStr = replaceAll(donenStr, "&#304;", "Ý") ;
	    donenStr = replaceAll(donenStr, "&#246;", "ö") ;
	    donenStr = replaceAll(donenStr, "&#214;", "Ö") ;
	    donenStr = replaceAll(donenStr, "&#351;", "þ") ;
	    donenStr = replaceAll(donenStr, "&#350;", "Þ") ;
	    donenStr = replaceAll(donenStr, "&#252;", "ü") ;
	    donenStr = replaceAll(donenStr, "&#220;", "Ü") ;
	    return donenStr ;	
    }//function utf2Turkish(pStr)
    */

    /*
    function Turkish2Utf(pStr)
    {
	    var donenStr = "" ;
	    donenStr = replaceAll(pStr, "ç", "&#231;") ;
	    donenStr = replaceAll(donenStr, "Ç", "&#199;") ;
	    donenStr = replaceAll(donenStr, "ð", "&#287;") ;
	    donenStr = replaceAll(donenStr, "Ð", "&#286;") ;
	    donenStr = replaceAll(donenStr, "ý", "&#305;") ;
	    donenStr = replaceAll(donenStr, "Ý", "&#304;") ;
	    donenStr = replaceAll(donenStr, "ö", "&#246;") ;
	    donenStr = replaceAll(donenStr, "Ö", "&#214;") ;
	    donenStr = replaceAll(donenStr, "þ", "&#351;") ;
	    donenStr = replaceAll(donenStr, "Þ", "&#350;") ;
	    donenStr = replaceAll(donenStr, "ü", "&#252;") ;
	    donenStr = replaceAll(donenStr, "Ü", "&#220;") ;
	    return donenStr ;	
    }//function Turkish2Utf(pStr)
    */
    
    function xmlIYolla(pXmlHttpRequest, strXml, strAdres, donusteCalisacakMetot)
    {
    	pXmlHttpRequest.open("POST", strAdres, true) ;
    	pXmlHttpRequest.onreadystatechange = donusteCalisacakMetot ;
    	pXmlHttpRequest.send(strXml) ;
    	return ;		
    }

    function xmlHttpDondur()
    {
        var xmlHttp_ = null;
        if (tarayici.iseNS)
        {// code for all new browsers
            xmlHttp_ = new XMLHttpRequest();
        }
        else if (tarayici.iseIE)
        {// code for IE5 and IE6
            xmlHttp_ = new ActiveXObject("Microsoft.XMLHTTP");
        }
        else
        {
            alert("Tarayicin XmlHttp'yi desteklemiyor!");
        }
        return xmlHttp_ ;
    }//function xmlHttpDondur() //TEST EDILDI CALISIYOR.

    function xmlDocDondur(pXmlHttp)
    {
        var xmlDoc_ = xmlDondur(null) ;
        if (tarayici.iseIE)
        {
            if (pXmlHttp.responseXML.xml == "" && pXmlHttp.responseText != "")
            {
                pXmlHttp.responseXML.loadXML(pXmlHttp.responseText) ;//ie'nin sorunu mudur nedir anlamadim.
            }
            xmlDoc_ = pXmlHttp.responseXML.documentElement ;
        }
        else if (tarayici.iseNS)
        {
            var parser = new DOMParser();
            xmlDoc_ = parser.parseFromString(pXmlHttp.responseText, "text/xml");
        }
        else
        {
            alert ("Tarayiciniz desteklemiyor!") ;
        }  
        return xmlDoc_ ;
    }//function xmlDocDondur()

//--> 