﻿	function xmlhttpPost(strURL) 
	{
		var xmlHttpReq = false;
		// Mozilla/Safari
		if (window.XMLHttpRequest) 
		{
		
		xmlHttpReq = new XMLHttpRequest();
		
		if (xmlHttpReq.overrideMimeType) 
		{
			xmlHttpReq.overrideMimeType('text/xml');
			// See note below about this line
		}
		// IE
		} else if (window.ActiveXObject) { // IE
		
			try {
				
				xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
			
			} catch (e) {
			
				try {
					
					xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
				
				} catch (e) {}
			
			}
		}
		
		if (!xmlHttpReq) 
		{
			alert('HATA:( Bağlantı kurulamadı. Lütfen internet bağlantınızı ve tarayıcınızın ayarlarınıkontrol ediniz.');
			return false;
		}   
		
		xmlHttpReq.open('GET', strURL, true);
		
		xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');        
		
		xmlHttpReq.onreadystatechange = function() 
		{ 
			callBackFunction(xmlHttpReq); 
		};
		
		xmlHttpReq.send("");
	}
		
	function callBackFunction(http_request) 
	{
		if (http_request.readyState == 4) 
		{
		
			if (http_request.status == 200) 
			{
				
				RequestReponse(http_request.responseText);                                               
				
			} else {
				//alert('HATA: Sorguda hata var! = ' + http_request.responseText + http_request.status);
				alert('HATA: Sorguda hata var! = ' + http_request.status);
			}
			
		}
	}
	
	
	function xmlhttpPost2(strURL) 
	{
		var xmlHttpReq2 = false;
		// Mozilla/Safari
		if (window.XMLHttpRequest) 
		{
		
		xmlHttpReq2 = new XMLHttpRequest();
		
		if (xmlHttpReq2.overrideMimeType) 
		{
			xmlHttpReq2.overrideMimeType('text/xml');
			// See note below about this line
		}
		// IE
		} else if (window.ActiveXObject) { // IE
		
			try {
				
				xmlHttpReq2 = new ActiveXObject("Msxml2.XMLHTTP");
			
			} catch (e) {
			
				try {
					
					xmlHttpReq2 = new ActiveXObject("Microsoft.XMLHTTP");
				
				} catch (e) {}
			
			}
		}
		
		if (!xmlHttpReq2) 
		{
			alert('HATA:( Bağlantı kurulamadı. Lütfen internet bağlantınızı ve tarayıcınızın ayarlarınıkontrol ediniz.');
			return false;
		}   
		
		xmlHttpReq2.open('GET', strURL, true);
		
		xmlHttpReq2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');        
		
		xmlHttpReq2.onreadystatechange = function() 
		{ 
			callBackFunction2(xmlHttpReq2); 
		};
		
		xmlHttpReq2.send("");
	}
		
	function callBackFunction2(http_request) 
	{
		if (http_request.readyState == 4) 
		{
		
			if (http_request.status == 200) 
			{
				
				RequestReponse(http_request.responseText);                                               
				
			} else {
				alert('HATA: Sorgulumada bir hata oldu = ' + http_request.status);
			}
			
		}
	}
	
	
	
	function xmlhttpPost3(strURL) 
	{
		var xmlHttpReq3 = false;
		// Mozilla/Safari
		if (window.XMLHttpRequest) 
		{
		
		xmlHttpReq3 = new XMLHttpRequest();
		
		if (xmlHttpReq3.overrideMimeType) 
		{
			xmlHttpReq3.overrideMimeType('text/xml');
			// See note below about this line
		}
		// IE
		} else if (window.ActiveXObject) { // IE
		
			try {
				
				xmlHttpReq3 = new ActiveXObject("Msxml2.XMLHTTP");
			
			} catch (e) {
			
				try {
					
					xmlHttpReq3 = new ActiveXObject("Microsoft.XMLHTTP");
				
				} catch (e) {}
			
			}
		}
		
		if (!xmlHttpReq3) 
		{
			alert('HATA:( Bağlantı kurulamadı. Lütfen internet bağlantınızı ve tarayıcınızın ayarlarınıkontrol ediniz.');
			return false;
		}   
		
		xmlHttpReq3.open('GET', strURL, true);
		
		xmlHttpReq3.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');        
		
		xmlHttpReq3.onreadystatechange = function() 
		{ 
			callBackFunction3(xmlHttpReq3); 
		};
		
		xmlHttpReq3.send("");
	}
		
	function callBackFunction3(http_request) 
	{
		if (http_request.readyState == 4) 
		{
		
			if (http_request.status == 200) 
			{
				
				RequestReponse3(http_request.responseText);
				
			} else {
				alert('HATA: Sorgulumada bir hata oldu = ' + http_request.status);
			}
			
		}
	}
	
	
	// JavaScript Document
