/*
 * ==============================================================
 * Copyright (c) 2008 Copyright Dave Hampton; All Rights Reserved
 * ==============================================================
 */

function showSelected (selection, url, width, height, windowname) {
	with (selection) {
		openthis(url+'&id='+options[selectedIndex].value+'&nomenus=true', width, height, windowname);				
	}
	return false;
}

function openthis(url, width, height, windowname) {
	topp=20;
	left=20;
	newwin = window.open(url, windowname, "width="+width+",height="+height+",top="+topp+",left="+left+",right=0,bottom=0,toolbar=no,location=no, directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no")
	if (newwin.opener == null) newwin.opener = self;
	newwin.focus();
}

function openParent(url) {
	top.opener.window.location.href=url;
	top.opener.window.focus();

}

function closeModal() {
	document.getElementById("modalMessage").style.display='none';
}