function fillframe( framename, URL ) {
           if (window.parent != null && window.parent[framename] != null) {
              window.parent[framename].location.replace( URL );
           }
}

function selectframes (tab, contentURL) {
           window.parent['tabframe'].location.replace( 'tabs_html?tab='+tab );
           window.parent['contentframe'].location.replace( contentURL );
}

function refresh(framename){
           window.parent[framename].location.reload(true);
}

function helpconnect() {
   var v = window.parent.contentframe.location;
   v = 'helpmonitor?context_url='+v;
   window.open(v, 'help', 'menubar=no,statusbar=no,toolbar=no,resizable=yes,scrollbars=yes');
}

function jumptolocation (anchorName) {
     sz = anchorName.length;
     if ((location.length > sz) && location.substr(-sz)== anchorName) urlpath = location;
     else urlpath = location+anchorName;
     window.parent['contentframe'].location.replace(urlpath);
}

function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
   {
   if(mySel.form.target)myWin = parent[mySel.form.target];
   else myWin = window;
   if (! myWin) return true;
   myWin.location = myVal;
   }
return false;
}


function ckpopup(){
//open the test popup window for popup blocking detection
var x,y,mine;
  if (x==y){
      //first time through
      mine = window.open('','','width=0,height=0,scrollbars=no,toolbar=no,menubar=no');
      if (!mine) {return true;}
      else return false;
           }
}

function ieupdatefix(){
//fix the microsoft flash patent fiasco
theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; }
}


function embedPlayer(cgistrg, width, height) {
document.write('<object id="amFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="');
document.write(width);
document.write('" height="');
document.write(height);
document.write('">');
document.write('<param name="movie" value="');
document.write(cgistrg)
document.write('">');
document.write('<param name="quality" value="high">');
document.write('<param name="bgcolor" value="#FFFFFF">');
document.write('<!--[if!IE]>-->');
document.write('<object type="application/x-shockwave-flash" data="');
document.write(cgistrg);
document.write('" width="');
document.write(width);
document.write('" height="');
document.write(height);
document.write('">');
document.write('<param name="quality" value="high">');
document.write('<param name="allowscriptaccess" value="sameDomain">');
document.write('<param name="bgcolor" value="#FFFFFF">');
document.write('</object>');
document.write('<!--<![endif]-->');
document.write('</object>');
}
