function openPage(pageurl, width, height) {
	pageoptions = "top=20, left=20, innerHeight=" + height +", innerWidth=" + width + ", location=yes, menubar=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, titlebar=yes";
	window.open(pageurl, '', pageoptions);
}

function popupPreview(urltxt, wid, high, newSite) 
{ 		
  wid+=23;
  high+=34;
  var flagvar=0;
 
  if (newSite) {
    confirmWin=window.open(urltxt, "Thandie", 
                         "height=" +high+ ",width="+wid+",directories=no,location=1,menubar=1," +
                         "resizable=yes,status=no,toolbar=0,scrollbars=yes,top=0,left=0");
  }
  else {
    confirmWin=window.open(urltxt, "Thandie", 
                         "height=" +high+ ",width="+wid+",directories=no,location=0,menubar=0," +
                         "resizable=yes,status=no,toolbar=0,scrollbars=yes,top=0,left=0");
  }
  
  if (window.confirmWin)
  { 
    if (window.focus) 
    { 
      if ((navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
          &&
          (navigator.appVersion.indexOf("4.") != -1)
          &&
          (parent.length>0))
      { 
        window.confirmWin.close(); 
        flagvar=1;
        timevar = setTimeout("openit(urltxt)", 300);      
      }
      else
      {
        confirmWin.focus();
      }
    } 
    else
    {  
      if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)  // If this is a MSIE Browser
      {  
        if (navigator.appVersion.indexOf("3.") != -1)  // MSIE 3.x
        {
          if (isLoaded == true)
          {
            alert("If the large image does not pop up, press the 'Product Close-up' tab in your task bar, or locate the image browser behind your open window." );
            return;
          }
          else
          {
            alert("If the Site Menu bar does not pop up, press the 'Product Close-up' tab in your task bar, or locate the image browser behind your open window." );
            return;
          } 
        } 
      }
    }
  }          
  else
  {
    confirmWin = window.open(urltxt, "Thandie", 
                             "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +
                   "resizeable=no,status=no,toolbar=no");
    var isLoaded = true;
  }
  
  // This is important for Netscape 2.0 to enable the opener property
  if (flagvar!=1)
  {
    if (confirmWin.opener == null)
    {
      confirmWin.opener = self;
    }
  }
} 

function doSubmit() {
	document.getElementById('submitBttn').className = 'thide'; 
	document.getElementById('submitBttnOff').className = 'tshow';
	  if(navigator.userAgent.indexOf("Firefox")!=-1)
      {                               
       window.location.reload( true );
      }
}

