// JavaScript Document

// openMe creates a window with a set name, location, and size
function openMe(winURL,winName) {
	var width = 0;
	var height = 0;
		
	switch (winName){
		case "password":
			width = 440; height = 300;
			break;
		case "content":
			width = 580; height = 500;
			break;
		case "liberty":
			width = 455; height = 500;
			break;
		case "maxwidth":
			width = 760; height = 550;
			break;
		case "sizeinfo":
			width = 350; height = 170;
			break;
		case "enlargepic":
			width = 350; height = 230;
			break;
		case "backorder":
			width = 640; height = 500;
			break;
		case "MoreInfo":
			width = 400; height = 430;
			break;	
		case "AnotherView":
			width = 400; height = 430;
			break;
		case "AlternateViews":
			width = 630; height = 430;
			break;	
		case "CustomerReviews":
			width = 500; height = 430;
			break;	
		case "verifySealBond":
			width = 850; height = 450;
			break;
		case "verifySeal":
			width = 500; height = 420;
			break;
		case "popstory":
			width = 600; height = 600;
			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()");	
}