function OpenPopup( width, height, name, toOpen, toOpenName  )
{
	eval("popUpWindow = void(window.open(toOpen, toOpenName, 'toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=" + width + ",height=" + height + "'))")
}

function OpenPopupWithScrolling(width, height, name, toOpen, toOpenName) {
    eval("popUpWindow = void(window.open(toOpen, toOpenName, 'toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width=" + width + ",height=" + height + "'))")
}

function refreshOpener( ) {
	opener.top.location.href = goToUrl;
	self.close();
}
function refreshOpenerAndContinue( ) {

	opener.top.location.href = goToUrl;
	//document.location.href = popupUrl;
}
function selfClose() {
	self.close();
}
function refreshOpenerAndClose() {
	if (self.opener == null) self.opener = window;
	if (self.name=="NewDepot")
		opener.top.location.href="index.asp?action=personal_portfolioOverview&menuID=7_1";
	else
		opener.top.location.reload();
	self.close();
}
function openParent(urlToOpen) {
	if (self.opener == null) self.opener = window;
	opener.top.location.href=urlToOpen;
}
function setActionType(frmElement,actionType){
frmElement.actionType.value=actionType;
	frmElement.submit();
}
function openMoreBawagSites() {
    var moreBawagSites = document.getElementById("moreBawagSites");
    
    if (moreBawagSites.value != '') {
        window.open(moreBawagSites.value, "_blank");
        moreBawagSites.selectedIndex = 0;
    }
}
