<?php $dt='may11'; ?>
<html>

<head>

<title>Publications</title>
<link href="../../../../homejscs/bbmenu.css" type="text/css" rel="stylesheet"/>
<link rel="StyleSheet" href="../../../../js/common.css" type="text/css">

<script type="text/javascript">
<!--
	var primaryMenu = "tabpublications";
    var secondaryMenu = "Monthly";
// -->
</script>
<script type="text/javascript" src="../../../../homejscs/bbmenu.js"></script>
<script type="text/javascript">

function LoadData(loadmode)
 {
	var baseurl="";
	

	baseurl="econtrds_dtl.php?i="+loadmode;	
	var xmlDoc = doXMLHTTPGet(baseurl);
}
function showpdf(Myurl,name,mode) 
	{
		
	 var arr;
	 if(mode==2)
	 	var path=document.getElementById("path").value+'?i=2';
	 else
	 	var path=document.getElementById("path").value;
	
	document.getElementById("subactivemenu").value="../../../../../pub/index.php#Publications^~../../../../../pub/publictn.php?cat_id=3&pub_id=10#Monthly^~../../../../../pub/"+path+"#Economic Trends(May, 2011)^~../../../../../pub/"+path+"#"+name;
		document.getElementById("pdfurl").value="../../../../../pub/"+Myurl;
		document.getElementById("frmpub").action="../../../../../openpdf.php";
		
		document.getElementById("frmpub").submit();
	}
	function callclass(classname,callerid){
	//alert(document.getElementById(callerid).className);
	document.getElementById(callerid).className=classname;
}
	
function doXMLHTTPGet(baseurl)
	{
		var returnData = "";
		if (window.XMLHttpRequest)
		{
			//We are in a non-IE browser
			httpObj=new XMLHttpRequest()
		}
		else if (window.ActiveXObject)
		{
			//We are in IE
			httpObj=new ActiveXObject("Microsoft.XMLHTTP")
		}
	
		//Return the XML document when it has finished loading
		httpObj.onreadystatechange= function()
			{
				if (httpObj.readyState==4)//if 1
				{
					if (httpObj.status==200)//if 2
					{					
						returnData=httpObj.responseText;
						//alert(returnData);
						if(returnData.length>0)
						{
							document.getElementById("maincontent").innerHTML=returnData;
							
							
						}//"<img src='homeimages/icoOnlineServ.gif' border='0'>";
						else
							document.getElementById("maincontent").innerHTML="No information available.";
						//displayData(httpObj.responseText);						
					}//end of if 2
					else	//else of if 2
					{
						alert("Problem retrieving data:" + httpObj.statusText)
					}		//end of else of if 2
				}			//end of if 1
			}
	
		//Request the XML document	
		httpObj.open("GET",baseurl,true)
		httpObj.send(null);
	}
	
    </script>
    
</head>

<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"  onLoad="mainOnLoad();">
<form name="frmpub" id="frmpub" method="post">
 <table width="100%" border="0" cellpadding="0" cellspacing="0">      
 
        <tr><!--Banner-->
            <td valign="top"><?php include("../../../../bbbanner.inc");?></td>
        </tr>
        <tr><!--menu-->
            <td valign="top"><?php include("../../../../bbmenu.inc");?>
            </td>
        </tr>
         <tr>
    	<td valign="top" width="100%" >
			
            <table width="100%" border="0">
                    <tr>
                        <td valign="middle">
                      <img src="../../../../homeimages/icopagenavigation.gif"> <a href="../../../../index.php" class="breadcrumbs">Home</a>
                        <img src="../../../../homeimages/icopagenavigation.gif"><a href="../../../index.php"  class="breadcrumbs">Publications</a>
						<img src="../../../../homeimages/icopagenavigation.gif"><a href="../../../publictn.php?cat_id=3&pub_id=10" class="breadcrumbs">Monthly</a>
						<img src="../../../../homeimages/icopagenavigation.gif"><a href="econtrds.php?dt=<?php echo $dt;?>" class="breadcrumbslink">Economic Trends</a></td>
                    </tr>
                   
					
                    <tr>
                       <td background="../../../../homeimages/dotedborder.jpg" height="2" width="100%"></td> 
                    </tr>
                </table>
      	</td>
  		</tr>

	 	
	 	 
	  
  <tr>
	     <td>
		<table width="100%" border="0">
                      <tr>
                        <td valign="top" align="center" id="maincontent" >
		
					</td>
                        <td width="1%"></td>
                        <td valign="top" style="width:261px;">
                        	<table border="0" width="100%" cellspacing="0" cellpadding="0">
                                    <tr>
                                    <td id="rightmenuflat">
                                        <h1>Related links</h1>
                                        <div class="rpanel" id="subcontent">
                                            <table style="padding-left:8px;padding-right:8px;width:100%">
                                               <tr>
                                                    <td style="padding:0px 4px 0px 4px;"><img src="../../../../homeimages/rpanel-arrow.gif"><a onclick=LoadData(2); class="itemLink"  href="#">Contents</a>
                                                      </td>
                                                 </tr>
                                                 <tr>
                                                    <td style="padding:0px 4px 0px 4px;"><img src="../../../../homeimages/rpanel-arrow.gif"><a id='1' class=itemlink  href="#" onClick="showpdf('<?php echo "monthly/econtrds/".$dt."/statisticaltable.pdf"; ?>','Statistical Tables');">Statistical Tables</a>
                                                 </td>
                                                 </tr>
                                                
                                                <tr>
                                               	 <td style="padding:0px 4px 4px 4px;color:#404041;">
                                                 <img src="../../../../homeimages/rpanel-arrow.gif"><a id='1' class=itemlink href="#" onClick="showpdf('<?php echo "monthly/econtrds/".$dt."/units.pdf"; ?>','Weights and Measures');"><!--a onclick=LoadData(3); class="itemLink"-->Weights and Measures</a></td>
                                            </tr>
                                           <tr>
                                               	 <td style="border-top:1px solid #D8D6C5;padding:0px 4px 0px 4px;color:#404041;"><img src="../../../../homeimages/rpanel-arrow.gif"><a href="../../../purchasingpro.php"; class="itemLink" style="cursor:hand">Price list</a></td>
                                           		 </tr>
                                             <tr>
                                                <td style="padding:0px 4px 0px 4px;"><img src="../../../../homeimages/rpanel-arrow.gif"><a href="javascript:window.print()" title="Print this page" class="homePageLink">Print this page</a></td>
                                            </tr>
                                             
                                           </table>
                                        </div>
                                           <br style="height:8px;">
                                     </td>
                                    </tr>
                            </table>
                        </td>
                      </tr>
                  </table>
		</td>			
	</tr>
</table>
   

<input type="hidden" name="activemenu" id="activemenu" value="tabpublications">
<input type="hidden" name="activemenu1" id="activemenu1" value="Monthly">
<input type="hidden" name="subactivemenu" id="subactivemenu" value="">
<input type="hidden" name="pdfurl" id="pdfurl" value="">


<input type="hidden" name="path" id="path" value="<?php echo "monthly/econtrds/".$dt."/econtrds.php"; ?>">


</form>
</body>

</html>
<script type="text/javascript">
<?php
if(isset($_REQUEST['i']))
	$i=$_REQUEST['i'];
else
	$i=1;
	
 if($i==2)
{
	?>
LoadData(2) 
<?php }
else {?>
LoadData(1) 
<?php } ?>
</script>