function LinkFromFlash(href, redirect) {
    var confirm_redirect = true;
    if (document.URL.indexOf("dbcmlv=1") != -1) {
        if (redirect) {
            confirm_redirect = confirm("LinkFromFlash, OK to redirect:\nHref: " + href + "\nName: " + name);
        } else {
            alert("LinkFromFlash:\nHref: " + href + "\nName: " + name);
        }
    }
    if (redirect && confirm_redirect) {
        document.location = href;
    }
}

function driveParent (destination) {
                if (window.opener) {
                                window.opener.location.href = destination;
                                window.opener.focus ();
                } else {
                                // If the user closed the parent window, create a new one
                                var newWin = window.open (destination, '', '');
                                newWin.focus ();
                }
}

function createPopUp(url, name, optionString) {
	if (!name){
		name = "newwnd";
	}
	if (!optionString){
		optionString = "toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,height=500,width=730,screenX=4,screenY=4,top=4,left=4";
	}		
	win = window.open(url, name, optionString);
	win.focus();
}


