/*		
		function Hide(Cell){
		var myCell = document.getElementById(Cell);
		myCell.style.display = "none"
		}
		function Show(Cell){
		var myCell = document.getElementById(Cell);
		myCell.style.display = "";
}
function ChangeCell(Cell)
{
var myCell = document.getElementById(Cell);
myCell.style.background="gainsboro"
}
function ChangeBack(Cell)
{
var myCell = document.getElementById(Cell);
myCell.style.background="none"
}



// AJAX STAFF
function createRequestObject() {
    var ro;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
        ro = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        ro = new XMLHttpRequest();
    }
    return ro;
}


var http = createRequestObject();

function changeSStory() // formNumber -y arajzhm chenq ogtagorcum
{
	http.open('get', '/ajax/changeSStory.php?cahkiller=' + Math.floor(Math.random( ) * 5 - 15 + 1) + 15 );
	http.onreadystatechange = changeSStoryReady;
	http.send(null);
	
	setTimeout( "changeSStory()", 20000 );
}

function changeSStoryReady()
{
	if(http.readyState == 4)
	{
		if( http.responseText != '' )
		{
			document.getElementById('sStoryContainer').innerHTML = http.responseText;
		}
	}
}

function siteMap() // formNumber -y arajzhm chenq ogtagorcum
{
	document.getElementById('siteMap').style.display = 'block';

}*/

function DisplayCat(id)
{
	
	var catids = document.getElementById('catids').value;	
	ids=catids.split("***");	
	var length = ids.length;
	for(i=0; i<length; i++)
	{
		if(ids[i]!='')
		{
			document.getElementById('id_'+ids[i]).style.display='none';
			document.getElementById('img_'+ids[i]).innerHTML     = '<img src="/img/plus.png"  alt="" title="" class="pad_right"  style="cursor:pointer" />';			
			if(ids[i]!=id)
			{
				document.getElementById('open'+ids[i]).value=0;
			}
		}
	}	
	var open = document.getElementById('open'+id).value;	
	if(open==0)
	{
		document.getElementById('open'+id).value=1;
		document.getElementById('img_'+id).innerHTML     = '<img src="/img/minus.png"  alt="" title="" class="pad_right"  style="cursor:pointer" />';	
		document.getElementById('id_'+id).style.display = 'block';	
		
	
	}
	else if(open==1)
	{
		document.getElementById('open'+id).value=0;
		document.getElementById('img_'+id).innerHTML     = '<img src="/img/plus.png"  alt="" title="" class="pad_right"  style="cursor:pointer" />';
		
		document.getElementById('id_'+id).style.display = 'none';
	}	
}

function Visiblepopup(id)
{
	document.getElementById(id).style.display = 'block';
}
function Hiddenpopup(id)
{
	document.getElementById(id).style.display = 'none';
}