// JavaScript Document
var xmlHttp;
var IDS;
function CreateAjaxObject()
{
	
try
  {  
    xmlHttp=new XMLHttpRequest();  
	return true;
  }
catch (e)
  {  
    try{
		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
		return true;
	}
  catch (e)
    {    
	  try{      
	  	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
		return true;
	  }
    catch (e)
      {
		  alert("Tarayıcınız AJAX desteklemiyor");
		  return false;      
	  }    
  }  
 }  
}
function Data(Type,Slogan,Duyuru){

	IDS=document.all;
	var query;
	if(CreateAjaxObject()){
		xmlHttp.onreadystatechange=function()
			{
			}
			if (Type=="1"){
			query="VeriInsert.aspx?Slogan="+Slogan+"&Duyuru="+Duyuru+"&Type="+Type;
                document.getElementById("ctl00_ContentPlaceHolder1_lblMsg").innerText = "Duyuru Eklendi";
                document.getElementById("ctl00_ContentPlaceHolder1_Panel1").style.visibility = "Hidden";
			}
			xmlHttp.open("POST",query,true);
			xmlHttp.send(null);
		}
};
