function launchwindow(url, name, parameters) {
	newWin = window.open(url, name, parameters);
		// to bring back the focus to the window, if its already opened
	if (!(newWin.closed)) {
	//	newWin.location.reload(true); 
		newWin.focus();
	}

}

//-----------------------------------
// checkPopup	-	checks existence of popup blocker
//		xwind		:	window name (object)
//		msgno		:	message no. to show
//-----------------------------------
function checkPopup(xwind, msgno) {
 		if((xwind==null)||(xwind==0)|| (typeof(xwind)=="undefined"))
		{	switch (msgno){
				case "1":
					strmsg="You are using a pop-up blocker.\n\nThis video/audio will not work unless you turn off\n the pop-up blocker and restart your browser.";
					break;
				default:
					strmsg="You are using a pop-up blocker.\n\nThis link will not work unless you turn off\n the pop-up blocker and restart your browser."
			}
		alert(strmsg);
		 }
		// else { if (!(xwind.closed)){xwind.focus();}
		// }
}
