function openpopup(popurl,w,h){
var winpops=window.open(popurl,"","width=" + w +",height=" + h + ",toolbar,location,status,scrollbars,menubar,resizable")
}


function windowOpener(windowHeight, windowWidth, windowName, windowUri)
{
    var centerWidth = (window.screen.width - windowWidth) / 2;
    var centerHeight = (window.screen.height - windowHeight) / 2;

    newWindow = window.open(windowUri, windowName, 'resizable=0,width=' + windowWidth + 
        ',height=' + windowHeight + 
        ',left=' + centerWidth + 
        ',top=' + centerHeight);

    newWindow.focus();
    return newWindow.name;
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return "";
}

	function flipOpts(){
		var od = document.getElementById('sectionOpts');
		var nl = document.getElementById('optTog');
		
		if (od.style.display=='none'){
			od.style.display='block';
			nl.innerHTML='Close All Browse Filters';
		} else {
			od.style.display='none';
			nl.innerHTML='Open All Browse Filters';
		}
	}
