<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=CONTENT-TYPE content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content=0;0 name=CREATED>
<META content=20080425;15574767 name=CHANGED></HEAD>
<BODY lang=en-US dir=ltr bgColor=#ccff99>
<H2 align=center>MRPRO-Compositions, Communications, Footprints and Obsolescence 
Management</H2>
<H4 align=center>Version 5.1 sub Feb 2013</H4>
<H6 align=center>2012 Copyright Papros Inc.- Protected by USA and International 
copyright laws</H6>
<FORM name=thisform action=../mrp51>
<DIV align=center>
<P> Search information in supplier responses in XML database <P>
<P> For smelter name searches, to know if the program has read your data, in general, you must be able to see a Supplier name at least for the declaration being searched, If the supplier uses a smelter being searched, then that smelter name and associated metal will be listed below the supplier name in this report. (This means just seeing the Supplier name only means the supplier file has been read). However, for Declaration level (Declaration Description of Scope) searches, only the Supplier names for those declarations that match the Scope/level selected will be displayed.</P>

<div align=left id="content"></div>


<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript">
var tsrchl;
var mams;
var tdclevl="";
var scmplat;
var mdeclvl;
var supcomna;
var supcomid;
//spemams
for (var i=0; i<totfiles;i++){

$(document).ready(function(){

function parse(document){
  $(document).find("MainDeclaration").each(function(){
 mams=0;
 $("#content").append(
	'</table><P></P><br><P ALIGN=left>-----------Searching new declaration---- '+
	'</P>'
	);
  
    scmplat=$(this).attr("version");
    mdeclvl=$(this).find("Include").attr("scope");
 
   $(document).find("BusinessInfo").each(function(){
  
     $(this).find("SupplyCompany").each(function(){
 
     supcomna=$(this).attr("name");

     supcomid=$(this).find("CompanyID").attr("identity")
  });

if (tdclevl=='') {

    mams=1;

    $("#content").append(
	'<Table ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Supplier name:<td BGCOLOR=#ffffff>'+ supcomna +
 	'</td><th BGCOLOR=#ccff99>ID:<td BGCOLOR=#ffffff>'+supcomid+
        '</td><th BGCOLOR=#ccff99> Dated:<td BGCOLOR=#ffffff>'+$(this).find("Response").attr("date")+
        '</td><th BGCOLOR=#ccff99>Dec level:<td BGCOLOR=#ffffff>'+mdeclvl+
        '</td><th BGCOLOR=#ccff99>Schema version:<td BGCOLOR=#ffffff>'+scmplat+     
	''
	); 
 
              }       //mams=1

  });

   });

 
 
 
$(document).find("SmelterList").each(function(){

//var $this=$(this);
for (var j=1; j<totsmcn;j++){
//var tmetal
//var tsmname
//var tsmcoun
//var tsmprov
//var tminame
//var tminelo

//sups1235-if (j==1) {smestuff="examp1332-07-6";}

//  if ((($(this).attr('metalName')==tmetal)||(tmetal==''))&&
//      (($(this).attr('smelterName')==tsmname)||(tsmname==''))&&
//      (($(this).attr('smelterCountry')==tsmcoun)||(tsmcoun==''))&&
//      (($(this).attr('smelterState')==tsmprov)||(tsmprov==''))&&
//      (($(this).attr('mineName')==tminame)||(tminame==''))&&
//      (($(this).attr('mineCountry')==tminelo)||(tminelo=='')) )

if 
(
((($(this).attr('smelterID').toLowerCase().toLowerCase()).indexOf(tsmID.toLowerCase())>=0)&&(tsmID!='')&&(mams==1))
||
(((($(this).attr('metalName').toLowerCase().toLowerCase()).indexOf(tmetal.toLowerCase())>=0)||(tmetal==''))&&
    ((($(this).attr('smelterName').toLowerCase().toLowerCase()).indexOf(tsmname.toLowerCase())>=0)||(tsmname==''))&&
    ((($(this).attr('smelterCountry').toLowerCase().toLowerCase()).indexOf(tsmcoun.toLowerCase())>=0)||(tsmcoun==''))&&
    ((($(this).attr('smelterID').toLowerCase().toLowerCase()).indexOf(tsmID.toLowerCase())>=0)||(tsmID==''))&&
    ((($(this).attr('smelterState').toLowerCase().toLowerCase()).indexOf(tsmprov.toLowerCase())>=0)||(tsmprov==''))&&
    ((($(this).attr('mineName').toLowerCase().toLowerCase()).indexOf(tminame.toLowerCase())>=0)||(tminame==''))&&
    ((($(this).attr('mineCountry').toLowerCase().toLowerCase()).indexOf(tminelo.toLowerCase())>=0)||(tminelo==''))&&
    (mams==1)
    
)
)      

 {
  $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>SmelterID Input:<td BGCOLOR=#ffffff> '+$(this).attr('smelterIDInput')+
        '</td><th BGCOLOR=#ccff99>Metal name:<td BGCOLOR=#ffffff> '+$(this).attr('metalName')+ 
        '</td><th BGCOLOR=#ccff99>Smelter name:<td BGCOLOR=#ffffff> '+$(this).attr('smelterName')+ 
        '</td><th BGCOLOR=#ccff99>Smelter country:<td BGCOLOR=#ffffff> '+$(this).attr('smelterCountry')+ 
        '</td><th BGCOLOR=#ccff99>Smelter ID:<td BGCOLOR=#ffffff> '+$(this).attr('smelterID')+ 
        '</td><th BGCOLOR=#ccff99>Smelter Province:<td BGCOLOR=#ffffff> '+$(this).attr('smelterState')+ 
        '</td><th BGCOLOR=#ccff99>Mine Name:<td BGCOLOR=#ffffff> '+$(this).attr('mineName')+
        '</td><th BGCOLOR=#ccff99>Mine country:<td BGCOLOR=#ffffff> '+$(this).attr('mineCountry')
	 ); }

} 
  
  $("#content").append('</tr></Table>');
//alert(mams);
   });
      
}
//supe1235
  $.ajax({
    url: "puetits", 
    dataType: "xml",
    async: false, 
    success: parse,
	error: function(){alert("Error opening file - puetits");}
  });
//supc1235
});


}
</script>
<BR><BR></P></BODY></HTML>
