<!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 Dec 2015</H4>
<H6 align=center>2013 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, formatted in IPC 1754 draft <P>
<P> 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. </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 metl;
var quth;
var exemlid;
var exemlidauth;
var subexidauth;
var subexid;
var subamtuom;
var subamt;
var subsidauth;
var subsid;
var subcat;
var sucatlistid;
var hlatnam;
var hlynam;
var hlyruom;
var hlyruom;
var prodamt;
var produom;
var subpamt;
var subpuom;
var subconc;
var exems;
var hlyrusd;
var hlyrman;
var submir;
var submxr;
var hlymir;
var hlymxr;
var subrusd;
var noistry;
var bmlevel;
var prochk;
//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><P ALIGN=left>-----------Searching new declaration---- '+
	'</P>'
	);

 //   var tmplat=$(this).find("FormsInfo").attr('adTemplateVersion');
 //   var scmplat=$(this).find("FormsInfo").attr('schemaVersion');

  $("#content").append("<table>");
   $(this).find("BusinessInfo").each(function(){
var rimod=$(this).attr('mode');
 // alert("kla");
 //  tsrchl=$(this).find("Response").attr('comments').toLowerCase();
   $(this).find("Response").each(function(){
 var resdat=$(this).find("Response").attr('ResponseDate');
 var resdocid=$(this).find("Response").attr('docID');
  tsrchl=$(this).find("Response").attr('comment');
// alert("kla1");
mams=1;
  $(this).find("AuthorizingCompany").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Authorizing Company name:<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>ID:<td BGCOLOR=#ffffff>'+$(this).find("CompanyID").attr('identity')+
	'</td><th BGCOLOR=#ccff99>ID Authority:<td BGCOLOR=#ffffff>'+$(this).find("CompanyID").attr('authority')+
	'</td>'
	);
}); //response auth
  $(this).find("Authorizer").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Authorizer name:<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>Authorizer title:<td BGCOLOR=#ffffff>'+$(this).attr('title')+
	'</td><th BGCOLOR=#ccff99>Email:<td BGCOLOR=#ffffff>'+$(this).find("Email").attr('address')+
	'</td><th BGCOLOR=#ccff99>Street:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('street')+
	'</td><th BGCOLOR=#ccff99>City:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('city')+
	'</td><th BGCOLOR=#ccff99>State/Province:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('stateProvince')+
	'</td><th BGCOLOR=#ccff99>Country:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('country')+
	'</td><th BGCOLOR=#ccff99>Postal code:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('postalCode')+
	'</td><th BGCOLOR=#ccff99>Phone:<td BGCOLOR=#ffffff>'+$(this).find("Phone").attr('number')+
	'</td>'
	);
}); //response authorizer
   $(this).find("SupplyCompany").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Supply Company name:<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>ID:<td BGCOLOR=#ffffff>'+$(this).find("CompanyID").attr('identity')+
	'</td><th BGCOLOR=#ccff99>ID Authority:<td BGCOLOR=#ffffff>'+$(this).find("CompanyID").attr('authority')+
	'</td>'
	);
}); //response supply company
  $(this).find("Contact").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Contact:<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>Contact title:<td BGCOLOR=#ffffff>'+$(this).attr('title')+
	'</td><th BGCOLOR=#ccff99>Email:<td BGCOLOR=#ffffff>'+$(this).find("Email").attr('address')+
	'</td><th BGCOLOR=#ccff99>Phone:<td BGCOLOR=#ffffff>'+$(this).find("Phone").attr('number')+
	'</td><th BGCOLOR=#ccff99>Other Internal:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('internal')+
	'</td><th BGCOLOR=#ccff99>Street:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('street')+
	'</td><th BGCOLOR=#ccff99>City:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('city')+
	'</td><th BGCOLOR=#ccff99>State/Province:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('stateProvince')+
	'</td><th BGCOLOR=#ccff99>Country:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('country')+
	'</td><th BGCOLOR=#ccff99>Postal code:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('postalCode')+
	'</td>'
	);
}); //response contacts

}); //response
//
//$("#content").append('</table><P>');
   $(this).find("Request").each(function(){
 var rqsdat=$(this).find("Request").attr('requestDate');
 var rqsdocid=$(this).find("Request").attr('docID');
   var tqrchl=$(this).find("Request").attr('comment');
 var rqsdat=$(this).find("Request").attr('respondByDate');
// alert("kla1");
mams=1;
   $(this).find("RequestCompany").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Request Company name:<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>ID:<td BGCOLOR=#ffffff>'+$(this).find("CompanyID").attr('identity')+
	'</td><th BGCOLOR=#ccff99>ID Authority:<td BGCOLOR=#ffffff>'+$(this).find("CompanyID").attr('authority')+
	'</td>'
	);
}); //Request company

 
  $(this).find("Contact").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Contact:<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>Contact title:<td BGCOLOR=#ffffff>'+$(this).attr('title')+
	'</td><th BGCOLOR=#ccff99>Email:<td BGCOLOR=#ffffff>'+$(this).find("Email").attr('address')+
	'</td><th BGCOLOR=#ccff99>Phone:<td BGCOLOR=#ffffff>'+$(this).find("Phone").attr('number')+
	'</td><th BGCOLOR=#ccff99>Other Internal:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('internal')+
	'</td><th BGCOLOR=#ccff99>Street:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('street')+
	'</td><th BGCOLOR=#ccff99>City:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('city')+
	'</td><th BGCOLOR=#ccff99>State/Province:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('stateProvince')+
	'</td><th BGCOLOR=#ccff99>Country:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('country')+
	'</td><th BGCOLOR=#ccff99>Postal code:<td BGCOLOR=#ffffff>'+$(this).find("SurfaceAddress").attr('postalCode')+
	'</td>'
	);
}); //Request contacts

}); //Request
$("#content").append('</table><P>');
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Declaration type:<td BGCOLOR=#ffffff>'+$(this).find("Declaration").attr('legalType')+
	'</td><th BGCOLOR=#ccff99>Legal Type:<td BGCOLOR=#ffffff>'+$(this).find("Declaration").attr('legalType')+
	'</td><th BGCOLOR=#ccff99>Supplier Acceptance:<td BGCOLOR=#ffffff>'+$(this).find("Declaration").attr('supplierAcceptance')+
	'</td><th BGCOLOR=#ccff99>Authorize Date:<td BGCOLOR=#ffffff>'+$(this).find("Declaration").attr('authorizeDate')+
	'</td><th BGCOLOR=#ccff99>Authorizer Signature:<td BGCOLOR=#ffffff>'+$(this).find("Declaration").attr('authorizerSignature')+
	'</td><th BGCOLOR=#ccff99>Legal Definition:<td BGCOLOR=#ffffff>'+$(this).find("Declaration").attr('legalDef')+
	'</td>'
	);

//
//alert(tsrchl);
//   $("#content").append('</tr></Table>');
$("#content").append('</table><P>');
 $(this).find("EBusinessInfo").each(function(){
 $(this).find("Attachment").each(function(){
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Attachment file name(if any):<td BGCOLOR=#ffffff>'+$(this).attr('name')+
	'</td><th BGCOLOR=#ccff99>File type:<td BGCOLOR=#ffffff>'+$(this).attr('fileType')+
	'</td><th BGCOLOR=#ccff99>File data:<td BGCOLOR=#ffffff>'+$(this).attr('fileData')+
	'</td><th BGCOLOR=#ccff99>Located in zip file:<td BGCOLOR=#ffffff>'+$(this).attr('fileZipLocation')+
	'</td>'
	);
$("#content").append('</table><P>');
}); //Attach

}); //EBusi

  });                             //businessinfo
// alert("kla");
   $(this).find("Product").each(function(){
$("#content").append('<B><U>List of ProductIDs and the Declaration that applies to them</U></B>');
$("#content").append('<P>');
$("#content").append("<table>");
// $("#content").append("<table><tr><th>Item Dec Class</th><th>Prod Item Name</th><th>Prod Item Nbr</th><th>Prod Eff Date</th><th>Item Dec Class</th>
//<th>No. of Column(s)</th>
//</tr>
var grpnam=$(this).find("GroupID").attr('groupName');
var grpnmb=$(this).find("GroupID").attr('groupNumber');
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><tr><th width =50 BGCOLOR=#ccff99>Group name:<td width =50 BGCOLOR=#ffffff>'+grpnam+
        '</td><th width =50 BGCOLOR=#ccff99>Group number:<td width =100 BGCOLOR=#ffffff>'+grpnmb+
	'</td>'
	);
$("#content").append('<P>');
  $(this).find("ProductID").each(function(){
var bodhi=$(this).parent().get( 0 ).tagName;
//
if (bodhi!='SubProduct') {

 produom=$(this).find("Amount").attr('UOM');
 prodamt=$(this).find("Amount").attr('value');

//
    $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><tr><th width =50 BGCOLOR=#ccff99>Prod itemname:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('itemName')+

        '</td><th width =50 BGCOLOR=#ccff99>Prod itemnumber:<td width =100 BGCOLOR=#ffffff>'+$(this).attr('itemNumber')+
        '</td><th width =50 BGCOLOR=#ccff99>Prod effective date:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('effectiveDate')+
        '</td><th width =50 BGCOLOR=#ccff99>Prod requester itemname:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('requesterItemName')+
        '</td><th width =50 BGCOLOR=#ccff99>Prod requester itemnumber:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('requesterItemNumber')+
        '</td><th width =50 BGCOLOR=#ccff99>Prod version:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('version')+
        '</td><th width =50 BGCOLOR=#ccff99>Prod amount:<td width =50 BGCOLOR=#ffffff>'+prodamt+
        '</td><th width =50 BGCOLOR=#ccff99>Prod UOM:<td width =50 BGCOLOR=#ffffff>'+produom+
	'</td>'
	);
}  //bodhi IF
 //$("#content").append('</tr></Table>');
$("#content").append('</table><P>');
    });    //productid
$("#content").append('<table><P>');
$(this).find("InstanceID").each(function(){
$("#content").append(
	'<Table ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Instance ID:<td BGCOLOR=#ffffff>'+$(this).attr('identity')+
        '</td><th BGCOLOR=#ccff99>Instance ID authority:<td BGCOLOR=#ffffff>'+$(this).attr('authority')+
	'</td>'
	);
   });    //instanceid
//$("#content").append('<P></P><P>');
$("#content").append('</tr></table><P></P><table></table>                                             ');
$("#content").append('<P></P><P></P>');
//$("#content").append('<NL>');
 //   });    //product
//
 $("#content").append('<table></table><B><U>Queries (If no queries are listed below, then no queries were found in the declaration)</U></B><P></P>');
 $("#content").append("<table>");
  $(this).find("MaterialInfo").each(function(){

  $(this).find("QueryList").each(function(){
  metl=$(this).attr('identity');
  quth=$(this).attr('authority');
 $("#content").append('</P><P>');
  $(this).find("Query").each(function(){
  $("#content").append('<P>');

  $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th width =50 BGCOLOR=#ccff99>Querylist ID:<td width =100 BGCOLOR=#ffffff>'+metl+
        '</td><th BGCOLOR=#ccff99>Query ID Authority:<td width =100 BGCOLOR=#ffffff>'+quth+
        '</td><th BGCOLOR=#ccff99>Query Statement:<td width =100 BGCOLOR=#ffffff>'+$(this).attr('statement')+
        '</td><th BGCOLOR=#ccff99>Query Response:<td width =100 BGCOLOR=#ffffff>'+$(this).attr('response')+

	'</td>'
	);
 // $("#content").append('</tr></Table>');
 $("#content").append('<P>');
   });    //Query
   });    //Querylist
   });    //MaterialInfo
 $("#content").append('</table><P>');
// #ffff99 is orangish yellow
 $("#content").append('<table><B><U>Sub products (if no gray rows of data are present, no sub products were listed for this product); if any data fields are either not present or "undefined" it means those fields were either not entered or there is a white space entry)</U></B>');
  var fodhi=0;
$(this).find("SubProduct").each(function(){
fodhi=1;
 //
var nodhi=$(this).parent().get( 0 ).tagName;
var jodhi="</td><th BGCOLOR=#ccff99>Product Content";
if (nodhi=='UsedInProcess') { jodhi="</td><th BGCOLOR=#FFFF00>This Section Refers to Substances Used In Process";}
//
//noistry=NULL;
noistry=$(this).attr('numberOfInstances');
if (!noistry) {noistry=1;}
bmlevel=$(this).attr('bomLevel');
if (!bmlevel) {bmlevel=1;}
$("#content").append('<P></P><P></P><P></P><P><br>');
$("#content").append("<table>");
// $("#content").append("<table><tr><th>Item Dec Class</th><th>Prod Item Name</th><th>Prod Item Nbr</th><th>Prod Eff Date</th><th>Item Dec Class</th>
//<th>No. of Column(s)</th>
//</tr>
$("#content").append(
	'<Table ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#C0C0C0>Number of instances of this subproduct:<td BGCOLOR=#ffffff>'+noistry+
        '</td><th BGCOLOR=#C0C0C0>Unit Type:<td BGCOLOR=#ffffff>'+$(this).attr('unitType')+
        '</td><th BGCOLOR=#C0C0C0>Bom Level:<td BGCOLOR=#ffffff>'+bmlevel+
	'</td><th BGCOLOR=#ccff99>Lists All Materials:<td BGCOLOR=#ffffff>'+$(this).attr('allMaterialsDeclared')+
	'</td><th BGCOLOR=#ccff99>Is it a Full Substance Declaration ?:<td BGCOLOR=#ffffff>'+$(this).attr('isFSD')+

        jodhi+
	'</td></table><table>'
	);

  $(this).find("ProductID").each(function(){
//

 subpuom=$(this).find("Amount").attr('UOM');
 subpamt=$(this).find("Amount").attr('value');
subppvar=$(this).find("Amount").attr('positiveVariationPercent');
subpnvar=$(this).find("Amount").attr('negativeVariationPercent');

//
  $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><tr><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod itemname:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('itemName')+

        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod itemnumber:<td width =100 BGCOLOR=#ffffff>'+$(this).attr('itemNumber')+
        '</td><th width =50 BGCOLOR=#C0C0C0> Effective date:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('effectiveDate')+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod requester itemname:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('requesterItemName')+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod requester itemnumber:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('requesterItemNumber')+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod version:<td width =50 BGCOLOR=#ffffff>'+$(this).attr('version')+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod amount:<td width =50 BGCOLOR=#ffffff>'+subpamt+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod UOM:<td width =50 BGCOLOR=#ffffff>'+subpuom+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod amount positive variation:<td width =50 BGCOLOR=#ffffff>'+subppvar+
        '</td><th width =50 BGCOLOR=#C0C0C0>Prod or Subprod amount negative variation:<td width =50 BGCOLOR=#ffffff>'+subpnvar+
	'</td>'
	);
 //$("#content").append('</tr></Table>');
//$("#content").append('</table><P>');
$("#content").append('</table>');
    });    //productid
$("#content").append('<table>');
//$("#content").append('<table><P>');
$(this).find("InstanceID").each(function(){
$("#content").append(
	'<Table ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th BGCOLOR=#ccff99>Instance ID:<td BGCOLOR=#ffffff>'+$(this).attr('identity')+
        '</td><th BGCOLOR=#ccff99>Instance ID authority:<td BGCOLOR=#ffffff>'+$(this).attr('authority')+
	'</td>'
	);
   });    //instanceid
$("#content").append('</tr></table><table></table>                                           ');
//$("#content").append('<P></P><P>');
//$("#content").append('</tr></table><P></P><table></table>                                             ');
//$("#content").append('<P></P><P></P>');
//$("#content").append('<NL>');
 //   });    //product
//
//
  $(this).find("MaterialInfo").each(function(){

//  $(this).find("MaterialList").each(function(){
var yodhi=0;
 $(this).find("Material").each(function(){
 yodhi=1;
// hlynam=$(this).find("HomogeneousMaterial").attr('name');
 hlynam=$(this).attr('materialName');
//
hlyrid=$(this).find("MaterialID").attr('identity');
 hlyrath=$(this).find("MaterialID").attr('authority');
 hlyruom=$(this).find("Amount").attr('UOM');
 hlyramt=$(this).find("Amount").attr('value');
 hlymir=$(this).find("Amount").attr('percentMinimumValueRange');
 hlymxr=$(this).find("Amount").attr('percentMaximumValueRange');
hlyrman=$(this).find("Manufacturer").attr('name');
hlyrusd=$(this).find("UseDescriptor").attr('technicalFunction');
 $(this).find("Attachment").each(function(){
 hlatnam=$(this).attr('filename');
       });    //attachment

//
$("#content").append(
	'<Table ALIGN=left border="1" BGCOLOR=#ffffff ><span><tr><th width =50 BGCOLOR=#ccff99>Material name:<td width=50 BGCOLOR=#ffffff>'+hlynam+
        '</td><th width =50 BGCOLOR=#ccff99>Material ID Standard:<td width=50 BGCOLOR=#ffffff>'+hlyrath+
        '</td><th width =50 BGCOLOR=#ccff99>Material Use Description:<td width=50 BGCOLOR=#ffffff>'+hlyrusd+
        '</td><th width =50 BGCOLOR=#ccff99>Material Manufacturer:<td width=50 BGCOLOR=#ffffff>'+hlyrman+
        '</td><th width =50 BGCOLOR=#ccff99>Material Amount:<td width=50 BGCOLOR=#ffffff>'+hlyramt+
        '</td><th width =50 BGCOLOR=#ccff99>Material UOM:<td width=50 BGCOLOR=#ffffff>'+hlyruom+
        '</td><th width =50 BGCOLOR=#ccff99>Material Attachment Filename:<td width=50 BGCOLOR=#ffffff>'+hlatnam+
        '</td><th width =50 BGCOLOR=#ccff99>Material amt max range:<td width=50 BGCOLOR=#ffffff>'+hlymxr+
        '</td><th width =50 BGCOLOR=#ccff99>Material amt min range:<td width=50 BGCOLOR=#ffffff>'+hlymir+
	'</td>'
	);



 $(this).find("Substance").each(function(){
//
 $(this).find("SubstanceID").each(function(){
 subsid=$(this).attr('identity');
 subsidauth=$(this).attr('authority');
       });    //SubstanceID
//
//
subrusd=$(this).find("UseDescriptor").attr('technicalFunction');
 subamt='';
 $(this).find("Amount").each(function(){
 subamtuom=$(this).attr('UOM');
 subamt=$(this).attr('value');
 submir=$(this).attr('percentMinimumValueRange');
 submxr=$(this).attr('percentMaximumValueRange');
       });    //Amount
//
  subconc='';
// $(this).find("Concentration").each(function(){
// subconc=$(this).attr('value');

//       });    //Amount

//
 //exems="";




 $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><td><th width=50 BGCOLOR=#ADD8E6>Substance name:<td width=50 BGCOLOR=#ffffff> '+$(this).attr('name')+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance ID:<td width=50 BGCOLOR=#ffffff> '+subsid+
        '</td><th width=50 BGCOLOR=#ADD8E6>SubstanceID Authority:<td width=50 BGCOLOR=#ffffff> '+subsidauth+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amount:<td width=50 BGCOLOR=#ffffff> '+subamt+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance UOM:<td width=50 BGCOLOR=#ffffff> '+subamtuom+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt max % range:<td width=50 BGCOLOR=#ffffff> '+submxr+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt min % range:<td width=50 BGCOLOR=#ffffff> '+submir+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance Use Description:<td width=50 BGCOLOR=#ffffff> '+subrusd

	 );

//

  });    //Substance
 
  });    //HomogeneousMaterial
 //   });    //HomogeneousMaterialList

if (yodhi==0) {
 $(this).find("Substance").each(function(){
//
 $(this).find("SubstanceID").each(function(){
 subsid=$(this).attr('identity');
 subsidauth=$(this).attr('authority');
       });    //SubstanceID
//
//
 subamt='';
 $(this).find("Amount").each(function(){
 subamtuom=$(this).attr('UOM');
 subamt=$(this).attr('value');
 submir=$(this).attr('minimumValue');
 submxr=$(this).attr('maximumValue');
       });    //Amount
//
  subconc='';
 
//
 //exems="";

 


 $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><td><th width=50 BGCOLOR=#ADD8E6>Substance name:<td width=50 BGCOLOR=#ffffff> '+$(this).attr('name')+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance ID:<td width=50 BGCOLOR=#ffffff> '+subsid+
        '</td><th width=50 BGCOLOR=#ADD8E6>SubstanceID Authority:<td width=50 BGCOLOR=#ffffff> '+subsidauth+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amount:<td width=50 BGCOLOR=#ffffff> '+subamt+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance UOM:<td width=50 BGCOLOR=#ffffff> '+subamtuom+
         '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt max % range :<td width=50 BGCOLOR=#ffffff> '+submxr+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt min  % range:<td width=50 BGCOLOR=#ffffff> '+submir

	 );

//

  });    //Substance
}
 

$("#content").append('<P>');
//
//   $("#content").append('</tr></Table>');
//   $("#content").append('<P>');
//   });    //
 $("#content").append("</table></P>");
//

   });    //Materialinfo

   });    //subproduct

//new section just for process
var zidhi=0;
var prochk=0;
var pronam;
var proclas;
var prostag;
$(this).find("UsedInProcess").each(function(){
//$(this).find("Process").each(function(){
//pronam=$(this).attr('processName');
//proclas=$(this).attr('processClassification');
//prostag=$(this).attr('processStage');

// $("#content").append(
//	'<TR ALIGN=left border="1" BGCOLOR=</td><th width=5000 BGCOLOR=#FFFF00>Refers to Materials and Substances Used In Process<span><tr><th width=50 BGCOLOR=#ADD8E6>Process name:<td width=50 BGCOLOR=#ffffff> '+pronam+
//        '</td><th width=50 BGCOLOR=#ADD8E6>Process Classification:<td width=50 BGCOLOR=#ffffff> '+proclas+
//        '</td><th width=50 BGCOLOR=#ADD8E6>Process Stage:<td width=50 BGCOLOR=#ffffff> '+prostag
//
//	 );
var zidhi=0;
  $(this).find("Substance").each(function(){
var yidhi=$(this).parent().get( 0 ).tagName;
if (yidhi=='Process') {zidhi=1;}
if (zidhi==1) {
pronam=$(this).parent().attr('processName');
proclas=$(this).parent().attr('processClassification');
//prostag=$(this).parent().attr('processStage');
prostag=$(this).parent().find('ProcessStage').text();
//
 $(this).find("SubstanceID").each(function(){
 subsid=$(this).attr('identity');
 subsidauth=$(this).attr('authority');
       });    //SubstanceID
//
//
subrusd=$(this).find("UseDescriptor").attr('technicalFunction');
 subamt='';
 $(this).find("Amount").each(function(){
 subamtuom=$(this).attr('UOM');
 subamt=$(this).attr('value');
 submir=$(this).attr('minimumValue');
 submxr=$(this).attr('maximumValue');
       });    //Amount
//
 $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=</td><th width=5000 BGCOLOR=#FFFF00>Refers to Materials and Substances Used In Process<span><tr><th width=50 BGCOLOR=#ADD8E6>Process name:<td width=50 BGCOLOR=#ffffff> '+pronam+
       '</td><th width=50 BGCOLOR=#ADD8E6>Process Classification:<td width=50 BGCOLOR=#ffffff> '+proclas+
        '</td><th width=50 BGCOLOR=#ADD8E6>Process Stage:<td width=50 BGCOLOR=#ffffff> '+prostag

	 );
 $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=</td><th width=5000 BGCOLOR=#FFFF00>Substances Used In Process<span><tr><th width=50 BGCOLOR=#ADD8E6>Substance name:<td width=50 BGCOLOR=#ffffff> '+$(this).attr('name')+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance ID:<td width=50 BGCOLOR=#ffffff> '+subsid+
        '</td><th width=50 BGCOLOR=#ADD8E6>SubstanceID Authority:<td width=50 BGCOLOR=#ffffff> '+subsidauth+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amount:<td width=50 BGCOLOR=#ffffff> '+subamt+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance UOM:<td width=50 BGCOLOR=#ffffff> '+subamtuom+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt max % range:<td width=50 BGCOLOR=#ffffff> '+submxr+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt min % range:<td width=50 BGCOLOR=#ffffff> '+submir+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance Use Description:<td width=50 BGCOLOR=#ffffff> '+subrusd

	 );
//
} //zidhi if
  });    //Substance

//
var yodhi=0;
var zidhi=0;
$(this).find("MaterialList").each(function(){
var yidhi=$(this).parent().get( 0 ).tagName;

pronam=$(this).parent().attr('processName');
proclas=$(this).parent().attr('processClassification');
prostag=$(this).parent().attr('processStage');
if (yidhi=='Process') {zidhi=1;}
 $(this).find("Material").each(function(){
 yodhi=1;

 hlynam=$(this).attr('materialName');
//
hlyrid=$(this).find("MaterialID").attr('identity');
 hlyrath=$(this).find("MaterialID").attr('authority');
 hlyruom=$(this).find("Amount").attr('UOM');
 hlyramt=$(this).find("Amount").attr('value');
 hlymir=$(this).find("Amount").attr('percentMinimumValueRange');
 hlymxr=$(this).find("Amount").attr('percentMaximumValueRange');
hlyrman=$(this).find("Manufacturer").attr('name');
hlyrusd=$(this).find("UseDescriptor").attr('technicalFunction');
 $(this).find("Attachment").each(function(){
 hlatnam=$(this).attr('filename');
       });    //attachment

//
 $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=</td><th width=5000 BGCOLOR=#FFFF00>Refers to Materials and Substances Used In Process<span><tr><th width=50 BGCOLOR=#ADD8E6>Process name:<td width=50 BGCOLOR=#ffffff> '+pronam+
        '</td><th width=50 BGCOLOR=#ADD8E6>Process Classification:<td width=50 BGCOLOR=#ffffff> '+proclas+
        '</td><th width=50 BGCOLOR=#ADD8E6>Process Stage:<td width=50 BGCOLOR=#ffffff> '+prostag

	 );
$("#content").append(
	'<TABLE TR ALIGN=left border="1" BGCOLOR=#ffffff</td><th width=5000 BGCOLOR=#FFFF00>Materials and/or Substances Used In Process<span><tr><th width =50 BGCOLOR=#ccff99>Material name:<td width=50 BGCOLOR=#ffffff>'+hlynam+
        '</td><th width =50 BGCOLOR=#ccff99>Material ID :<td width=50 BGCOLOR=#ffffff>'+hlyrid+
        '</td><th width =50 BGCOLOR=#ccff99>Material Use Description:<td width=50 BGCOLOR=#ffffff>'+hlyrusd+
        '</td><th width =50 BGCOLOR=#ccff99>Material Manufacturer:<td width=50 BGCOLOR=#ffffff>'+hlyrman+
        '</td><th width =50 BGCOLOR=#ccff99>Material Amount:<td width=50 BGCOLOR=#ffffff>'+hlyramt+
        '</td><th width =50 BGCOLOR=#ccff99>Material UOM:<td width=50 BGCOLOR=#ffffff>'+hlyruom+
        '</td><th width =50 BGCOLOR=#ccff99>Material Attachment Filename:<td width=50 BGCOLOR=#ffffff>'+hlatnam+
        '</td><th width =50 BGCOLOR=#ccff99>Material amt max range:<td width=50 BGCOLOR=#ffffff>'+hlymxr+
        '</td><th width =50 BGCOLOR=#ccff99>Material amt min range:<td width=50 BGCOLOR=#ffffff>'+hlymir+
	'</td>'
	);

 $(this).find("Substance").each(function(){
//
 $(this).find("SubstanceID").each(function(){
 subsid=$(this).attr('identity');
 subsidauth=$(this).attr('authority');
       });    //SubstanceID
//
//
subrusd=$(this).find("UseDescriptor").attr('technicalFunction');
 subamt='';
 $(this).find("Amount").each(function(){
 subamtuom=$(this).attr('UOM');
 subamt=$(this).attr('value');
 submir=$(this).attr('minimumValue');
 submxr=$(this).attr('maximumValue');
       });    //Amount
//
 $("#content").append(
	'<TR ALIGN=left border="1" BGCOLOR=#ffffff ><span><td><th width=50 BGCOLOR=#ADD8E6>Substance name:<td width=50 BGCOLOR=#ffffff> '+$(this).attr('name')+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance ID:<td width=50 BGCOLOR=#ffffff> '+subsid+
        '</td><th width=50 BGCOLOR=#ADD8E6>SubstanceID Authority:<td width=50 BGCOLOR=#ffffff> '+subsidauth+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amount:<td width=50 BGCOLOR=#ffffff> '+subamt+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance UOM:<td width=50 BGCOLOR=#ffffff> '+subamtuom+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt max % range:<td width=50 BGCOLOR=#ffffff> '+submxr+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance amt min % range:<td width=50 BGCOLOR=#ffffff> '+submir+
        '</td><th width=50 BGCOLOR=#ADD8E6>Substance Use Description:<td width=50 BGCOLOR=#ffffff> '+subrusd

	 );
//

  });    //Substance
 
  });    //HomogeneousMaterial
 //   });    //HomogeneousMaterialList
}); //matspec
echo ("kyabai");


$("#content").append('<P>');
// });    //process
//}); //usedinprocess
 $("#content").append("</table></P>");

});    //process


//end new section for process

   });      // product
//alert(tsrchl);
//
    $("#content").append('<P></P><P>');
 });      // mat dec

   $("#content").append("End of data");
}
//sups1235-if (j==1) {smestuff="examp1332-07-6";}
//supe1235
  $.ajax({
    url: "puetits",
    dataType: "xml",
    async: false,
    success: parse,
	error: function(){alert("Error opening file - puetits");}
  });
//supc1235
});


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