function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function newWindow() {
	x = top.product.location.href;

// check for external pages
var u = "" + x;
y = "";
for (i=0; i < u.length; i++) {
	if (u.charAt(i) == '?') {
		while ( i < u.length) {
		i++;
		y = y + u.charAt(i);
		}
	}
}
q = y.length;
z = y.charAt(q-4) + y.charAt(q-3) + y.charAt(q-2) + y.charAt(q-1);
if (z == 'html') {	
// open product window	
	MM_openBrWindow(y,'','menubar=yes,scrollbars=yes,resizable=yes');
} else {
// open external product window
	MM_openBrWindow(x,'','menubar=yes,scrollbars=yes,resizable=yes');
}
}


function goSection() {
x = document.navmenu.section.options[document.navmenu.section.selectedIndex].value;
if (x == 'coop') {
	x = x + '.php';
} else {
x = x + '.html';
}

if (x == 'county_climate.html') {
	x = '/county_climate/Products/County%20Climate%20Information%20Homepage.html';	
}

top.document.location.href = x;
document.navmenu.section.selectedIndex = 1;
}
