function bookmarkCurrentPage(title){bookmarkPage(document.location,title)}
function bookmarkPage(URL,title){
	if(window.external && document.all){ /* IE */
		window.external.AddFavorite(URL, title);
	}
	else if (window.sidebar){ /* firefox */
		window.sidebar.addPanel(title, URL, "");
	}
	else if(window.opera && window.print){ /* opera */
		jQuery("<a href='" + URL +"' title='" + title + "' rel='sidebar' style='display:none'>&nbsp;</a>").trigger('click');
	}
	else{
		alert("You need to manually add bookmark using browser's menu options.");
	}
}

function emailto(obj, ajax, itmTitleID, itmSmryID, headerMsg){
	var oDocTitle = document.getElementById(itmTitleID);
	var oDescription = document.getElementById(itmSmryID);
	var strTitle = ((oDocTitle == null) || (oDocTitle.innerHTML == '') ) ? document.title : oDocTitle.innerHTML;
	var strDescription = ((oDescription == null) || (oDescription.innerHTML == '') ) ? strTitle : oDescription.innerHTML;
	if( strTitle == '' ){obj.href = 'mailto:?body=' + BuildEmailDescription(strDescription, headerMsg);}
	else{obj.href = 'mailto:?subject='+escape(strTitle)+'&body='+BuildEmailDescription(strDescription, headerMsg);}
	
	ajax.AjaxRequest(" ");
}
function BuildEmailDescription(strDescription, headerMsg){
	return escape(headerMsg + String.fromCharCode(13) + String.fromCharCode(13)
				+ strDescription + String.fromCharCode(13) + String.fromCharCode(13)
				+ 'URL: ' + document.location.href);
}

function InitiateAsyncRequest(ajaxManager, arguments)
{
    ajaxManager.AjaxRequest(arguments);
}

function ContextMenuClick(node, itemText)
{                
	/*if (itemText == "Edit")
	{        
		node.StartEdit();
	}*/
	if (itemText == "Delete")
	{        
		return confirm("Are You Sure You Wish To Delete This Item?");
	}
		    
	return true;
}

function ATTaxonomyWindow(cnt){
	var url = jQuery(cnt).attr("href");
	try{
		window.radopen(url, "ATCCCategoryWindow");
	}catch(e){alert(e)}
    return false;
}
