var winOpen;
var winOpen2;
var winOpen3;

function MediaLaunch(strTitle, strPath){
	var windowName = 'mediaTarget';
	
	if (winOpen){
		winOpen.close();
	}
	
	windowName=window.open("",windowName,"scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,left=20,top=20,height=170,width=350");
	windowName.document.write("<font color=navy size=3><b>" + strTitle + "</b></font><br><br>");
	windowName.document.write("<embed src='" + strPath + "' width='300' height='45' autoplay=true controller=true></embed>");
	windowName.document.write("<br><font size=1 name=arial>If file does not play, try this link: <a href='" + strPath + "'>" + strTitle + "</a><br></font>");
	windowName.document.write("<br><a href='javascript:window.close();'>Close</a>");
	windowName.focus();
	
	winOpen = windowName;
	
}


function MsgLaunch(strTitle, strMsg){
	var windowName = 'msgTarget';
	
	if (winOpen2){
		winOpen2.close();
	}
	
	windowName=window.open("",windowName,"scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,left=20,top=20,height=250,width=500");
	windowName.document.write("<font color=navy size=3><b>" + strTitle + "</b></font><br>");
	windowName.document.write("<table border=1 cellpadding=0 cellspacing=0>");
	windowName.document.write("<tr><td><P><font size=2 name=arial>" + strMsg + "</font></P></td></tr></table>");
	windowName.document.write("<br><a href='javascript:window.close();'>Close</a>");
	windowName.focus();
	
	winOpen2 = windowName;
	
}

function PageLaunch(strURL){
	var windowName = 'msgTarget';
	
	if (winOpen3){
		winOpen3.close();
	}
	
	windowName=window.open(strURL,windowName,"scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,left=20,top=20,height=170,width=350");
	windowName.focus();
	
	winOpen3 = windowName;
	
}
