// Common JavaScript functions

/////////////////////////////////////////////////////////////////////
function DisplayHeader()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0' height='52' bgcolor='#FFFFFF' background='http://www.axdn.com/img/g1.gif'>");
    document.writeln("  <tr>");
    document.writeln("    <td width='160' height='66' valign='top' align='center' nowrap bgcolor='#FFFFFF'>");
    document.writeln("    <p style='text-indent: 0; margin: 0'>");
    document.writeln("    <a href='http://www.axdn.com/'><img border='0' src='http://www.axdn.com/img/l1.gif' vspace='3' width='226' height='60'></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("          <form id='form1' name='form1' method='GET' action='http://www.axdn.com/cgi-bin/search'>");
    document.writeln("            <tr>");
    document.writeln("              <td align='center' width='10'>&nbsp;</td>");
    document.writeln("              <td><font color='#44577B'>");
    document.writeln("              <img border='0' src='http://www.axdn.com/img/sp.gif' width='3' height='3'></font><a class='sHeadLink' href='http://www.axialis.com/'>Axialis ");
    document.writeln("              Website</a><font color='#44577B'><img border='0' src='http://www.axdn.com/img/sp.gif' width='3' height='3'></font></td>");
    document.writeln("              <td width='10' align='center'>");
    document.writeln("              <img height='13' hspace='2' src='http://www.axdn.com/img/d1.gif' width='1' border='0'></td>");
    document.writeln("              <td>Search:<font color='#44577B'><img border='0' src='http://www.axdn.com/img/sp.gif' width='5' height='5'></font>");
    document.writeln("              </td>");
    document.writeln("              <td><font SIZE='1'>");
    document.writeln("              <input size='15' maxLength='80' name='search' style='font-family: Verdana; font-size: 8pt'></font>");
    document.writeln("              <input TYPE='image' src='http://www.axdn.com/img/b1.gif' alt='Search The Site!' width='17' height='17' Name='I1' BORDER='0' align='absbottom' vspace='2'><br>");
    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='http://www.axdn.com/img/sp.gif' width='10' height='10'><br>&nbsp;</font></td>");
    document.writeln("      </tr>");
    document.writeln("    </table>");
    document.writeln("    </td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function DisplayNavBar()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("<tr>");
    document.writeln("<td background='http://www.axdn.com/img/bk1.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,'','http://www.axdn.com/img/sp.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','http://www.axdn.com/img/bk1.gif',3,0,0,'#000000']);");
    document.writeln("stm_ai('p0i0',[6,16,'transparent','http://www.axdn.com/img/d2.gif',2,15,0]);");
    document.writeln("stm_ai('p0i1',[0,'Products','','',-1,-1,0,'http://www.axdn.com/products','_self','','','','',0,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',0,3,0,0,'#ffffff','#ffffff','#333333','#cc0000','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,'Axialis Professional Screensaver Producer   ','','',-1,-1,0,'http://www.axdn.com/ssp','_self','','','http://www.axdn.com/img/a1.gif','http://www.axdn.com/img/a1.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,'Axialis IconWorkshop','','',-1,-1,0,'http://www.axdn.com/iconworkshop']);");
    document.writeln("stm_aix('p1i3','p1i1',[]);");
    document.writeln("stm_aix('p1i4','p1i0',[0,'Axialis AX-Cursors','','',-1,-1,0,'http://www.axdn.com/axcursors']);");
    document.writeln("stm_aix('p1i5','p1i1',[]);");
    document.writeln("stm_aix('p1i6','p1i0',[0,'Axialis MediaBrowser','','',-1,-1,0,'http://www.axdn.com/mediabrowser']);");
    document.writeln("stm_aix('p1i7','p1i1',[]);");
    document.writeln("stm_aix('p1i8','p1i0',[0,'Axialis AX-CDPlayer','','',-1,-1,0,'http://www.axdn.com/axcdplayer']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    document.writeln("stm_aix('p0i3','p0i1',[0,'Tryout Distribution Agreement','','',-1,-1,0,'http://www.axdn.com/agreement']);");
    document.writeln("stm_bpx('p2','p1',[]);");
    document.writeln("stm_aix('p2i0','p1i0',[0,'Read Tryout Distribution Agreement   ','','',-1,-1,0,'http://www.axdn.com/agreement']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i4','p0i0',[]);");
    document.writeln("stm_aix('p0i5','p0i1',[0,'Company','','',-1,-1,0,'http://www.axdn.com/axialis']);");
    document.writeln("stm_bpx('p3','p1',[]);");
    document.writeln("stm_aix('p3i0','p1i0',[0,'About Axialis Software Company   ','','',-1,-1,0,'http://www.axdn.com/axialis']);");
    document.writeln("stm_aix('p3i1','p1i1',[]);");
    document.writeln("stm_aix('p3i2','p1i0',[0,'Axialis Lifetime License','','',-1,-1,0,'http://www.axdn.com/life-license']);");
    document.writeln("stm_aix('p3i3','p1i1',[]);");
    document.writeln("stm_aix('p3i4','p1i0',[0,'Contact Us','','',-1,-1,0,'http://www.axialis.com/contact']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    document.writeln("stm_aix('p0i7','p0i1',[0,'Axialis Website','','',-1,-1,0,'http://www.axialis.com']);");
    document.writeln("stm_bpx('p4','p1',[]);");
    document.writeln("stm_aix('p4i0','p1i0',[0,'Home Page','','',-1,-1,0,'http://www.axialis.com']);");
    document.writeln("stm_aix('p4i1','p1i1',[]);");
    document.writeln("stm_aix('p4i2','p1i0',[0,'Products','','',-1,-1,0,'http://www.axialis.com/products']);");
    document.writeln("stm_aix('p4i3','p1i1',[]);");
    document.writeln("stm_aix('p4i4','p1i0',[0,'Axialis Shop   ','','',-1,-1,0,'http://www.axialis.com/purchase']);");
    document.writeln("stm_aix('p4i5','p1i1',[]);");
    document.writeln("stm_aix('p4i6','p1i0',[0,'Support','','',-1,-1,0,'http://www.axialis.com/support']);");
    document.writeln("stm_aix('p4i7','p1i1',[]);");
    document.writeln("stm_aix('p4i8','p1i0',[0,'Tutorial','','',-1,-1,0,'http://www.axialis.com/tutorial']);");
    document.writeln("stm_aix('p4i9','p1i1',[]);");
    document.writeln("stm_aix('p4i10','p1i0',[0,'Company','','',-1,-1,0,'http://www.axialis.com/axialis']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i8','p0i0',[]);");
    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>");

}

/////////////////////////////////////////////////////////////////////
function DisplayNavShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='http://www.axdn.com/img/s1.gif'>");
    document.writeln("    <img SRC='http://www.axdn.com/img/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
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='http://www.axdn.com/img/sp.gif' width='1' height='1'></font></td>");
    document.writeln("  </tr>");
    document.writeln("  <tr>");
    document.writeln("    <td align='center' VALIGN='BOTTOM' bgcolor='#E0E0E0'>");
    document.writeln("      <p align='center' style='margin-top: 8pt; margin-bottom: 2pt; margin-left: 8pt'>        ");
    document.writeln("  	  <a href='http://www.axdn.com/axialis/terms-of-use.html' class='sHeadLink'>terms of use</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.axdn.com/axialis/privacy-policy.html' class='sHeadLink'>privacy policy</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.axdn.com/axialis/' class='sHeadLink'>company information</a><span class='style2'> | </span>");
    document.writeln("	      <a href='http://www.axdn.com/contact' class='sHeadLink'>contact us</a> </p>");
    document.writeln("        <table width='350' border='0' style='margin-bottom: 8pt'>");
    document.writeln("        <tr>");
    document.writeln("          <td width='32'><img src='http://www.axdn.com/img/l2.gif' hspace='1' vspace='1' align='bottom'></td>");
    document.writeln("          <td width='318'><font size='1'>Copyright © 2005 Axialis Software. All rights reserved. <br>");
    document.writeln("            <b><a href='http://www.axialis.com/contact/website-form.html' class='sHeadLink'>Send us feedback</a></b> about the site.");
    document.writeln("            <a href='http://www.axialis.com/iconworkshop/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/icons.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index2.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index3.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index4.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index5.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index6.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index7.html' class='sHeadLink'>&nbsp</a>");
    document.writeln("            <a href='http://www.axialis.com/resources/index8.html' class='sHeadLink'>&nbsp</a></font>");
    document.writeln("		  </td>");
    document.writeln("        </tr>");
    document.writeln("      </table>");
    document.writeln("	</td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function DisplayStatusShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='http://www.axdn.com/img/s2.gif'>");
    document.writeln("    <img SRC='http://www.axdn.com/img/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
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)
}

/////////////////////////////////////////////////////////////////////
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)
}
