<!--
function popUp( fileName, windowName, urlParameters, windowWidth, windowHeight,windowScrolls,resizeable)
{

if (urlParameters.length > 0)
{
	urlParameters = '?' + urlParameters;
}
if (!windowScrolls) 
{
	windowScrolls = 'yes';
}
var windowFormat = 'width=' + windowWidth + ',height=' + windowHeight + ',scrollbars=' + windowScrolls + ',resizable=' + resizeable + ',menubar=0' ;
var newWindow    = window.open( fileName + urlParameters, windowName, windowFormat, 'Editor' );
if ( newWindow.opener == null )
{
	newWindow.opener = window; 
}

if (navigator.appName.indexOf("Microsoft")!=-1 && navigator.appVersion.indexOf("4.")!=-1 && !(navigator.appVersion.indexOf("5.")!=-1))
{
}
else {
	newWindow.focus();	
}
}

function popupAsset_Document(assetid,parentid){
	popUp("Asset_DocumentMaintain.aspx","1","assetid=" + assetid + "&parentid=" + parentid,600,390,"yes","yes");
}

function popupAsset_FAQ(assetid,parentid){
	popUp("Asset_FAQMaintain.aspx","1","assetid=" + assetid + "&parentid=" + parentid,(screen.width * 0.7) ,(screen.height * 0.7),"yes","yes");
}

function popupAsset_Links(assetid,parentid){
	popUp("Asset_LinksMaintain.aspx","1","assetid=" + assetid + "&parentid=" + parentid,(screen.width * 0.7) ,(screen.height * 0.7),"yes","yes");
}

function popupAsset_Image(assetid,parentid){
	popUp("Asset_ImageMaintain.aspx","1","assetid=" + assetid + "&parentid=" + parentid,(screen.width * 0.7) ,(screen.height * 0.7),"yes","yes");
}

function popupAsset_Banner(assetid,parentid){
	popUp("Asset_BannerMaintain.aspx","1","assetid=" + assetid + "&parentid=" + parentid,570,390,"yes","yes");
}

function popupAsset_Staff(assetid,parentid){
	popUp("Asset_StaffMaintain.aspx","1","assetid=" + assetid + "&parentid=" + parentid,570,390,"yes","yes");
}
function popupOrgDetails(itemid){
	popUp("OrgDetails.aspx","1","OrgID=" + itemid,570,350,"yes","yes");
}



function NewWin(dropdownlist) {
	var ind = dropdownlist.selectedIndex;
	var popUrl = dropdownlist.options[ind].value;
	popUp(popUrl,"2","",(screen.width * 0.7) ,(screen.height * 0.7),"yes","yes");
}

function ReloadParentAndClose() {
	window.opener.document.forms[0].submit();
	DoClose();
}

function DoClose() {
	window.close();
}

//-->