function fn_getimpexp(str_type,str_year,str_month,str_location){
	//alert(str_type+' - '+str_year+' - '+str_month+' - '+str_location);
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url;
	if(!(str_month=='' || str_month=='undefined')){
		str_month=str_month*1;
	}
	
	url ="box/box_impexp.php";
	//url ="example.php";
	
	url=url+"?str_type="+str_type+"&str_year="+str_year+"&str_month="+str_month+"&str_location="+str_location;
	xmlHttp.onreadystatechange=stateChanged_dv_impexp;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}

function fn_getgoods(str_type,str_year,str_month){
	//alert(str_type+' - '+str_year+' - '+str_month+' - '+str_location);
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url;
	url ="box/box_goods.php";
	if(!(str_month=='' || str_month=='undefined')){
		str_month=str_month*1;
	}

	
	url=url+"?str_type="+str_type+"&str_year="+str_year+"&str_month="+str_month;
	xmlHttp.onreadystatechange=stateChanged_dv_impexp;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}

function fn_getimpexp_view(str_type,str_year,str_month,str_location){
	//alert(str_type+' - '+str_year+' - '+str_month+' - '+str_location);
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url;
	url ="box/box_impexp_view.php";
	if(!(str_month=='' || str_month=='undefined')){
		str_month=str_month*1;
	}

	
	url=url+"?str_type="+str_type+"&str_year="+str_year+"&str_month="+str_month+"&str_location="+str_location;
	xmlHttp.onreadystatechange=stateChanged_dv_impexp;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}

function fn_get_bill(str_type,str_year,str_month){
	//alert(str_type+' - '+str_year+' - '+str_month);
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url;
	url ="box/box_bill_view.php";
	if(!(str_month=='' || str_month=='undefined')){
		str_month=str_month*1;
	}

	
	url=url+"?str_type="+str_type+"&str_year="+str_year+"&str_month="+str_month;
	xmlHttp.onreadystatechange=stateChanged_dv_impexp;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}


function fn_get_oil(str_year,str_month){
	//alert(str_type+' - '+str_year+' - '+str_month);
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	var url;
	url ="box/box_oil_view.php";
	if(!(str_month=='' || str_month=='undefined')){
		str_month=str_month*1;
	}

	
	url=url+"?str_year="+str_year+"&str_month="+str_month;
	xmlHttp.onreadystatechange=stateChanged_dv_impexp;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);

}

function stateChanged_dv_impexp(){
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("dv_show_impexp").innerHTML=xmlHttp.responseText;
	}else if  (xmlHttp.readyState==1){
		ShowDivID="dv_show_impexp";
		showLoading(ShowDivID);
	}

}

function showLoading(){
		//alert("show loading");
		document.getElementById(ShowDivID).innerHTML="<table width='100%' border='0' cellpadding='0' cellspacing='2' class='txt11'><tr><td width='16' align='left'><img src='images/Loading/rp_spinner.gif'  align='absmiddle' /></td><td style='padding-left:5px; padding-right:5px;' align='left'>Please wait ...</td></tr></table>";
}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}








