
//AddThis variables need to be set globally
var addthis_pub="jbartonastm";
var addthis_brand = "ASTM";
var addthis_disable_flash = true;

//Search Functions
function FixSearch() {
  var Standards="AaBbCcDdEeFfGgPSpsWKwk";
  var Numbers="0123456789";
  var SearchQuery=document.gs.q.value;
  var SpacesSearch=new Array();
  SpacesSearch=SearchQuery.split(" ");
  var SearchQuery2="";
  for(i=0;i<SpacesSearch.length;i++){
    if ((Standards.indexOf(SpacesSearch[i]) > -1) && (Numbers.indexOf(SpacesSearch[i+1].substring(0,1)) > -1)) {
      SearchQuery2 += SpacesSearch[i];
    } 
    else {
      SearchQuery2 += SpacesSearch[i] + " ";
    }
  }
  var DashesSearch=new Array();
  DashesSearch=SearchQuery2.split("-");
  var SearchQuery3="";
  for(j=0;j<DashesSearch.length;j++){
    if ((Standards.indexOf(DashesSearch[j].substring(DashesSearch[j].length-1)) > -1) && (Numbers.indexOf(DashesSearch[j+1].substring(0,1)) > -1) && (j==0||(DashesSearch[j].substring(DashesSearch[j].length-2,DashesSearch[j].length-1) == " "))) {
      SearchQuery3 += DashesSearch[j];
    }
    else {
      SearchQuery3 += DashesSearch[j] + "-";
    }
  }
  SearchQuery=SearchQuery3.substring(0,SearchQuery3.length-2);
  document.gs.q.value=SearchQuery;
}

function SearchFocus(){
        document.gs.q.focus();
}


//Draw the left navigation bar
//Takes one argument, which can be used to customize navigation for different pages
function DrawNavBar(special) {

	document.write("<a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/index.shtml\"><img border=\"0\" src=\"http://trans5.convertlanguage.com/img/astm/JA_75385.gif\"></a>");
	
	document.write("<ul id=\"leftnav\">" +
		"<li><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/Standard/index.shtml\" class=\"dkblue\"><span style=\"font-size:13px; color:#dc1015;\">\u6a19\u6e96\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002</span></a></li>");
	if(special == 'standards') {
		document.write("<li class=\"submenu\"><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/Standard/index.shtml\" class=\"white\">\u6a19\u6e96\u306e\u691c\u7d22</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/BOOKSTORE/BOS/index.html\" class=\"white\">\u6a19\u6e96\u5e74\u9451</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/DEMO/index.shtml\" class=\"white\">\u30aa\u30f3\u30e9\u30a4\u30f3\u8cfc\u8aad</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/DEMO/collections.htm\" class=\"white\">DVD \u30b3\u30ec\u30af\u30b7\u30e7\u30f3</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/BOOKSTORE/COMPS/compsbycategory.htm\" class=\"white\">\u7de8\u7e82</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/Standards/category_index.html\" class=\"white\">\u30ab\u30c6\u30b4\u30ea\u30fc\u5225</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/STORE/alert.html\" class=\"white\">\u6a19\u6e96\u3092\u691c\u7d22\u3059\u308b</a></li>" +
		"<li class=\"submenu\"><a href=\"/COPYRIGHT/\" class=\"white\">\u8457\u4f5c\u6a29/\u8a31\u53ef\u60c5\u5831</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astmproducts.com/custom_collection.html\" class=\"white\">\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30dd\u30fc\u30bf\u30eb</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/IMAGES03/corr_list.doc\" class=\"white\">\u8a02\u6b63</a></li>");
	}
	document.write("<li><a href=\"http://www.astm.org/DIGITAL_LIBRARY/index.shtml\" class=\"dkblue\">\u6a19\u6e96\u304a\u3088\u3073\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u306e\u30c7\u30b8\u30bf\u30eb\u56f3\u66f8\u9928</a></li>" +
		"<li><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/Standard/books_journals.shtml\" class=\"dkblue\">\u66f8\u7c4d\u3068\u5c02\u9580\u8a8c</a></li>" +
		"<li><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/COMMIT/newcommit.html\" class=\"ltblue\">\u30c6\u30af\u30cb\u30ab\u30eb\u59d4\u54e1\u4f1a</a></li>" +
		"<li><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/MEMBERSHIP/index.html\" class=\"ltblue\">\u4f1a\u54e1</a></li>" + 
		"<li><a href=\"http://www.astm.org/MEETINGS/index.html\" class=\"ltblue\">\u4f1a\u8b70</a></li>");
	if(special == 'meeting') {
		document.write("<li class=\"submenu\"><a href=\"http://www.astm.org/MEETINGS/directions.htm\" class=\"white\">ASTM \u6240\u5728\u5730\u306e\u3054\u6848\u5185</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/MEETINGS/hotels.htm\" class=\"white\">ASTM \u8fd1\u96a3\u306e\u30db\u30c6\u30eb</a></li>");	
	}
	document.write("<li><a href=\"http://www.astm.org/SYMPOSIA/index.html\" class=\"ltblue\">\u30b7\u30f3\u30dd\u30b8\u30a6\u30e0&\u30ef\u30fc\u30af\u30b7\u30e7\u30c3\u30d7</a></li>" +
		"<li><a href=\"http://www.astm.org/TRAIN/index.html\" class=\"ltblue\">\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30b3\u30fc\u30b9</a></li>");
	
	if(special == 'train') {
		document.write("<li class=\"submenu\"><a href=\"http://www.astm.org/TRAIN/courses.html\" class=\"white\">\u30b3\u30fc\u30b9\u30fb\u30ea\u30b9\u30c8</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/TRAIN/onsite.html\" class=\"white\">\u30aa\u30f3\u30b5\u30a4\u30c8\u30fb\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0</a></li>" +
		"<li class=\"submenu\"><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/TRAIN/international.html\" class=\"white\">\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u30fb\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/TRAIN/pecontinuing.html\" class=\"white\">PE\u751f\u6daf\u6559\u80b2</a></li>");
	}
	
		document.write("<li><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/STATQA/index.html\" class=\"ltblue\">\u582a\u80fd\u30c6\u30b9\u30c8</a></li>" +
		"<li><a href=\"http://www.astm.org/STATQA/index_cert.html\" class=\"ltblue\">Certification Programs</a></li>" +
		"<li><a href=\"http://www.astm.org/EQUIPMENT/index.html\" class=\"orange\">\u88c5\u7f6e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea</a></li>" +
		"<li><a href=\"http://www.astm.org/LABS/index.html\" class=\"orange\">\u7814\u7a76\u5ba4\u30c7\u30a3\u30ec\u30af\u30c8\u30ea</a></li>" +
		"<li><a href=\"http://www.astm.org/CONSULTANTS/index.html\" class=\"orange\">\u30b3\u30f3\u30b5\u30eb\u30bf\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea</a></li>" +
		"<li><a href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/ABOUT/aboutASTM.html\" class=\"yellow\">ASTM \u306b\u3064\u3044\u3066</a></li>");
	
	if(special == 'about') {
		document.write("<li class=\"submenu\"><a href=\"http://www.astm.org/ABOUT/index.html\" class=\"white\">\u4e00\u89a7</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/NEWS/Mission2.html\" class=\"white\">\u30df\u30c3\u30b7\u30e7\u30f3\u30fb\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8</a></li>" +
		"<li class=\"submenu\"><a href=\"/FAQ/\" class=\"white\">\u3088\u304f\u3042\u308b\u8cea\u554f</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/ABOUT/images/annrep08_web.pdf\" class=\"white\">\u5e74\u6b21\u5831\u544a</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/PRESIDENT/lead_index.html\" class=\"white\">\u793e\u9577\u30b3\u30e9\u30e0</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/HISTORY/index.html\" class=\"white\">\u4f1a\u793e\u6b74\u53f2</a></li>" +
		"<li class=\"submenu\"><a href=\"http://www.astm.org/HISTORY/milestones.html\" class=\"white\">\u6cbf\u9769</a></li>");
	}
	
	
	document.write("<li><a href=\"http://www.astm.org/MAGS_NEWSLETTERS/index.html\" class=\"yellow\">\u96d1\u8a8c\u3068\u30cb\u30e5\u30fc\u30b9\u30ec\u30bf\u30fc</a></li>" +
		"<li><a rel=\"nofollow\" href=\"http://astmnewsroom.org/newsrelease.aspx\" class=\"yellow\">\u30cb\u30e5\u30fc\u30b9\u30ea\u30ea\u30fc\u30b9</a></li>" +
		"<li><a href=\"http://www.astm.org/studentmember/index.html\" class=\"yellow\">\u5b66\u751f & \u6559\u6388</a></li>" +
		"<li><a href=\"http://www.astm.org/GLOBAL/index.html\" class=\"yellow\">\u30b0\u30ed\u30fc\u30d0\u30eb\u306a\u5354\u529b</a></li>" +
		"</ul>");

	document.write("<div id=\"prod_info\">" +
		"<div id=\"prod_info_hdr\">\u88fd\u54c1\u60c5\u5831</div>" +
		"<a class=\"bluelinkline_smaller\" href=\"http://www.astm.org/marketing_mail/index.html\">\u88fd\u54c1\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5165\u624b</a>" +
		"<a class=\"bluelinkline_smaller\" href=\"http://www.astm.org/CATALOG_REQUEST/index.html\">\u7121\u6599\u306e\u30ab\u30bf\u30ed\u30b0\u8acb\u6c42</a>" +
		"<a class=\"bluelinkline_smaller\" href=\"http://www.astm.org/catalog.html\">\u30ab\u30bf\u30ed\u30b0\u306e\u8868\u793a</a>" +
		"</div>");

	if(special == 'publish') {
		document.write("<div id=\"publish\"><b class=\"boldblack\"><a href=\"http://www.astm.org/PUBLISH/index.html\">ASTM\u304b\u3089\u306e\u51fa\u7248\u7269</a></b></div>");
	}

	if(special == 'digiLib') {
		document.write("<div id=\"dlPublish\">" +
			"<div id=\"dlPublish_hdr\">ASTM\u304b\u3089\u306e\u51fa\u7248\u7269</div>" +
			"<a class=\"bluelinkline_smaller\" href=\"http://www.astm.org/author/index.html\">\u66f8\u7c4d\u30ac\u30a4\u30c9</a>" +
			"<a class=\"bluelinkline_smaller\" href=\"http://www.astm.org/DIGITAL_LIBRARY/JOURNALS/jrnls.htm\">\u5c02\u9580\u8a8c</a>" +
			"</div>");
	}
	if(special == 'snews') {
		document.write("<img src=\"http://www.astm.org/IMAGES03/SN_3lang.gif\" height=\"110\" width=\"140\" border=0 USEMAP=#TRILANG><MAP NAME=TRILANG><AREA SHAPE=rect HREF=http://www.astm.org/SNEWS/index.html COORDS=\"9,39 123,57\"><AREA SHAPE=rect HREF=http://www.astm.org/SNEWS/SPANISH/index.html COORDS=\"3,59 140,91\"><AREA SHAPE=rect HREF=http://www.astm.org/SNEWS/CHINESE/index.html COORDS=\"0,92 147,116\"></MAP>");

		//document.write ("<form name=\"gs\" method=\"GET\" action=\"http://search2.micronexx.com/search\" OnSubmit=\"return FixSearch();GetStoreName();\">" +
		document.write ("<form name=\"gs\" method=\"GET\" action=\"http://www.astm.org/SITESEARCH/search2.cgi\" OnSubmit=\"return FixSearch();GetStoreName();\">" +
		"<input type=\"hidden\" name=\"ie\" value=\"\">" +
		"<input type=\"hidden\" name=\"site\" value=\"SNEWS\">" +
		"<input type=\"hidden\" name=\"output\" value=\"xml_no_dtd\">" +
		"<input type=\"hidden\" name=\"lr\" value=\"\">" +
		"<input type=\"hidden\" name=\"proxystylesheet\" value=\"SNEWS\">" +
		"<input type=\"hidden\" name=\"oe\" value=\"\">" +
		"<input type=\"hidden\" name=\"cartname\" value=\"mystore\">" +
		"<input type=\"hidden\" name=\"client\" value=\"STANDARDS\">" +
		"<table width=\"140\">" +
		"<tr><td><span style=\"font-size: 0.8em\">Standardization News \u306e\u691c\u7d22</span></td></tr>" +
		"<tr>" +
		"<td width=\"140\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">" +
		"<td width=\"140\"> <input type=\"test\" name=\"q\" maxlength=\"100\" size=\"12\" > " +
		"</td>" +
		"<td> <div align=\"right\"><input type=\"image\" value=\"Submit\" src=\"http://trans5.convertlanguage.com/img/astm/JA_23617.gif\" border=\"0\" width=\"26\" height=\"16\" alt=\"\u5b9f\u884c\" title=\"\u5b9f\u884c\"></div></td></tr>" +
		"</form>" +
		"</table><br />" +
		"</table>");

	}
	document.write("<a href=\"http://www.astm.org/RSS/index.html\"><img src=\"http://www.astm.org/IMAGES03/rss.jpg\" border=\"0\"></a>" +
		"<br /><img src=\"http://www.astm.org/IMAGES03/verisign.jpg\">");
}


//Draw header
//Also takes one argument for customization
function DrawHeader(special) {

	document.write("<table cellpadding=0 cellspacing=0 border=0 width=582 id=\"headNav\"><tr>");
	

	//if(special == 'logout' || GetCookie('MyApache2::AuthCookieHandler_MyASTM') != null document.write("<td id=\"login\" align=\"center\"><a id=\"login_link\" href=\"http://myastm.astm.org/CUSTOMERS/logout.cgi\">Logout</A></td>");

	if(special == 'logout') document.write("<td id=\"login\" align=\"center\"><a id=\"login_link\" href=\"http://myastm.astm.org/CUSTOMERS/logout.cgi\">\u30ed\u30b0\u30a2\u30a6\u30c8</A></td>");
	else document.write("<td id=\"login\" align=\"center\"><a id=\"login_link\" href=\"http://myastm.astm.org/CUSTOMERS/checkpassword_landing_page.cgi\">\u30ed\u30b0\u30a4\u30f3</a></td>");


	document.write("<td class=\"headerNav\" align=\"right\"><a class=\"hvLink\" href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/\">\u30db\u30fc\u30e0</a>" +
		"<a class=\"hvLink\" href=\"http://www.astm.org/SITEMAP/index.html\">\u30b5\u30a4\u30c8\u30de\u30c3\u30d7</a>" +
		"<a class=\"hvLink\" href=\"http://www.astm.org/SUPPORT/index.html\">\u30aa\u30f3\u30e9\u30a4\u30f3\u30b5\u30dd\u30fc\u30c8</a>" +
		"<a class=\"hvLink\" href=\"http://www.astm.org/CONTACT/index.html\">\u304a\u554f\u3044\u5408\u305b</a>" +
		"<a class=\"hvLink\" href=\"http://www.astm.org/prpolicy.html\">\u30a6\u30a7\u30d6/IP \u30dd\u30ea\u30b7\u30fc</a>" +
		"<a class=\"hvLink\" href=\"/COPYRIGHT/\">\u8457\u4f5c\u6a29/\u8a31\u53ef\u60c5\u5831</a>" +
		"</tr></table>");

	document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"582\"><tr><td id=\"search\">" +
		"<table border=0 cellspacing=5><tr>" +
		//"<td><form name=\"gs\" method=\"GET\" action=\"http://search.micronexx.com/search\" OnSubmit=\"return FixSearch();\">" +
		"<td><form name=\"gs\" method=\"GET\" action=\"http://www.astm.org/SITESEARCH/search.cgi\" OnSubmit=\"return FixSearch();\">" +
		"<input type=\"hidden\" name=\"ie\" value=\"UTF-8\">" +
		"<input type=\"hidden\" name=\"site\" value=\"STANDARDS\">" +
		"<input type=\"hidden\" name=\"output\" value=\"xml_no_dtd\">" +
		"<input type=\"hidden\" name=\"lr\" value=\"\">" +
		"<input type=\"hidden\" name=\"proxystylesheet\" value=\"STANDARDS\">" +
		"<input type=\"hidden\" name=\"oe\" value=\"UTF-8\">" +
		"<input type=\"hidden\" name=\"cartname\" value=\"mystore\">" +
		"<input type=\"hidden\" name=\"client\" value=\"STANDARDS\">" +
		"<input type=\"test\" name=\"q\" maxlength=\"100\" size=\"12\" ></td>" +
		"<td><input type=\"submit\" value=\"\u691c\u7d22\">" +
		"</form></td>");

	document.write("<td align=\"right\" id=\"addThisCell\" width=\"100%\"><a href=\"http://www.addthis.com/bookmark.php?v=250\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://trans5.convertlanguage.com/img/astm/JA_109237.gif\" width=\"83\" height=\"16\" alt=\"\u30d6\u30c3\u30af\u30de\u30fc\u30af & \u5171\u6709\" style=\"border:0\"/></a></td>");


	document.write("</tr></table></td><td id=\"cart\">" +
		"<a href=\"http://www.astm.org/STORE/showcart.html\"><img src=\"http://trans5.convertlanguage.com/img/astm/JA_23618.gif\" border=\"0\" alt=\"\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u3078\" title=\"\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u3078\"></a>" +
		"</td></tr></table>");
}





//Draw digital library head/tabs
function DrawDigiLib_Old(special) {
	document.write("<div><img src=\"http://trans5.convertlanguage.com/img/astm/JA_113524.jpg\" /></div>");
	document.write("<div id=\"dl_tabs\" class=\"dl_hl_" + special +"\">");

	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_home\"><a id=\"dl_tab_home\" href=\"http://www.astm.org/DIGITAL_LIBRARY/index.shtml\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_journals\"><a id=\"dl_tab_journals\" href=\"http://www.astm.org/DIGITAL_LIBRARY/JOURNALS/index.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_stps\"><a id=\"dl_tab_stps\" href=\"http://www.astm.org/DIGITAL_LIBRARY/STP/stp_toclist.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_mnls\"><a id=\"dl_tab_mnls\" href=\"http://www.astm.org/DIGITAL_LIBRARY/MNL/mnl_toclist.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_topics\"><a id=\"dl_tab_topics\" href=\"http://www.astm.org/DIGITAL_LIBRARY/TOPICS/topics_toclist.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_subs\"><a id=\"dl_tab_subs\" href=\"http://www.astm.org/DIGITAL_LIBRARY/SUBSCRIPTIONS/index.html\"></a></div>");


	document.write("<div id=\"end_shadow\"></div><div style=\"clear:both;\"></div></div>");

}


function DrawDigiLib(special) {
	document.write("<div><img src=\"http://www.astm.org/IMAGES03/dl_tech_banner.jpg\" /></div>");
	document.write("<div id=\"dl_tabs\" class=\"dl_hl_" + special +"\">");

	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_home\"><a id=\"dl_tab_home\" href=\"http://www.astm.org/DIGITAL_LIBRARY/index.shtml\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_mystan\"><a id=\"dl_tab_mystan\" href=\"http://trans5.convertlanguage.com/astm/enja/24/_www_astm_org/Standard/index.shtml?complete\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_journals\"><a id=\"dl_tab_journals\" href=\"http://www.astm.org/DIGITAL_LIBRARY/JOURNALS/index.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_stps\"><a id=\"dl_tab_stps\" href=\"http://www.astm.org/DIGITAL_LIBRARY/STP/stp_toclist.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_mnls\"><a id=\"dl_tab_mnls\" href=\"http://www.astm.org/DIGITAL_LIBRARY/MNL/mnl_toclist.htm\"></a></div>");
	document.write("<div class=\"dl_wrap\" id=\"dl_wrap_subs\"><a id=\"dl_tab_subs\" href=\"http://www.astm.org/DIGITAL_LIBRARY/SUBSCRIPTIONS/index.html\"></a></div>");


	document.write("<div id=\"end_shadow\"></div><div style=\"clear:both;\"></div></div>");

}

