function CORE_openPopup(oEvent,strUrl,intWidth,intHeight){
	if(typeof isPublicWeb == "undefined"){return false;} //fix for adminweb editor click on link
	var bCustomerFunctionExist = typeof CUSTOMER_openPopup != "undefined";//Check if customer specific function exist
	if(bCustomerFunctionExist){
		CUSTOMER_openPopup(oEvent,strUrl,intWidth,intHeight);
	}else{
		openCMSWindow(strUrl,intWidth,intHeight,"","scrollbars=yes");
	}
}

function CORE_openModalPopup(oEvent,strUrl,intWidth,intHeight){
	if(typeof isPublicWeb == "undefined"){return false;} //fix for adminweb editor click on link
	var bCustomerFunctionExist = typeof CUSTOMER_openModalPopup != "undefined";//Check if customer specific function exist
	if(bCustomerFunctionExist){
		CUSTOMER_openModalPopup(oEvent,strUrl,intWidth,intHeight);
	}
	else{
		intWidth = intWidth + "px";
		intHeight = intHeight + "px";
		showModalDialog(strUrl,window,'dialogHeight:' + intHeight + '; dialogWidth:' + intWidth + '; help: No; resizable: No; status: yes; scroll: No;');
	}
}

function CORE_openLayerPopup(oEvent,strUrl,intWidth,intHeight){
	if(typeof isPublicWeb == "undefined"){return false;} //fix for adminweb editor click on link
	var bCustomerFunctionExist = typeof CUSTOMER_openLayerPopup != "undefined"; //Check if customer specific function exist
	if(bCustomerFunctionExist){
		CUSTOMER_openLayerPopup(oEvent,strUrl,intWidth,intHeight);
	}else{
		var oPopupWrapper = getCSSObj("CORE_PopupIframe");
		var oPopup = getElm("iFramePopupLink");
		var frmPopup = window.frames["iFramePopupLink"];
		frmPopup.location.href = strUrl;
		var oBodyElm = (is.ie && is.intV >= 6)? document.documentElement : document.body;
		var intScrollLeft = (is.safari)? 0 : (typeof window.pageXOffset != "undefined")? window.pageXOffset : oBodyElm.scrollLeft;
		var intScrollTop = (is.safari)? 0 : (typeof window.pageYOffset != "undefined")? window.pageYOffset : oBodyElm.scrollTop;
		oPopupWrapper.left = (oEvent.clientX + intScrollLeft + 60) + "px";
		oPopupWrapper.top = (oEvent.clientY + intScrollTop - 20) + "px";
		oPopupWrapper.display = "block";
		oPopupWrapper.width = intWidth + "px";
		oPopupWrapper.height = intHeight + "px";
		oPopup.setAttribute("width",oPopupWrapper.width);
		oPopup.setAttribute("height",oPopupWrapper.height);
	}
}

function CORE_closeLayerPopup(){
	var oPopupWrapper = getCSSObj("CORE_PopupIframe");
	oPopupWrapper.display = "none";
}
/* EXAMPLE OF CUSTOMER SPECIFIC FUNCTIONS THAT OVERRIDES CORE*/
/*
function CUSTOMER_openPopup(oEvent,strUrl,intWidth,intHeight){
	alert("CUSTOMER_openPopup");
}

function CUSTOMER_openModalPopup(oEvent,strUrl,intWidth,intHeight){
	alert("CUSTOMER_openModalPopup");
}

function CUSTOMER_openLayerPopup(oEvent,strUrl,intWidth,intHeight){
	alert("CUSTOMER_openLayerPopup");
}
*/
