function writemm_DataDownloader(n)
{ var s="";

   s=""
   s='<div class="logoicon"></div>'+
     '<div id="logo"> <!-- Header --> <br /><font size="5"><b>Historical Data Downloader</b></font> <br>'+
     'By <a class="mystyle" href="http://www40.brinkster.com/apostolosm/personal/mainpage.asp" target="_blank" id ="lnkPresident">'+
     '<font size=2>Apostolos</font></a><div class="smallPopUp" id="picPresident"></div>'+
    /*'<!-- Main Menu --> <table border=0 cellspacing=0 cellpadding=0 width="100%"><tr><td><font size=4>'+
    '<img src="img/home.gif" width=24 height=24>'+
    '<a href="home.asp" class="mymenu"><b>Home</b></a> &nbsp; | &nbsp;' +
    '<img src="img/shopping.gif" width=24 height=24 alt="click on the product catalog" border=0>'+
    '<a class="mymenu" href="catalog.asp">Products</a> &nbsp; | &nbsp;'+
    '<!-- <img src="img/pencil.gif" width=24 height=24><font size=3> -->'+
    '<!-- <a class="mymenu" href="prd_newslater_sp500dailycl.asp">Market Letter</a> &nbsp; | &nbsp; </font> -->'+ 
    '<!-- <img src="img/small_gears.gif" width=16 height=16 alt="" border=0 align="">-->'+
    '<a class="mymenu" href="login1.asp">my Account</a> &nbsp; | &nbsp;'+
    '<a class="mymenu"  href="contact_email.asp">Contact</a></font>'+
    '</td></tr></table><hr size=3 noshade color="gray"></div>'*/
    '<!-- Main Menu --> <ul class="menuUL">'+
      '<li><span><img src="img/home.gif" width=24 height=24> <a href="home.asp">Home</a></span></li>'+
      '<li><img src="img/shopping.gif" width=24 height=24> <a href="catalog.asp">Products</a></li>'+
      '<li><a href="login1.asp?open=1">my Account</a></li>'+
      '<li><a href="contact_email.asp">Contact</a></li>'+
      '</ul><br clear="all"/> <!--<hr size=3 noshade color="red"></div>-->';
	  
	if (n==1) {
	  //alert("Writting Data Downloader Main Menu");
	  document.write(s);
	}
}


function writemainmenu()
{ var s="";

   s=""
   s='<div id="header"> <!-- Header --> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr valign="center" height="60"> <td align="center"><font size="5"><b>Probability Trading Research</b></font><br><font size=2>By Apostolos</font></td></tr> </table>'+
    '<!-- Main Menu --> <table border=0 cellspacing=0 cellpadding=0 width="100%"><tr><td><font size=3>'+
    '<img src="img/home.gif" width=24 height=24>'+
    '<a href="mainpage.asp" class="mymenu"><b>Home</b></a> &nbsp; | &nbsp;' +
    '<img src="img/openbook.gif" width=24 height=24 alt="click on the product catalog" border=0>'+
    '<a class="mymenu" href="af_catalog.asp">our Products</a> &nbsp; | &nbsp; </font>'+
    '<img src="img/pencil.gif" width=24 height=24><font size=3>'+
    '<a class="mymenu" href="prd_newslater_sp500dailycl.asp">Market Letter</a> &nbsp; | &nbsp; </font>'+ 
    '<!-- <img src="img/small_gears.gif" width=16 height=16 alt="" border=0 align="">--><font size=3>'+
    '<a class="mymenu" href="login1.asp">my Account</a></font>'+ 
    '</td></tr></table><hr size=3 noshade color="gray"></div>'

  document.write(s);
}

function writesp500dailycalmenu()
{ var s="";

  s='<table width="100%" border="1" bordercolor="black" nowrap>'+
    '<tr ><td bgcolor="#f0f080">'+
    '<img src="img/3floppy_mount2.png" width="16" height="16">'+
    '<a href="tbl_sp5dailycal_about.asp" class="mymenu"><b><font size="2">About</font></b></a> &nbsp; | &nbsp;'+    
    '<img src="img/save.gif" width="16" height="15">'+
    '<a href="tbl_sp5dailycal_installation.asp" class="mymenu"><b><font size="2">Installation</font></b></a> &nbsp; | &nbsp;'+  
    '<img src="img/gem_flashes.gif" width="16" height="16">'+
    '<a href="tbl_sp5dailycal_Expectactions.asp" class="mymenu"><b><font size="2">Expectations</font></b></a> &nbsp; | &nbsp;'+    
    '<img src="img/light_bulb_small.jpg" width="16" height="16">'+
    '<a href="tbl_sp5dailycal_philosophy.asp" class="mymenu"><b><font size="2">Our Approach</font></b></a> &nbsp; | &nbsp;'+ 
    '<img src="img/settings.gif" width="16" height="15">'+
    '<a href="tbl_sp5dailycal_ops.asp" class="mymenu"><b><font size="2">Operation</font></b></a> &nbsp; |  &nbsp;'+ 
    '<img src="img/pencil.gif" width="16" height="16">'+
    '<a href="tbl_sp5dailycal_tradingstrategies.asp" class="mymenu"><b><font size="2">Trading Strategies</font></b></a> &nbsp; | &nbsp;'+ 
    '<img src="img/small_gears.gif" width="16" height="16">'+
    '<a href="tbl_sp5dailycal_Analysis.asp" class="mymenu"><b><font size="2">Analysis</font></b></a> &nbsp; | &nbsp;'+ 
    '<img src="img/gift.gif" width="14" height="13">'+
    '<a name="ua" id="ua" href="tbl_sp5dailycal_order.asp" class="mymenu"><b><font size="2">Ordering</font></b></a>'+ 
    '</td></tr></table>';
  // onmouseoverx="this.click();"
  document.write(s);
}

  function validateuserlogin(f)
  { var un, s2
    un=f.uname.value
	s2=f.upass.value
    
	//alert (s1 + "," + s2)
	
	if (un.length<1) 
	{ alert ("type in your USERNAME, before you can log in");}
	
	if ((un.length>0)) {
	  return true
	}
    return false;
  }
  
