//------------------- OPEN NEW WINDOW -------------------//

var newWindow = null;

function closeWin(){
 if (newWindow != null){
 if(!newWindow.closed)
 newWindow.close();
 }
}

function popUpSWF(url, type, Width, Height, arg1, arg2, arg3){
 closeWin();
 tools = "resizable=no,toolbar=no,location=no,directories=no,status=no,scroll=no,scrollbars=no,menubar=no,width="+Width+",height="+Height+",left=0,top=0";
 if(type == "mp"){
 newWindow = window.open(url+"?bandwidth="+arg1+"&video="+arg2+"&lan="+arg3, 'newWin', tools);
 }
 if(type == "mc"){
 newWindow = window.open(url+"?category="+arg1+"&videoNum="+arg2, 'newWin', tools);
}
 if(type == "bna"){
 newWindow = window.open(url+"?procedure="+arg1+"&caseNum="+arg2, 'newWin', tools);
 }
 newWindow.focus();
}
function printFlash(source, width, height, id, bg_color, flashVars) {
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
 document.write('width="'+width+'" height="'+height+'" id="'+id+'" align="middle" />');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name=flashVars value="'+flashVars+'" />');
 document.write('<param name="movie" value="'+source+'" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="bgcolor" value="'+bg_color+'" />');
 document.write('<embed src="'+source+'" flashVars="'+flashVars+'" menu="false" quality="high" bgcolor="'+bg_color+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" ');
 document.write('allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}