

// Give a Description - pop up window



function description(definition){

var url = "/solutions/webdev/description.cfm?define=" + definition;

var winTop = (screen.height / 2) - 400;
var winLeft = (screen.width / 2) - 500;

windowFeatures = "width=400, height=230,";
windowFeatures = windowFeatures + "left=" + winLeft + ",";
windowFeatures = windowFeatures + "top=" + winTop + ",";
windowFeatures = windowFeatures + "toolbar=no, location=no, resizable=no, scrollbars=yes, status=no";

	 msgWindow=open(url, 'description', windowFeatures);
    if (msgWindow.opener == null) msgWindow.opener = self;
	}


//--------------------------------------------------------------------------------


// Open Admin Window

function adminpage(){
	
var gotolink = "admin/index.cfm";
	
var winTop = (screen.height / 2) - 300;
var winLeft = (screen.width / 2) - 350;
windowFeatures = "width=700, height=500,";
windowFeatures = windowFeatures + "left=" + winLeft + ",";
windowFeatures = windowFeatures + "top=" + winTop + ",";
windowFeatures = windowFeatures + "toolbar=no, location=no, resizable=no, scrollbars=yes, status=yes";

	 msgWindow=open(gotolink, 'adminw',windowFeatures);
    if (msgWindow.opener == null) msgWindow.opener = self;

}

//--------------------------------------------------------------------------------


// Open Window - No Self Close



function newWindow(file,width,height,window,toolbar,resize,scroll,status){

var wintopval = (height/2) + 50;
var winleftval = (width/2) + 10;
	
var winTop = (screen.height / 2) - wintopval;
var winLeft = (screen.width / 2) - winleftval;

windowFeatures = "width= " + width + ", height= " + height + ",";
windowFeatures = windowFeatures + "left=" + winLeft + ",";
windowFeatures = windowFeatures + "top=" + winTop + ",";

windowFeatures = windowFeatures + "toolbar= " + toolbar + ", location=no, resizable= " + resize + ", scrollbars= " + scroll + ", status= " + status;

	 msgWindow=open(file, window, windowFeatures);
    if (msgWindow.opener == null) msgWindow.opener = self;
	}


//--------------------------------------------------------------------------------