var thisBrowser = new bD(); //activates browser detect for later use

//menu pull-down link activation
function getLink(list) {
    var link = list.options[list.selectedIndex].value;
    
    if (link != "0") {
        window.location = link;
    }
}

//menu pull-down link activation
function getLinkNew(list) {
    var link = list.options[list.selectedIndex].value;
    
    if (link != "0") {
        window.open(link);
    }
}

// all-purpose pop-up window function
function newWindow(contents,windowname,windowsize) {
	var windowFeatures = windowsize + ",directory=no,location=no,menubar=no,resizable=yes,status=no,toolbar=no";
	popupWindow = window.open(contents,windowname,windowFeatures);
	popupWindow.focus();
}

//open charts pops
function openCharts(contents) {
	newWindow(contents,'popCharts','width=525,height=550,scrollbars=yes');
}

//search form validation
function ValidSubn(frm) {	
    var nsp = 0;
    for (var i=0; i < frm.query.value.length; i++ ) {
        if (frm.query.value.charAt(i) != " ") {
            nsp = nsp + 1;
        }
    }
    if (nsp == 0) {
        alert('Please enter a search term.');
        frm.query.focus();
        return false;
	}	
}


// Flex resize script

function theAppResize(theNewSize){
	theNewSize += "px";
	document.getElementById("mymovie2").style.height = theNewSize;
	
}


