﻿// openMe creates a window with a set name, location, and size
function windowOpen(winURL,winName) {
	var width = 0;
	var height = 0;
		
	switch (winName) {
		case "EnlargeImage":
			width = 400; height = 425;
			break;
		case "TrackingInfo":
		    width = 300; height = 300;
		    break;
	}
	
	//only launch window if we've set a width and height
	if (width > 0 && height > 0){
		launchWin(winName, winURL, width, height);
	}
}

function launchWin(winName, winURL, width, height){
	var ieIncrement = ((navigator.appName+"").indexOf("Netscape") == -1)? 15:0;
	eval(winName+"=window.open('"+ winURL +"','"+ winName +"','resizable=no,scrollbars=yes,width="+ (width + ieIncrement) +",height="+ (height + ieIncrement) +",top=5,left=75')");
	eval("window."+ winName +".focus()");	
}