function openWindow(url, name, width, height, features) {
   	var chasm = screen.availWidth;
   	var mount = screen.availHeight;
   	featuresArray = features.split(",");
   	f = ',resizable=no,scrollbars=no,toolbar=no,menubar=no,status=no';
   	for (g=0; g < featuresArray.length; g++) {
   		f = f.replace( featuresArray[g] + "=no", featuresArray[g] + "=yes" 
);	
   	}
   	popup = window.open(url, name, 'top=' + (mount-height)/2 + ',left=' 
+ (chasm-width)/2 + ',width=' + width + ',height=' + height + f);
   	window.name = 'opener';
}