/*-----------------------------------------------------------------------------
	Name: A01_MPD_004_zip_SearchPolicy.c
	Recorded By: Converted via tool
	Date of recording:
	Flow details:
	Build details:
	Modification History:
-----------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ns_string.h"

void A01_MPD_004_zip_SearchPolicy()
{
	
	
//	lr_output_message( " User: [%s] has started iteration with Policy: [%s]",
//							ns_eval_string("{P_Username}"),
//							ns_eval_string("{P_ZipPolNum}"));
	/* srch policy */
	
	ns_start_transaction("A01_AZ_004_MPD_searchpolicy");

//	web_reg_save_param("C_PolicyID","LB/IC=policy-detail-flow&amp;policyId=","RB/ALNUMIC=&amp;currentProductCd=AAA_HO_SS\" id=\"searchTable1Form:body_searchTable1:^:selectPolicy\" name=\"searchTable1Form:body_searchTable1:^:selectPolicy\">{P_ZipPolNum}</a></td><td id=\"searchTable1Form:body_searchTable1:^:column_productCd\" class=\"rf-dt-c\">Homeowners Signature Series</td><td id=\"searchTable1Form:body_searchTable1:^:column_policyStatusCd\" class=\"rf-dt-c\">Policy Active","Ord=1", LAST);
	
	
	//addDynaTraceHeader("NA=A01_AZ_004_MPD_searchpolicy;PC=flow_5");
	ns_web_url("Zip_SearchPolicy",
		"URL={P_URL}/aaa-app/flow?_flowId=search-main-flow&_flowExecutionKey=e1s1&_windowId={C_windowID}", 
		"Method=POST",
		//"HEADER=Faces-Request:partial/ajax",
		"HEADER=Origin:{P_URL}",
        	"HEADER=Content-Type:application/x-www-form-urlencoded", 
		"HEADER=Referer: {P_URL}/aaa-app/flow?_flowId=search-main-flow&_windowId={C_windowID}", 
		"Snapshot=t9.inf", 
		ITEMDATA, 
		"Name=searchForm:entityTypeSelect", "Value=policy",  
		"Name=searchForm:coveragesPremiumsTable:0:policyNumber", "Value={P_ZipPolNum}",  
		"Name=searchForm:coveragesPremiumsTable:0:firstName", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:customerNumber", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:productCode", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:lastName", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:brokerName", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:agentOfRecord", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:city", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:brokerNumber", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:agentNo", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:state", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:underwritingCompanyNumber", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:accountNumber", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:postCode", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:ssn", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:billingAccountNumber", "Value=",  
		"Name=searchForm:coveragesPremiumsTable:0:phone", "Value=",  
		"Name=searchForm:searchBtn", "Value=Search",  
		"Name=searchForm_SUBMIT", "Value=1",  
		"Name=javax.faces.ViewState", "Value={C_VSearchPolicy}",  
		ITEMDATA_END
		);
	ns_end_transaction("A01_AZ_004_MPD_searchpolicy", NS_AUTO_STATUS);

	//ns_page_think_time(think_time);
}