﻿// JavaScript function for switching to web page when user
// selects option from the given list box.
function switchpage(select) 
{
    //create an index integer
    var index;

    //loop through all of the items in the list box
    for(index=0; index < select.options.length; index++)
    {
        //if the item in the index is selected, analyze it.
        if(select.options[index].selected)
        {
            //if the selected item has a value, open it in a new window
            if(select.options[index].value!="")
                window.open(select.options[index].value);
            
            //exit the loop
            break;
        } 
    }
}

function poptastic(url)
{
    var newwindow;
    newwindow=window.open(url,'name','height=400,width=400');
    if (window.focus) {newwindow.focus()}
}