﻿function processSearch()
{

	var txtZip = document.providerSearch.txtZipCode.value;
	var txtProduct = document.providerSearch.ddlProduct.value;
	var txtProdOutput;
	var txtPlanOutput;
	
	if (txtProduct == "ppo")
	{
		txtProdOutput = 'ppo';
		txtPlanOutput = '50';
	}
	else if (txtProduct == "select")
	{
		txtProdOutput = 'select';
		txtPlanOutput = '59';
	}
	else if (txtProduct == "hmo")
	{
		txtProdOutput = 'dhmo';
		txtPlanOutput = '';
	}
	else if (txtProduct == "lnr")
	{
		txtProdOutput = 'lnr';
		txtPlanOutput = '62';
	}
	else if (txtProduct == "tpa")
	{
		txtProdOutput = 'ppo';
		txtPlanOutput = '62';
	}
	
	if (txtZip == "Enter Zip Code Here")
	{
		txtZip = "";
	}


	window.open("http://c4.go2dental.com/member/dental_search/proxinp.cgi?brand=ildn&product="+txtProdOutput+"&plan_number="+txtPlanOutput+"&zip="+txtZip+"&maxlimit=100&pagelimit=20&dconly=&dnoa_prov_id=&lang=&pdftype=&saved_G2D_pagenum=&searchtype=byprox&sorttype=bydist&user=","_blank","location='no', scrollbars=1");
}