  function func_open_comment_window(sUrl)
  {
    var features = "scrollbars=yes, resizable=yes, width=275, height=195", myWidth = "275", myHeight = "195";
    if(window.screen)
    {
        var myLeft = (screen.width - myWidth) / 2;
        var myTop = (screen.height - myHeight) / 2;
        features+=', left=' + myLeft + ', top=' + myTop;
    }
    var winComments = window.open(sUrl, "win_comments", features);
    winComments.focus();
  }
  
  function func_open_popup_window(sUrl)
  {
    var features = "scrollbars=yes, resizable=yes, width=275, height=195", myWidth = "275", myHeight = "195";
    if(window.screen)
    {
      var myLeft = (screen.width - myWidth) / 2;
      var myTop = (screen.height - myHeight) / 2;
      features+=', left=' + myLeft + ', top=' + myTop + ', width=' + iWidth + ', height=' + iHeight;
    }
    var winComments = window.open(sUrl, "win_popups", features);
    winComments.focus();
  }

  function func_open_popup_window(sUrl, sTitle, iWidth, iHeight)
  {
    var sFeatures = "scrollbars=yes, resizable=yes";
    if(window.screen)
    {
      var myLeft = (screen.width - iWidth) / 2;
      var myTop = (screen.height - iHeight) / 2;
      sFeatures+=', left=' + myLeft + ', top=' + myTop + ', width=' + iWidth + ', height=' + iHeight;
    }
    var winComments = window.open(sUrl, sTitle, sFeatures);
    winComments.focus();
  }
  
  function func_open_popup_window(theURL, winName, features, myWidth, myHeight, isCenter) 
  {
    if(window.screen)if(isCenter)if(isCenter=="true")
    {
      var myLeft = (screen.width-myWidth)/2;
      var myTop = (screen.height-myHeight)/2;
      features+=(features!='')?',':'';
      features+=',left='+myLeft+',top='+myTop;
    }  
    newWin = window.open(theURL,winName,features + ',menubar=no,toolbar=no,status=no,width=' + myWidth + ',height=' + myHeight);
    newWin.focus();
  }
  
  function BodyHeaderDrPopUp(theURL,winName,features, myWidth, myHeight, isCenter)
  {
    if(window.screen)if(isCenter)if(isCenter=="true"){
      var myLeft = (screen.width-myWidth)/2;
      var myTop = (screen.height-myHeight)/2;
      features+=(features!='')?',':'';
      features+=',left='+myLeft+',top='+myTop;
    }
    window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  }
  
  function func_open_popup(sUrl, myWidth, myHeight)
  {
    eval("winBrowser=window.open('"+sUrl+"','','scrollbars=1,location=0,resizable=1,width="+myWidth+",height="+myHeight+"')")
  }
  function func_img_elarge_load(oImgobj,sSrc) 
  { 
   var oImg=new Image; 
   oImg.onload=function(){document.getElementById(oImgobj).src=oImg.src} 
   oImg.onerror=function(){func_img_large_load(oImgobj,sSrc);} 
   oImg.src= sSrc;             
  } 
  function func_img_large_load(oImgobj,sSrc) 
  { 
   var oImg=new Image; 
   oImg.onload=function(){document.getElementById(oImgobj).src=oImg.src} 
   oImg.onerror=function(){document.getElementById(oImgobj).src="/product_elarge_images/no-manufacturers.gif"} 
   oImg.src= sSrc;             
  } 
  
  function func_capitalize(oCtrl)
  {
    if(oCtrl)
    {
      var sValue = oCtrl.value;
      var sCapsValue = '';
      var arrValue = sValue.split(' ');
      for (var iCtr = 0; iCtr < arrValue.length; iCtr++)
      {
        sCapsValue += arrValue[iCtr].substring(0,1).toUpperCase() + arrValue[iCtr].substring(1, arrValue[iCtr].length) + ' ';        
      }
      oCtrl.value = sCapsValue.trim();
    }
  }

