// 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 "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 "Shippingstd":
			width = 450; height = 350;
			break;
		case "securitycodes":
			width = 640; height = 550;
			break;
			case "modeltype":
			width = 500; height = 500;
			break;
		case "kickernewwin":
			launchWin1(winName, winURL);
	}
	
	//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()");	
}

function launchWin1(winName, winURL){
	var ieIncrement = ((navigator.appName+"").indexOf("Netscape") == -1)? 15:0;
	eval(winName+"=window.open('"+ winURL +"','"+ winName +"','location=yes,menubar=yes,toolbar=yes,titlebar=yes,resizable=yes,scrollbars=yes')");
	eval("window."+ winName +".focus()");	
}

function CreateWindow(winURL,winName,w,h,controls) 
{
  if (!w) { w="500"; }
  if (!h) { h="500"; }  
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/4 : 0;
  if (!controls){
    controls="directories=yes,resizable=yes,menubar=no,scrollbars=yes,location=yes,toolbar=yes";
  }
  details="'"+controls+",width="+w+",height="+h+", screenX="+LeftPosition+",screenY="+TopPosition+",top="+TopPosition+",left="+LeftPosition+"'";
  window.open(winURL,winName,details);
}