function getElement(id) { 
 return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
} 
function sethidden(n,v) { 
 var HTML = '', el = getElement('hid');
 
 HTML += '<input  type="hidden" name="' + n + '" value="' + v + '" />';
 if (el) el.innerHTML = el.innerHTML + HTML;
}
function setsubmit(n,v) { 
 var HTML = '', el = getElement('hid');
 
 HTML += '<input  type="SUBMIT" name="' + n + '" value="' + v + '" />';
 if (el) el.innerHTML = el.innerHTML + HTML;
}
function synchTab(frameName) {

  var elList, i;

  // Exit if no frame name was given.

  if (frameName == null)
    return;

  // Check all links.

  elList = document.getElementsByTagName("A");
  for (i = 0; i < elList.length; i++)

    // Check if the link's target matches the frame being loaded.

    if (elList[i].target == frameName) {

      // If the link's URL matches the page being loaded, activate it.
      // Otherwise, make sure the tab is deactivated.

      if (elList[i].href == window.frames[frameName].location.href) {
        elList[i].className += " activeTab";
        elList[i].blur();
      }
      else
        removeName(elList[i], "activeTab");
    }
}

function removeName(el, name) {

  var i, curList, newList;

  // Remove the given class name from the element's className property.

  newList = new Array();
  curList = el.className.split(" ");
  for (i = 0; i < curList.length; i++)
    if (curList[i] != name)
      newList.push(curList[i]);
  el.className = newList.join(" ");
}

function sendvid(v) { 
 var HTML = '', el = getElement('qt_player1');
 
 //HTML += '<input  name="' + n + '" value="' + v + '" /><br />';
 //if (el) el.innerHTML = el.innerHTML + HTML;
 if (el) frames['qt_player1'].location.href =  v;
 else window.alert('no element');
 el.reload()
}

function do_fromchild(v) {
  window.alert(v)
}

<!--

// preload the spacer image to prevent stretching

spacer = new Image();
spacer.src = "/images/spacer";

// pop a new window w/ the following attributes

function pop(page,win,w,h,status,resizable,menubar,toolbar,scrollbars){
  cstring = "status=" + status +",resizable=" + resizable +",menubar=" + menubar +",toolbar=" + toolbar +",scrollbars=" + scrollbars +",width=" + w + ",height=" + h + ",left=150, top=150";
  
  popper = window.open(page,win,cstring);
  window.name = "opener";
}

// Show this at the status bar

window.status = "";
   var currentPanel;
   
   function showPanel(panelNum) {
      //hide visible panel, show selected panel, 
      //set tab
      if (currentPanel != null) {
         hidePanel();
      }
      document.getElementById 
         ('panel'+panelNum).style.visibility = 'visible';
         currentPanel = panelNum;
         setState(panelNum);
   }
   
   function hidePanel() {
      //hide visible panel, unhilite tab
      document.getElementById
        ('panel'+currentPanel).style.visibility = 
         'hidden';
      document.getElementById
        ('tab'+currentPanel).style.backgroundColor = 
        'white';
      document.getElementById
        ('tab'+currentPanel).style.color = 'green';
   }
   
   function setState(tabNum) {
      if (tabNum==currentPanel) {
         document.getElementById 
           ('tab'+tabNum).style.backgroundColor = 
           '#deeab5';
         document.getElementById
           ('tab'+tabNum).style.color = 'green';
      } else {
         document.getElementById
           ('tab'+tabNum).style.backgroundColor = 
           'white';
         document.getElementById
           ('tab'+tabNum).style.color = 'green';
      }
   }
   
   function hover(tab) {
      tab.style.backgroundColor = 'cccccc';
      tab.style.color = 'green';
   }
// -->

