 function openWin1(page) {

    var options = "scrollbars=yes, width=780, height=700";
    var win = window.open(page, 'MyWin', options);
    if (window.focus) {
        win.focus()
    }

  }
 function calculateFormCssProperties()
{

  var head = document.getElementById("head").offsetHeight;
  var head1 = document.getElementById("head1").offsetHeight;
  var imageHeight = document.getElementById("prequal").offsetHeight;
  var formTable1=document.getElementById("formTable");
  var formTable3=document.getElementById("formTable2");
   if(formTable1 != null)
   {
       var formTable2 = formTable1.offsetHeight;
	   var formTable4 = formTable3.offsetHeight;

         document.getElementById("formmainbody").style.height = head + head1 + formTable2 + formTable4 + 120;
         document.getElementById("formmiddle").style.height=formTable2 + formTable4 + 43;
       document.getElementById("formmiddle_inner").style.height=formTable2 + formTable4 + 43;
         document.getElementById("formbottom").style.top=formTable2 + formTable4 + 43+"px" ;
         document.getElementById("formfooter").style.top = head + head1 + formTable2 + formTable4 + 75;
         document.getElementById("formcontainer").style.height = head + head1 + formTable2 + formTable4 + 220 ;

   }

}
function popupPreview(urltxt, wid, high)
{ 		
  wid+=0;
  high+=0;
  var flagvar=0;
  
  try{
		confirmWin.close();
		confirmWin=window.open(urltxt, "kwu", 
                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +
                         "resizable=yes,status=no,toolbar=no,scrollbars=yes");
	}
	catch(e)
	{
		confirmWin=window.open(urltxt, "kwu", 
                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +
                         "resizable=yes,status=no,toolbar=no,scrollbars=yes");
	}

  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, "kwu", 
                             "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;
    }
  }
  wid=0;
  high=0;
} 
function doProcessing() {
	document.getElementById('button').className = 'thide';
	document.getElementById('processing').className = 'tshow';
	 setLeavingFlagToFalse();
} 
function doProcessing1() {
	document.getElementById('button1').className = 'thide';
	document.getElementById('processing1').className = 'tshow';
    
} 
function submitform(targetURL) {
		document.forms[0].method= "POST";
		document.forms[0].action = targetURL;
		document.forms[0].submit();
}

