// Popup Window Script
function NewWindow(mypage, myname, w, h, scroll, resize) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+''
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
/* THIS GOES AS THE LINK IN THE PAGE
<a href="URL" onclick="NewWindow(this.href,'name','400','400','yes','no');return false;">TEXT</a>
*/

function meetingDownloadsHandler(meetingDropdownForm) {
    var URL = '/wug/downloads/'+document.meetingDropdownForm.m_id.options[document.meetingDropdownForm.m_id.selectedIndex].value+'/';
	window.location.href = URL;
};

function meetingAttendeesHandler(meetingsAttendeesForm) {
    var URL = '/wug/admin/attendees&m_id='+document.meetingsAttendeesForm.m_id.options[document.meetingsAttendeesForm.m_id.selectedIndex].value;
	window.location.href = URL;
};

function meetingDropdownHandler(page) {
    var URL = '/wug/' + page + '&m_id=' + document.meetingDropdownForm.m_id.options[document.meetingDropdownForm.m_id.selectedIndex].value;
	window.location.href = URL;
};
function streamDropdownHandler(page, m_id) {
    var URL = '/wug/' + page + '&m_id=' + m_id + '&stream_id=' + document.streamDropdownForm.stream_id.options[document.streamDropdownForm.stream_id.selectedIndex].value;
	window.location.href = URL;
};
