function NewWindow(mypage, myname, w, h, scroll){
	var win = null;
	
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win = window.open(mypage, myname, settings);
}

function showInfo(info) {
	if(info == 'specs') {
		document.getElementById("features").style.display = "none";
		document.getElementById("features_tab").className = "";
		if(document.getElementById("warranty_tab") != undefined) {
			document.getElementById("modelwarranty").style.display = "none";
			document.getElementById("warranty_tab").className = "";
		}
	} else if (info == 'features') {
		document.getElementById("specs").style.display = "none";
		document.getElementById("specs_tab").className = "";
		if(document.getElementById("warranty_tab") != undefined) {
			document.getElementById("modelwarranty").style.display = "none";
			document.getElementById("warranty_tab").className = "";
		}
	} else if (info == 'warranty') {
		document.getElementById("features").style.display = "none";
		document.getElementById("specs").style.display = "none";
		document.getElementById("features_tab").className = "";
		document.getElementById("specs_tab").className = "";
	}

	if(info == 'warranty') {
		document.getElementById('model' + info).style.display = "block";
		document.getElementById(info + "_tab").className = "current";
	} else {
		document.getElementById(info).style.display = "block";
		document.getElementById(info + "_tab").className = "current";
	}
}

function printBrochure() {
	window.print();
}

