http://www.wcri.org/dusublets/default.asp
//--------------------------------------------------------------------------------------------------------------
// utils.js - global jscript utility functions
//--------------------------------------------------------------------------------------------------------------
function globalWin(url, toolbar, location, directories, status, menubar, scrollbars, resizable, width, height) {
	windowName = "NewWin";
	params = "";
	params += "toolbar=" + toolbar + ",";
	params += "location=" + location + ",";
	params += "directories=" + directories + ",";
	params += "status=" + status + ",";
	params += "menubar=" + menubar + ",";
	params += "scrollbars=" + scrollbars + ",";
	params += "resizable=" + "=" + resizable + ",";
	params += "width=" + width + ",";
	params += "height=" + height;
	win = window.open(url, windowName, params);
}
//--------------------------------------------------------------------------------------------------------------
function centerWin(windowWidth,windowHeight) {
	try {
		window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
	}catch(ex) {
		alert(ex.message);
	}
}
//--------------------------------------------------------------------------------------------------------------
function bookMarkPage(xhtmldocument) {
	window.external.AddFavorite(self.location.href,xhtmldocument.title);
}
//--------------------------------------------------------------------------------------------------------------
function EmailPage(xhtmldocument) {
	var bodyMsg = "Here's a great page you might be interested in: " + xhtmldocument.URL;
	self.location.href = "mailto:?" + "subject=Waterloo Co-Operative Residence Inc." + "&body=" + bodyMsg;
}
//--------------------------------------------------------------------------------------------------------------
function PrintPage(ele) {
	if(ele.value != "") {
		var printUrl = "http://" + ele.value;
		self.location.href = printUrl;
	}else {
		alert("This page contains content that cannot be printed");
	}
}
//--------------------------------------------------------------------------------------------------------------