function ShowHelpWindow() 
{
	var windowFeatures = "toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=no, height=300, width=500, top=" + ((screen.height - 300)/2).toString()+",left="+((screen.width - 500)/2).toString();
	window.open("/Controls/Help/Help.aspx?FriendlyName=" + ShowHelpWindow.arguments[0] + "&Lang=" + ShowHelpWindow.arguments[1], "Help", windowFeatures);
	return void(0);
}

function ShowPrintWindow() 
{
	window.open("RenderModule.aspx?ModuleID=" + ShowPrintWindow.arguments[0] + "&RenderType=print");
	return void(0);
}
function ShowExcelWindow() 
{
	window.open("RenderModule.aspx?ModuleID=" + ShowExcelWindow.arguments[0] + "&RenderType=excel");
	return void(0);
}
function ShowWordWindow() 
{
	window.open("RenderModule.aspx?ModuleID=" + ShowWordWindow.arguments[0] + "&RenderType=word");
	return void(0);
}
function ShowPdfWindow() 
{
	window.open("RenderModule.aspx?ModuleID=" + ShowPdfWindow.arguments[0] + "&RenderType=pdf");
	return void(0);
}
function ShowTellAFriendWindow() 
{
	window.open("controls/Module/TellAFriend.aspx?ModuleId=" + ShowTellAFriendWindow.arguments[0] + "&Url=" + ShowTellAFriendWindow.arguments[1] + "&Host=" + ShowTellAFriendWindow.arguments[2] , "" , 'width=360,height=360,scrollbars=no, resizable=yes,center=yes,toolbar=no,directories=no,location=no, menubar=no,status=yes,left=200,top=150');
	return void(0);
}
function ShowXMLWindow() 
{
	window.open("RenderModule.aspx?ModuleID=" + ShowXMLWindow.arguments[0] + "&RenderType=xml");
	return void(0);
}
function ShowRssWindow() 
{
	window.open("RenderModule.aspx?ModuleID=" + ShowRssWindow.arguments[0] + "&RenderType=rss");
	return void(0);
}
function ShowNarrowSearchInNewWindow() 
{
	if (ShowNarrowSearchInNewWindow.arguments[1].value.trim().length > 0)
		window.open("RenderModule.aspx?ModuleID=" + ShowNarrowSearchInNewWindow.arguments[0] + "&NarrowSearchKeyword=" + ShowNarrowSearchInNewWindow.arguments[1].value.trim() + "&RenderType=print");
	return void(0);
}
function MinimizeMaximize(Content,cmdMinMax)
{
	if(Content.style.display=="none")
	{
		cmdMinMax.innerHTML = cmdMinMax.innerHTML.replace("Plus","Minus");
		Content.style.display="block";
	}
	else
	{
		cmdMinMax.innerHTML = cmdMinMax.innerHTML.replace("Minus","Plus");
		Content.style.display="none";
	}
}
function ShowHide(content,showBtn,hideBtn)
{
	if(content.style.display=="none")
	{
		content.style.display="block";
		hideBtn.style.display="block";
		showBtn.style.display="none";
	}
	else
	{
		content.style.display="none";
		hideBtn.style.display="none";
		showBtn.style.display="block";
	}
}

function ShowExternalImagePreview(ImageAddressTextboxID)
{
	if (ImageAddressTextboxID.value != "")
	{
		window.open(ImageAddressTextboxID.value);	
	}
}
function ShowInternalImagePreview(StartPath,FolderComboboxID,FileComboboxID)
{
	if (FileComboboxID.options(FileComboboxID.selectedIndex).value == "")
	{
		return ;
	}
	var path;
	path = StartPath;
	path += FolderComboboxID.options(FolderComboboxID.selectedIndex).value;
	path += "\\" + FileComboboxID.options(FileComboboxID.selectedIndex).value;
	window.open(path);

}
function ShowColorPickerDialog(s){
	document.all[s].value = window.showModalDialog('../../controls/ColorPicker/ColorPicker.htm',document.all[s].value,'dialogHeight:485px;dialogWidth:370px;center:Yes;help:No;scroll:No;resizable:No;status:No;');
}