// openMe creates a window with a set name, location, and size
function openMe(winURL,winName) {
	var width = 0;
	var height = 0;

	switch (winName){
		case "Survey":
			width = 602; height = 497;
			break;
		case "SpecialInstruction":
			width = 602; height = 497;
			break;
		case "shipping":
			width = 400; height = 500;
			break;
		case "handling":
			width = 620; height = 500;
			break;
		case "sizeinfo":
			width = 350; height = 170;
			break;
		case "enlargepic":
			width = 350; height = 230;
			break;
		case "backorder":
			width = 640; height = 500;
			break;
		case "AnotherViewP":
			/* Watches */
			width = 440; height = 515;
			break;
		case "AnotherViewA":
			/* Belts & Apparel - Tops, Skirts */
			width = 650; height = 630;
			break;
		case "AnotherViewS":
			/* Accessories */
			width = 610; height = 545;
			break;
		case "AnotherViewB":
			/* Apparel - Bottoms */
			width = 545; height = 650;
			break;
		case "AnotherViewL":
			/* Sunwear & Small Accessories (like womens' wallets) */
			width = 620; height = 420;
			break;
		case "AnotherViewH":
			/* Sunwear 2 (?) */
			width = 600; height = 275;
			break;			
		case "alternateview":
			width = 655; height = 480;
			break;
		case "threeD_P":
			width = 240; height = 275;
			break;
		case "threeD_B":
			width = 240; height = 275;
			break;
		case "threeD_A":
			width = 240; height = 275;
			break;	
		case "threeD_S":
			width = 240; height = 275;
			break;			
		case "threeD_H":
			width = 240; height = 200;
			break;	
		case "threeD_L":
			width = 420; height = 192;
			break;
		case "Demo":
			width = 436; height = 385;
			break;
	    case "detailpopupimage":
			width = 505; height = 282;
			/*THESE ARE THE CURRENT DIMENSIONS (06/29/2005) width = 237; height = 282;*/
			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=yes,scrollbars=yes,width="+ (width + ieIncrement) +",height="+ (height + ieIncrement) +",top=5,left=75')");
	eval("window."+ winName +".focus()");
}
