function writeHTMLasJS() {

   var fileref=document.createElement("link")
   fileref.setAttribute("rel", "stylesheet")
   fileref.setAttribute("type", "text/css")
   fileref.setAttribute("href", 'http://www.diahome.org/content/DIAstyle.css')

   document.getElementsByTagName("head")[0].appendChild(fileref)

    var strVar = "";
    strVar += "<td height=\"39\">";
    strVar += "<table id=\"headerLinks\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
    strVar += "  <tr>";
    strVar += "    <td width=\"100%\">";
    strVar += "      <table  cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
    strVar += "        <tr class=\"topLinks\">";
    strVar += "          <td width=\"104\" height=\"26\">";
    strVar += "          <\/td>";
    strVar += "          <td>";
    strVar += "          <a href=\"http:\/\/www.diahome.org\/DIAHome\/Home.aspx\" id=\"cntrlTopNav_A1\">";
    strVar += "            <img alt=\"DIA - Drug Information Association\" src=\"http:\/\/www.diahome.org\/Content\/Images\/dia_logo_for_WEBSITE.gif\" border=\"0\" \/><\/a>";
    strVar += "          <\/td>";
    strVar += "          <td width=\"100%\" align=\"right\" valign = \"bottom\">";
    strVar += "            ";
    strVar += "                <a id=\"cntrlTopNav_rptLinks_ctl01_lnkHeader\" class=\"topLinks\" href=\"http:\/\/www.diahome.org\/en\/AboutDIA\/Overview\/DIAOverview\">About Drug Information Association<\/a>&nbsp;|&nbsp;";
    strVar += "                <a id=\"cntrlTopNav_rptLinks_ctl03_lnkHeader\" class=\"topLinks\" href=\"http:\/\/www.diahome.org\/DIAHome\/Common\/Templates\/Login.aspx\">Sign In<\/a>&nbsp;|&nbsp;";
    strVar += "                <a id=\"cntrlTopNav_rptLinks_ctl05_lnkHeader\" class=\"topLinks\" href=\"http:\/\/www.diahome.org\/DIAHome\/MyDIA\/MyDIA.aspx\">My DIA<\/a>&nbsp;|&nbsp;";
    strVar += "                <a id=\"cntrlTopNav_rptLinks_ctl07_lnkHeader\" class=\"topLinks\" href=\"http:\/\/www.diahome.org\/DIAHome\/ShoppingCart\/ItemsDetails.aspx\">Cart[0]<\/a>&nbsp;|&nbsp;";
    strVar += "                <a id=\"cntrlTopNav_rptLinks_ctl09_lnkHeader\" class=\"topLinks\" href=\"http:\/\/www.diahome.org\/DIAHome\/AboutDIA\/KeyContacts.aspx\">Contact Us<\/a>&nbsp;|&nbsp;";
    strVar += "          <\/td>";
    strVar += "        <\/tr>";
    strVar += "      <\/table>";
    strVar += "    <\/td>";
    strVar += "    <td width=\"1004\"><\/td>";
    strVar += "  <\/tr>";
    strVar += "<\/table>";
    strVar += " ";
    strVar += "<table id=\"topMenuBar\" style=\"height:39px;\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
    strVar += "  <tr>";
    strVar += "    <td width=\"100%\" class=\"backgroundTopBarImage\"><\/td>";
    strVar += "    <td width=\"100%\" class=\"backgroundLight\">&nbsp;&nbsp;&nbsp;<\/td>";
    strVar += "    <td class=\"backgroundLight\">";
    strVar += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
    strVar += "  <tr>";
    strVar += "    <td class=\"topBarText\" style=\"font-size:9pt;\"><!--- Region:&nbsp;&nbsp; ---> <\/td>";
    strVar += "    <td>";
    strVar += "      <!--- select name=\"cntrlTopNav$cntrlRegion$ddlRegion\" onchange=\"javascript:setTimeout('__doPostBack(\'cntrlTopNav$cntrlRegion$ddlRegion\',\'\')', 0)\" id=\"cntrlTopNav_cntrlRegion_ddlRegion\" style=\"font-size:9pt;\">";
    strVar += "	<option selected=\"selected\" value=\"All\">Global<\/option>";
    strVar += "	<option value=\"NorthAmerica\">North America<\/option>";
    strVar += "	<option value=\"Europe\">Europe<\/option>";
    strVar += "	<option value=\"Japan\">Japan<\/option>";
    strVar += "	<option value=\"India\">India<\/option>";
    strVar += "	<option value=\"China\">China<\/option>";
    strVar += "<\/select --->";
    strVar += "    <\/td>";
    strVar += "  <\/tr>";
    strVar += "<\/table>";
    strVar += "    <\/td>";
    strVar += "    <td class=\"backgroundLight\">&nbsp;&nbsp;&nbsp;<\/td>";
    strVar += "    <td class=\"backgroundLight\">";
    strVar += "      <div id=\"cntrlTopNav_cntrlSearch_searchPanel\">";
    strVar += "        <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
    strVar += "	        <tr>";
    strVar += "		        <td>&nbsp;<\/td>";
    strVar += "		        <td align=\"center\" valign=\"bottom\">";
    strVar += "		            <a href=\"http:\/\/www.diahome.org\/DIAHome\/Search\/Search.aspx\"><img src=\"http:\/\/www.diahome.org\/content\/Images\/SearchBut.gif\" alt=\"Search DIA\" border=\"0\"\/><\/a>";
    strVar += "		        <\/td>";
    strVar += "		        <td>&nbsp;<\/td>";
    strVar += "		        <td>";
    strVar += "		            <input name=\"cntrlTopNav$cntrlSearch$st\" type=\"text\" value=\"Search entire site\" id=\"cntrlTopNav_cntrlSearch_st\" onkeydown=\"if(event.keyCode == 13){event.returnValue=false;event.cancel=true;__doSearch(this.id);}\" onfocus=\"this.select();\" onblur=\"if(__vempty(this.value)){this.value='Search entire site';}\" style=\"font-size:9pt;\" \/>";
    strVar += "			        ";
    strVar += "			    <\/td>";
    strVar += "		        <td>&nbsp;<\/td>";
    strVar += "		        <td align=\"center\" class=\"topBarText\">";
    strVar += "		            <a id=\"cntrlTopNav_cntrlSearch_lnkAdvancedSearch\" class=\"topBarText\" href=\"http:\/\/www.diahome.org\/DIAHome\/Search\/AdvSearch.aspx\">";
    strVar += "		                Advanced Search";
    strVar += "			        <\/a>";
    strVar += "			    <\/td>";
    strVar += "		        <td>&nbsp;<\/td>";
    strVar += "	        <\/tr>";
    strVar += "        <\/table>";
    strVar += "<\/div>";
    strVar += "    <\/td>";
    strVar += "  <\/tr>";
    strVar += "<\/table>";
    strVar += "<\/td>";
    document.write(strVar);
}


writeHTMLasJS();

