﻿
function rcr_pop_up(openFile,width,height){
    NewWindow=window.open(openFile,"rcr_pop_up","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height)
}

function myFileBrowser (field_name, url, type, win) {
    var cmsURL = "/cms/assetwindow/fileBrowser.aspx";
    tinyMCE.openWindow({
        file : cmsURL + "?type=" + type,
        title : "RCR File Browser",
        width : 312,
        height : 476,
        close_previous : "no"
    }, {
        window : win,
        input : field_name,
        resizable : "no",
        inline : "no",
        editor_id : tinyMCE.selectedInstance.editorId
    });
    return false;
}
function right(e) {
	if (navigator.appName == 'Netscape' && e.which == 3) {
		alert("Sorry Right Click has been disabled!");
		return false;
	}
	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
		alert("Sorry Right Click has been disabled!");
		return false;
	}
	else return true;
}
function trapclick(img) 
{
	img.onmousedown = right;
	img.onmouseup = right;
}

function popUp(openPage,W,H){
    LeftPosition=(screen.width)?(screen.width-W)/2:100;
    TopPosition=(screen.height)?(screen.height-H)/2:100;
	NewWindow=window.open(openPage,"popuphelp","left=" + LeftPosition + ",top="+TopPosition+",,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+W+",height="+H);
}