 function openCatalog() {
		window.open('products/index.html','mini_models','width=980",height=800,resizable=yes,scrollbars=yes,directories=yes,menubar=yes,toolbar=yes,status=yes');
		window.blur();
}
function ProductWindow(style) {
		window.open(style,'CaseStyle','width=800,height=600,resizable=yes,scrollbars=yes');
		window.blur();
}

function OptionsWindow(options) {
		if ( options.indexOf("+") > 0 ) {
		   options = options.substring(0,options.indexOf("+")) + "%2B" + options.substring(options.indexOf("+")+1,options.length);
		}

		window.open(options,'Options','width=900,height=600,resizable=yes,scrollbars=yes,directories=yes,menubar=yes,toolbar=yes,status=yes');
		window.blur();
}

function notesWindow(notes) {
		window.open(notes,'Notes_Connection','resizable=yes,scrollbars=yes');
		window.blur();
}

function pcbWindow(pcb) {
		window.open(pcb,'PCB_Layout','resizable=yes,scrollbars=yes');
		window.blur();
}

function popup_pdf(pdf) {
		window.open(pdf,'Model_Data', 'resizable=yes,scrollbars=yes');
		window.blur();
}

function popup_pdf2(url) {

		var i = url.indexOf("+");
		var url2 = url;

		if ( i > 0 ) {
		   url2 = url.substring(0,i) + "%2B" + url.substring(i+1,url.length);
		}

		window.open(url2,'Model_Data', 'resizable=yes,scrollbars=yes,toolbar=yes,toolbar=yes');
		//window.blur();
}

function SpecRequestWindow(url) {
		
		while ( url.indexOf("+") > 0 )  {
		   url = url.substring(0,url.indexOf("+")) + "%2B" + url.substring(url.indexOf("+")+1,url.length);
		}
		
		window.open(url,'','width=400,height=590,screenX=20,screenY=20,top=20,left=20,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0');
}

function SnPDownloadMsg() {
	alert('Please click on \"Save\" to save the simulation file in your computer or click on \"Open\" to view the file. Text editor software should be installed in your computer in order to view the file.');
}

function SnPDownloadNotFoundMsg() {
	alert('Under construction. Please click on \"Contact Us\" for support.');
}

function RatingsMsg(mttf) {
	alert('MEAN TIME TO FAILURE \(MTTF\)\n' + mttf + ' MILLION HOURS AT 25°C, GROUND BENIGN\nPER MIL-HDBK-217');
}
