﻿

function displayTabBody(tabName){

    document.getElementById("divProductBody").innerHTML= document.getElementById(tabName).innerHTML;
}

function displayTabBodyAndHeight(tabName, height){

    document.getElementById("divProductBody").innerHTML= document.getElementById(tabName).innerHTML;
    document.getElementById("divBody").style.height=height;
}


function setTabStyleUnselected(tabName) {
    document.getElementById(tabName).className='tabUnselected';
}
function setTabStyleSelected(tabName) {
    document.getElementById(tabName).className='tab';
}


function popupBrowser800(url){
  
   
    w=880;
    h=700;
    title="UPS";
  
    var left = (screen.width/2)-(w/2);
    var top = (screen.height/2)-(h/2);
    var targetWin = open (url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}

function popupBrowser(url, width, height){
  
   
    w=width;
    h=height;
    title="UPS";
  
    var left = (screen.width/2)-(w/2);
    var top = (screen.height/2)-(h/2);
    var targetWin = open (url, title, 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, copyhistory=0, width='+w+', height='+h+', top='+top+', left='+left);
}


/*
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
*/

 function MM_preloadImages() {
    if (document.images) {
        var imgFiles = MM_preloadImages.arguments;
        if (document.preloadArray == null) {
            document.preloadArray = new Array();
        }
        var i = document.preloadArray.length;
        with (document) {
            for (var j = 0; j < imgFiles.length; j++) {
                if (imgFiles[j].charAt(0) != "#") {
                    document.preloadArray[i] = new Image();
                    document.preloadArray[i++].src = imgFiles[j];
                }
            }
        }
    }
}



