
function treeOutline(id)
{
 //var img = id + '_img';
 if(document.getElementById(id).style.display == 'none')
 {
  document.getElementById(id).style.display = 'block';
  return false;
  //document.getElementById(img).src = '../../design/limux/images/amit/dirOpen.png';
 }
 else
 {
  document.getElementById(id).style.display = 'none';
  return true;
  //document.getElementById(img).src = '../../design/limux/images/amit/dir.png';
 }
}

function confirmClick(theLink, confirmMsg){

	if (typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed =
		confirm(confirmMsg);

    if (is_confirmed) {
        theLink.href += '&confirmed=1';
    }

    return is_confirmed;
}

function openPopup(id) {
	popup = window.open("popup.php?id="+id+"&sw=1","PDFPopup","width=800,height=600,scrollbars=1,resizable=1,menubar=yes,locationbar=no,status=no");
}

function imagePopup(img, width, height) {
	if (img && width && height) {
		width = Math.min(width, 800);
		height = Math.min(height, 700);
		var popUp = window.open(img,"popUp","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + width + ",height=" + height);
	}
	return;
}
