function popUp(URL) {
	var index = URL.indexOf('?');
	var fileName;
	if (index > 0) {
		fileName = Left(URL, index);
	} else {
		fileName = URL;
	}
	
	var width, height;
	if (fileName == 'eazyxray.cfm') {
		width = 825;
		height = 635;
	} else if (fileName == 'elite_toolbar.cfm') {
		width = 895;
		height = 445;
	} else if (fileName == 'interac_printable.cfm') {
		width = 680;
		height = 350;
	} else if (fileName == 'products_benefits.cfm#eazylibrary') {
		width = 750;
		height = 505;
	} else if (fileName == 'wordCount.cfm') {
		width = 560;
		height = 690;
	} else {
		width = 100;
		height = 100;
		alert ("unknown URL for javascript\popup.js " + fileName);
	}

	day = new Date(); id = day.getTime(); 
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = 137,top = 144');");
}

function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}