	function showBut (butId, showBut)
	{
		
		document[butId].src = showBut;
		

	}
	function changeBgImage (image , id, colr) {
		var element = document.getElementById(id);
		element.style.backgroundImage = "url("+image+")";
		element.style.color=colr;
	}
	
	function showDiv(div,hideDivid)
    {
        var divID = div;
		var hideDivId = hideDivid;
		var	divstyle;
		hideDiv(hideDivId);
		divstyle = document.getElementById(divID).style.visibility;
		if(divstyle.toLowerCase()=="hidden")
        {
            document.getElementById(divID).style.visibility = "visible";
			document.getElementById(divID).style.display = "block";
        }
    
    }
	function hideDiv(div)
	{
		var divID = div;
		var	divstyle = document.getElementById(divID).style.visibility;
		if(divstyle.toLowerCase()=="visible")
		{
			document.getElementById(divID).style.visibility = "hidden";
			document.getElementById(divID).style.display = "none";
		}
	}
	
	function showTD(td_home)
	{
		var td = td_home;
		change_color(td);
	}
	function change_color(id)
	{
		var td_id = id;
		var newImage = "url(img/newbulleta.png)";
		document.getElementById (td_id).style.backgroundColor='#ffa722';
		document.getElementById (td_id).style.backgroundImage=newImage;
		document.getElementById (td_id).style.color='#000000';
	}
	function change_mouseout(id)
	{
		var td_id = id;
		var newImage = "url(img/newbulletb.png)";
		document.getElementById (td_id).style.backgroundColor='#a964d8';  /*EAE8E8*/
		document.getElementById (td_id).style.backgroundImage=newImage;
		document.getElementById (td_id).style.color="#FFFFFF";
	}

	function check_status(chk,c)
	{
		for(var i=0;i<chk.length;i++)
		{
			chk[i].checked = false;
		}
		chk[c].checked = true;
	}
	
	
var msg_box ="You dont have permission to copy";
function dis_rightclickIE(){
	if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
		alert(msg_box)
}

function dis_rightclickNS(e){
	if ((document.layers||document.getElementById&&!document.all) && (e.which==2||e.which==3))
	{
	alert(msg_box)
	return false;
	}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=dis_rightclickNS;
}
else if (document.all&&!document.getElementById){
document.onmousedown=dis_rightclickIE;
}
document.oncontextmenu=new Function("alert(msg_box);return false")

