// JavaScript Document
// open window uses a switch to get the proper window options.  This is more repeatable in code.
function openWindow(url, name) {
	
	var option;
	
	switch(name){
		
		case 'emailLink':
			option = 'toolbar=no,resizable=yes,scrollbars=yes,width=475,height=360';
			break
		
		default:
		  option = '';
	}
	
	var newwindow = window.open(url, name, option);
	if (!newwindow) { 
		alert("The pop-up window has been blocked. Please check your pop-up blocker setting."); 
	} else { 
		newwindow.focus(); 
	}
}
