	function GoRedirect(page)
	{
		
		var obj=document.getElementById('drCatalogs');
		var url=page;
		if (obj[obj.selectedIndex].value!=0)
		{
			url += "?catID=" + obj[obj.selectedIndex].value;
		}
		
		location.assign(url);
		
	}
	
  function ReplaceText(strText)
   {
      strText	= strText.split("ı").join("$$$i");
      strText	= strText.split("İ").join("$$$I");
      strText	= strText.split("ş").join("$$$s");
      strText	= strText.split("Ş").join("$$$S");
      strText	= strText.split("ç").join("$$$c");
      strText	= strText.split("Ç").join("$$$C");
      strText	= strText.split("ö").join("$$$o");
      strText	= strText.split("Ö").join("$$$O");
      strText	= strText.split("ü").join("$$$u");
      strText	= strText.split("Ü").join("$$$U");
      strText	= strText.split("ğ").join("$$$g");
      strText	= strText.split("Ğ").join("$$$G");
      strText	= strText.split("|").join("$$$.");
      strText	= strText.split("<").join("$$$k");
      strText	= strText.split(">").join("$$$b");
      strText	= strText.split("?").join("$$$q");
      strText	= strText.split("=").join("$$$e");
      strText	= strText.split("#").join("$$$d");
      strText	= strText.split("{").join("");
      strText	= strText.split("}").join("");
      return strText;
   }
   
   
   	function clickButton(e, buttonid)
   	{ 
		var bt = document.getElementById(buttonid); 
		if (typeof bt == 'object')
		{ 
			if(navigator.appName.indexOf("Netscape")>(-1))
			{ 
				if (e.keyCode == 13)
				{ 
					bt.click(); 
					return false; 
				} 
			} 
			
			if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
			{ 
				if (event.keyCode == 13)
				{ 
					bt.click(); 
					return false; 
				} 
			} 
		} 
	}
	

	function Loading(obj)
	{	
		if (typeof(Page_ClientValidate) == 'function')
		{
			if (!Page_ClientValidate())
			{
				return false;
			}
		}
			
		var lod=document.getElementById('loading');
		var bt=go(obj);
		var lText='<table class="loading" border="0" width="100%" cellspacing="0" cellpadding="3"><tr><td width="20"><IMG border="0" SRC="images/tabs/spinner.gif"></td><td>İşleminiz Gerçekleşiyor. Lütfen bekleyiniz.</td></tr></table>'							
		if (lod)
		{
			lod.style.display='block';
		}
		else
		{
			lod=document.createElement('<div>');
			lod.setAttribute('id','loading');
			lod.style.position='absolute';
			var w=0;
			if (bt.style.width==''){w=120;}else{w=Px(bt.style.width,5);}
			lod.style.top=findPosY(bt) + 'px';
			lod.style.left=findPosX(bt) + w + 'px';
			lod.innerHTML=lText;
			lod.style.display='block';
			document.body.appendChild(lod);
		}
	}

	function findPosX(obj)
	{
		var curleft = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
		curleft += obj.x;
		
		return curleft;
	}

	function findPosY(obj)
	{
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		return curtop;
	}

	function go(id)
	{
		var obj = document.getElementById(id);
		return obj;
	}

	function Px(v,a)
	{
 		return  parseInt(v.replace('px','')) + a ;
	}					
	

