// Common JavaScript functions for Lube Quote Pro's Website

function DisplayHeader()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0' height='52' bgcolor='#FFFFFF'>");
    document.writeln("  <tr>");
    document.writeln("    <td width='165' height='66' valign='top' align='center' nowrap bgcolor='#FFFFFF'>");
    document.writeln("    <p style='text-indent: 0; margin: 0'>");
    document.writeln("    <a href='http://www.lubequotepro.com'><img border='0' src='img/title.gif' width='365' height='55'></a></p>");
    document.writeln("    </td>");
    document.writeln("    <td align='right'>");
    document.writeln("    <table border='0' cellpadding='0' cellspacing='0' width='100%'>");
    document.writeln("      <tr>");
    document.writeln("        <td style='PADDING-RIGHT: 10px; ' vAlign='bottom' align='right'>");
    document.writeln("        <table cellSpacing='0' cellPadding='0' border='0'>");
    document.writeln("            <tr>");
    document.writeln("              <td align='center' width='10'></td>");
    document.writeln("              <td><a class='sHeadLink' href='http://www.lubequoteprolite.com'>");
    document.writeln("              <img border='0' src='img/cart1.gif' width='17' height='17'></a></td>");
    document.writeln("              <td width='10' align='center'>");
    document.writeln("              <img height='13' hspace='2' src='img/spacer1.gif' width='1' border='0'></td>");
    document.writeln("              <td><font color='#44577B'>");
    document.writeln("              <img border='0' src='img/spacer2.gif' width='3' height='3'></font><a class='sHeadLink' href='http://www.lubequotepro.com/forum/index.php'>My Forum");
    document.writeln("              Account</a><font color='#44577B'><img border='0' src='img/spacer2.gif' width='3' height='3'></font></td>");
    document.writeln("              <td width='10' align='center'>");
    document.writeln("              <img height='13' hspace='2' src='img/spacer1.gif' width='1' border='0'></td>");
    document.writeln("              <td><font color='#44577B'>");
    document.writeln("              <img border='0' src='img/spacer2.gif' width='3' height='3'></font><a class='sHeadLink' href=''>");
    document.writeln("              </a><font color='#44577B'><img border='0' src='img/spacer2.gif' width='3' height='3'></font></td>");
    document.writeln("              <td width='10' align='center'>");
    document.writeln("              </td>");
    document.writeln("            </tr>");
    document.writeln("          </form>");
    document.writeln("          </tbody>");
    document.writeln("        </table>");
    document.writeln("        </td>");
    document.writeln("      </tr>");
    document.writeln("      <tr>");
    document.writeln("        <td style='PADDING-RIGHT: 10px;' align='right'><font color='#44577B'>");
    document.writeln("        <img border='0' src='img/spacer2.gif' width='10' height='10'><br>&nbsp;</font></td>");
    document.writeln("      </tr>");
    document.writeln("    </table>");
    document.writeln("    </td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

// Next Section
function DisplayNavBar()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("<tr>");
    document.writeln("<td background='img/backimage2.gif'>");
    document.writeln("<div align='center'>");
    document.writeln("<center>");
    document.writeln("<script type='text/javascript' language='JavaScript1.2'>");
    document.writeln("<!--");
    document.writeln("stm_bm(['mainmenu',430,'','img/spacer2.gif',0,'','',1,0,0,0,50,1,0,0,'','',0],this);");
    document.writeln("stm_bp('p0',[0,4,0,0,3,0,15,0,100,'progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.20)',-2,'',-2,90,0,0,'#7f7f7f','#000000','img/backimage2.gif',3,0,0,'#000000']);");
    document.writeln("stm_ai('p0i0',[6,15,'transparent','img/spacer3.gif',2,16,0]);");
    // First Menu Item
	document.writeln("stm_ai('p0i1',[0,'Home','','',-1,-1,0,'index.htm','_self','','','','',1,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',2,3,0,0,'#ffffff','#ffff00','#505050','#d00000','bold 8pt Verdana','bold 8pt Verdana',0,0]);");
    document.writeln("stm_bp('p1',[1,4,-10,4,0,3,7,0,100,'',-2,'',-2,90,0,0,'#cccccc','transparent','',3,1,1,'']);");
    //document.writeln("stm_aix('p1i0','p0i1',[0,'Screenshots and Features','','',-1,-1,0,'screenshots.htm','_self','','','img/ddmenu1.gif','img/ddmenu1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#969696',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','11px Verdana','11px Verdana']);");
    document.writeln("stm_aix('p1i1','p0i0',[6,1,'#cccccc','',-1,-1]);");
    //document.writeln("stm_aix('p1i2','p1i0',[0,'Demonstration Video','','',-1,-1,0,'/demovideo/LQPBasics.html','_blank']);");
    document.writeln("stm_aix('p1i3','p1i1',[]);");
    //document.writeln("stm_aix('p1i4','p1i0',[0,'New Product Text','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p1i5','p1i1',[]);");
    //document.writeln("stm_aix('p1i6','p1i0',[0,'New Product Text','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p1i7','p1i1',[]);");
    //document.writeln("stm_aix('p1i8','p1i0',[0,'New Product Text','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p1i9','p1i1',[]);");
    //document.writeln("stm_aix('p1i10','p1i0',[0,'Product FAQ','','',-1,-1,0,'faq.htm']);");
    //document.writeln("stm_aix('p1i11','p1i1',[]);");
    //document.writeln("stm_aix('p1i12','p1i0',[0,'Manuals','','',-1,-1,0,'manual.htm']);");
    //document.writeln("stm_aix('p1i13','p1i1',[]);");
    //document.writeln("stm_aix('p1i14','p1i0',[0,'Online Registration','','',-1,-1,0,'http://www.cnet.com']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    // Next Menu Item
	document.writeln("stm_ai('p0i1',[0,'Screenshots & Video','','',-1,-1,0,'','_self','','','','',1,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',2,3,0,0,'#ffffff','#ffff00','#505050','#d00000','bold 8pt Verdana','bold 8pt Verdana',0,0]);");
    document.writeln("stm_bp('p1',[1,4,-10,4,0,3,7,0,100,'',-2,'',-2,90,0,0,'#cccccc','transparent','',3,1,1,'#808080']);");
    document.writeln("stm_aix('p1i0','p0i1',[0,'Screenshots and Features','','',-1,-1,0,'screenshots.htm','_self','','','img/ddmenu1.gif','img/ddmenu1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#969696',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','bold 11px Verdana','bold 11px Verdana']);");
    document.writeln("stm_aix('p1i1','p0i0',[6,1,'#cccccc','',-1,-1]);");
    document.writeln("stm_aix('p1i2','p1i0',[0,'Demonstration Video','','',-1,-1,0,'/LQPBasics112508/LQPBasics112508.html','_blank']);");
    document.writeln("stm_aix('p1i3','p1i1',[]);");
    //document.writeln("stm_aix('p1i4','p1i0',[0,'New Product Text','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p1i5','p1i1',[]);");
    //document.writeln("stm_aix('p1i6','p1i0',[0,'New Product Text','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p1i7','p1i1',[]);");
    //document.writeln("stm_aix('p1i8','p1i0',[0,'New Product Text','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p1i9','p1i1',[]);");
    //document.writeln("stm_aix('p1i10','p1i0',[0,'Product FAQ','','',-1,-1,0,'faq.htm']);");
    //document.writeln("stm_aix('p1i11','p1i1',[]);");
    //document.writeln("stm_aix('p1i12','p1i0',[0,'Manuals','','',-1,-1,0,'manual.htm']);");
    //document.writeln("stm_aix('p1i13','p1i1',[]);");
    //document.writeln("stm_aix('p1i14','p1i0',[0,'Online Registration','','',-1,-1,0,'http://www.cnet.com']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    // Next Menu Item
	document.writeln("stm_aix('p0i3','p0i1',[0,'Product Overview','','',-1,-1,0,'']);");
    document.writeln("stm_bpx('p2','p1',[1,4,-10,4,0,3,7,7]);");
    document.writeln("stm_aix('p2i0','p0i1',[0,'Product Details Inside & Out','','',-1,-1,0,'lubequotepro.htm','_self','','','img/ddmenu1.gif','img/ddmenu1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#969696',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','bold 11px Verdana','bold 11px Verdana']);");
    document.writeln("stm_aix('p2i1','p1i1',[]);");
    document.writeln("stm_aix('p2i2','p1i0',[0,'General FAQ','','',-1,-1,0,'faq.htm']);");
	document.writeln("stm_aix('p2i1','p1i1',[]);");
    document.writeln("stm_aix('p2i3','p1i0',[0,'Sample Reports','','',-1,-1,0,'samplereports.htm',]);");
	document.writeln("stm_aix('p2i1','p1i1',[]);");
    document.writeln("stm_aix('p2i4','p1i0',[0,'Customer Data Surveys','','',-1,-1,0,'http://www.lubequoteprolite.com/tools.do','_blank']);");
	document.writeln("stm_bpx('p3','p1',[1,4,187,-20]);");
    // Next Menu Item
	//document.writeln("stm_aix('p3i0','p1i0',[0,'All Tryout Products','','',-1,-1,0,'alltryout.htm']);");
    //document.writeln("stm_aix('p3i1','p1i1',[]);");
    //document.writeln("stm_aix('p3i2','p1i0',[0,'Lube Quote Pro Trial','','',-1,-1,0,'lubequotepro.htm']);");
    //document.writeln("stm_aix('p3i3','p1i1',[]);");
    //document.writeln("stm_aix('p3i4','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p3i5','p1i1',[]);");
    //document.writeln("stm_aix('p3i6','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p3i7','p1i1',[]);");
    //document.writeln("stm_aix('p3i8','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p3i9','p1i1',[]);");
    //document.writeln("stm_aix('p3i10','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p2i1','p1i1',[]);");
    // Next Menu Item
	//document.writeln("stm_aix('p2i2','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p2i3','p1i1',[]);");
    //document.writeln("stm_aix('p2i4','p1i0',[0,'Manuals','','',-1,-1,0,'manual.htm']);");
    //document.writeln("stm_aix('p2i5','p1i1',[]);");
    //document.writeln("stm_aix('p2i6','p1i0',[0,'Sample Customer Records','','',-1,-1,0,'samplerecords.htm']);");
    //document.writeln("stm_aix('p2i7','p1i1',[]);");
    //document.writeln("stm_aix('p2i8','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p2i9','p1i1',[]);");
    //document.writeln("stm_aix('p2i10','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i4','p0i0',[]);");
    // Next Menu Item
	document.writeln("stm_aix('p0i5','p0i1',[0,'Begin Here!','','',-1,-1,0,'http://www.lubequoteprolite.com','_blank','','','img/cart2.gif','img/cart2.gif',15,12]);");
    document.writeln("stm_bpx('p4','p1',[]);");
    document.writeln("stm_aix('p4i0','p2i0',[0,'Begin Your Report Here','','',-1,-1,0,'http://www.lubequoteprolite.com','_blank','','','img/ddmenu1.gif','img/ddmenu1.gif',7,7,0,'','',0,0]);");
    document.writeln("stm_aix('p4i1','p1i1',[]);");
    //document.writeln("stm_aix('p4i2','p1i0',[0,'How To Buy Products','','',-1,-1,0,'howtobuy.htm']);");
    //document.writeln("stm_aix('p4i3','p1i1',[]);");
    //document.writeln("stm_aix('p4i4','p1i0',[0,'Phone/Fax/Check Ordering','','',-1,-1,0,'phonefaxcheck.htm']);");
    //document.writeln("stm_aix('p4i5','p1i1',[]);");
    document.writeln("stm_aix('p4i6','p1i0',[0,'License Information','','',-1,-1,0,'licenseinfo.htm']);");
    document.writeln("stm_aix('p4i7','p1i1',[]);");
    //document.writeln("stm_aix('p4i8','p1i0',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p4i9','p1i1',[]);");
    document.writeln("stm_aix('p4i10','p1i0',[0,'Order FAQ','','',-1,-1,0,'orderfaq.htm']);");
    document.writeln("stm_aix('p4i11','p1i1',[]);");
    //document.writeln("stm_aix('p4i12','p1i0',[0,'Log Support Ticket','','',-1,-1,0,'http://www.helpdesk.lubequotepro.com']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    // Next Menu Item
	document.writeln("stm_aix('p0i7','p0i1',[0,'Support','','',-1,-1,0,'']);");
    document.writeln("stm_bpx('p5','p1',[]);");
	document.writeln("stm_aix('p5i6','p1i0',[0,'Technical Support Forum','','',-1,-1,0,'http://www.lubequotepro.com/forum/index.php','_blank']);");
    document.writeln("stm_aix('p5i7','p1i1',[]);");
    document.writeln("stm_aix('p5i0','p1i0',[0,'Email Support  ','','',-1,-1,0,'formtechsupport.htm']);");
    document.writeln("stm_aix('p5i1','p1i1',[]);");
	document.writeln("stm_aix('p5i10','p1i0',[0,'Log Support Request','','',-1,-1,0,'http://www.helpdesk.lubequotepro.com','_blank']);");
    document.writeln("stm_aix('p5i11','p1i1',[]);");
    //document.writeln("stm_aix('p5i2','p1i0',[0,'Product FAQ','','',-1,-1,0,'faq.htm']);");
    //document.writeln("stm_aix('p5i3','p1i1',[]);");
    //document.writeln("stm_aix('p5i4','p1i0',[0,'Support FAQ','','',-1,-1,0,'supportfaq.htm']);");
    document.writeln("stm_aix('p5i5','p1i1',[]);");
    //document.writeln("stm_aix('p5i8','p1i0',[0,'Contact LQP Support  ','','',-1,-1,0,'supportcontact.htm']);");
    //document.writeln("stm_aix('p5i9','p1i1',[]);");    
    //document.writeln("stm_aix('p5i12','p1i0',[0,'Online Product Registration','','',-1,-1,0,'http://www.cnet.com']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i8','p0i0',[]);");
    //Next Menu Item
	document.writeln("stm_aix('p0i9','p0i1',[0,'Contact Us','','',-1,-1,0,'']);");
    document.writeln("stm_bpx('p6','p1',[]);");
    document.writeln("stm_aix('p6i0','p1i0',[0,'Listing of All Departments','','',-1,-1,0,'contactus.htm']);");
    document.writeln("stm_aix('p6i1','p1i1',[]);");
    document.writeln("stm_aix('p6i2','p1i0',[0,'Improvement Ideas','','',-1,-1,0,'formideasubmission.htm']);");
    document.writeln("stm_aix('p6i3','p1i1',[]);");
    document.writeln("stm_aix('p6i4','p5i0',[0,'Feedback','','',-1,-1,0,'/formfeedback.htm']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i10','p0i0',[]);");
    // Next Menu Item
	document.writeln("stm_aix('p0i11','p0i9',[0,'About Us','','',-1,-1,0,'']);");
    document.writeln("stm_bpx('p7','p1',[]);");
    document.writeln("stm_aix('p7i0','p1i0',[0,'About the Lube Quote Pro Team ','','',-1,-1,0,'about.htm']);");
    
    document.writeln("stm_aix('p7i3','p1i1',[]);");
    document.writeln("stm_aix('p7i4','p5i0',[0,'The Story of Lube Quote Pro','','',-1,-1,0,'/img/TheStoryofLubeQuotePro.pdf','_blank']);");
    //document.writeln("stm_aix('p7i5','p1i1',[]);");
    //document.writeln("stm_aix('p7i6','p5i4',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    //document.writeln("stm_aix('p7i7','p1i1',[]);");
    //document.writeln("stm_aix('p7i8','p5i4',[0,'New Product Listed Here','','',-1,-1,0,'/NewProduct.htm']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i12','p0i0',[]);");
    //Menu Ends Here
	document.writeln("stm_ep();");
    document.writeln("stm_em();");
    document.writeln("//-->");
    document.writeln("</script>");
    document.writeln("</center>");
    document.writeln("</div>");
    document.writeln("</td>");
    document.writeln("</tr>");
    document.writeln("</table>");

}

// Next Area
function DisplayNavShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='img/spaceblock1.gif'>");
    document.writeln("    <img SRC='img/spacer2.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

// Next Area
function DisplayStatus()
{
    document.open();
    document.writeln("<table CELLPADDING='0' CELLSPACING='0' WIDTH='100%' BORDER='0' >");
    document.writeln("  <tr>");
    document.writeln("    <td bgcolor='#FCFCFC'><font size='1'>");
    document.writeln("    <img border='0' src='img/spacer2.gif' width='1' height='1'></font></td>");
    document.writeln("  </tr>");
    document.writeln("  <tr>");
    document.writeln("    <td align='center' VALIGN='BOTTOM' bgcolor='#FFFFFF'>");
    document.writeln("      <p align='center' style='margin-top: 8pt; margin-bottom: 2pt; margin-left: 8pt'>        ");
    //document.writeln("  	  <a href='sitemap.htm' class='sHeadLink'>site map</a><span class='style2'> | </span>");
    //document.writeln("  	  <a href='termsofuse.htm' class='sHeadLink'>terms of use</a><span class='style2'> | </span>");
    //document.writeln("	      <a href='privacypolicy.htm' class='sHeadLink'>privacy policy</a><span class='style2'> | </span>");
    document.writeln("	      <a href='licenseinfo.htm' class='sHeadLink'>User License Agreement</a><span class='style2'> | </span>");
    //document.writeln("	      <a href='company.htm' class='sHeadLink'>company</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.lubequoteprolite.com' class='sHeadLink'><img border='0' src='img/cart2.gif'>&nbsp;BEGIN HERE!</a><span class='style2'></span>");
    document.writeln("        <table width='400' border='0' style='margin-bottom: 8pt'>");
    document.writeln("        <tr>");
    document.writeln("          <td width='32'><img src='img/IconSmall.gif' hspace='1' vspace='1' align='bottom'></td>");
    document.writeln("          <td width='400'><font size='1'>Copyright © 2008-2009 Lube Quote Pro. All rights reserved. <br>");
    document.writeln("            <b><a href='/formfeedback.htm' class='sHeadLink'>Send us feedback</a></b> about the site.");
    document.writeln("		  </td>");
    document.writeln("        </tr>");
    document.writeln("      </table>");
    document.writeln("	</td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

// Next Area
function DisplayStatusShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='img/spaceblock2.gif'>");
    document.writeln("    <img SRC='img/spacer2.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

// Next Area
function openPopup(url,x,y){
  if (!x){x=760;};
  if (!y){y=630;};
  window.open(url,null,'toolbar=yes,menubar=no,resizable=yes,scrollbars=yes,width='+x+',height='+y)
}

// Next Area
function openPopupFixed(url,x,y){
  if (!x){x=760;};
  if (!y){y=630;};
  window.open(url,null,'toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+x+',height='+y)
}