getById=function(id)
{
	return document.getElementById(id);
}
getByTag=function(tag)
{
	var tag=arguments[0];
	var oList=new Array();
	if(arguments.length>1) var rootObj=arguments[1]; else rootObj=document;
	return rootObj.getElementsByTagName(tag);
}
getByClass=function()
{
	var c_name=arguments[0];
	var oList=new Array();
	if(arguments.length>1) var rootObj=arguments[1]; else rootObj=document;
	for(var i=0;i<rootObj.childNodes.length;i++)
	{
		try{
		if(rootObj.childNodes[i].getAttribute('class') &&  rootObj.childNodes[i].getAttribute('class').search('(^'+c_name+'$)|(^'+c_name+' )|( '+c_name+'$)')!=-1)  oList.push(rootObj.childNodes[i]);
		}catch(e){}
		if(rootObj.childNodes[i].childNodes.length>0) oList=oList.concat(getByClass(c_name,rootObj.childNodes[i],'dd'));
	}
	return oList;

}
setAttributes=function(obj,attrs)
{
	for(var i=0;i<attrs.length;i++) obj.setAttribute(attrs[i][0],attrs[i][1]); 
	return true;
}
appendChilds=function(obj)
{
	if(arguments[1].length<2) return false;
	for(var i=1;i<arguments.length;i++) obj.appendChild(arguments[i]);
	return true;
}


function removeClassName(obj,clsname)
{
	obj.className=obj.className.replace(' '+clsname,'');
	obj.className=obj.className.replace(clsname,'');
}


function isIE()
{
	if(window.navigator.userAgent.indexOf('MSIE')>0) return true; else return false;
}

function confirmDel(a)
{
	if(confirm('Silmek istediğinize emin misiniz?'))
	{
		location.href=a.href+'&confirm=yes';
		return false;
	}
	else return false;
}
