
   function openAnything(winWidth, winHeight, winUrl, winName) {
    var winL = (screen.width - winWidth) / 2;
    var winT = (screen.height - winHeight) / 2;
    newwindow = window.open( winUrl , winName , 'width='+winWidth+', height='+winHeight+', top='+winT+', left='+winL+', resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no, status=yes, menubar=no, copyhistory=no');
    if (window.focus) { newwindow.focus() }
    return false;
   }

   function jumpTo(URL_List) {
    var URL = URL_List.options[URL_List.selectedIndex].value;
    window.location.href = URL;
    return false;
   }

   function expand(el,ud) {
    var iha = document.getElementById(el.id);
    var pha = document.getElementById(el.parentNode.id);
    var istatus = iha.getAttribute('istatus') ;
    if ( istatus == 'up' ) {
     pha.style.height = '';
     iha.src = 'chrome/sign_minus.gif';
     iha.setAttribute('istatus','down');
     iha.setAttribute('alt','Collapse');
    }
    if ( istatus == 'down' ) {
     pha.style.height = '18px';
     iha.src = 'chrome/sign_plus.gif';
     iha.setAttribute('istatus','up');
     iha.setAttribute('alt','Expand');
    }
    return false;
   }

   function doAlign(el) {
    var iha = document.getElementById(el.id);
    var cha = document.getElementById('strCode');
    var alignval = iha.getAttribute('value');
    cha.innerHTML = alignval;
    return false;
   }

   function popImage(imgid) {
    window.open( 'includes/showimage.asp?imgid=' + imgid , 'popImage' + imgid , 'width=70, height=40, resizable=no, scrollbars=no, toolbar=no, location=no, directories=no, status=yes, menubar=no, copyhistory=no');
    //alert('Enlarge Image');
    return false;
   }