var siteIDmpllc = '759';

///////DONT CHANGE ////////
document.write('<script language="javascript" src="http://northusapharmacy.com/scripts/mpllcprices.js"></script>');

function dwProductTypeTablempllc(PTID)
{
	var sDocumentWrite = '';
	var i;
	var arrProductInfompllc = new Array();
	var arrProductTypeInfompllc = new Array();
		
	sDocumentWrite += '<table align=center width="98%" border="0" cellpadding="6" cellspacing="1" bgcolor="#AA4E3D" class="table_mp">'

	sDocumentWrite += '<tr>'
	sDocumentWrite += '<td width="25%" class="td_head">Medication</td>'
	//sDocumentWrite += '<td width="17%" align="center" class="header1"><strong>Dose</strong></td>'
	sDocumentWrite += '<td width="17%" align="center" class="td_head">Quantity</td>'
	sDocumentWrite += '<td width="17%" align="center" class="td_head">Sale Price</td>'
	sDocumentWrite += '<td width="16%" align="center" class="td_head">Consult fee</td>'
	sDocumentWrite += '<td width="15%" align="center" class="td_head">Order</td>'
	sDocumentWrite += '</tr>'

	for (i = 0; i < arrProductmpllc.length;i++)
	{
		arrProductInfompllc = arrProductmpllc[i].toString().split(',');
		arrProductTypeInfompllc = GetProductTypeInfompllc(arrProductInfompllc[cProductProductTypeIDmpllc]);
		//alert(arrProductInfo[cProductProductTypeID].toString());
		if (arrProductInfompllc[cProductProductTypeIDmpllc].toString() == PTID)
		{
			sDocumentWrite += '<tr vAlign=top bgColor=#ffffff>'
			sDocumentWrite += '<td class="medication">' + arrProductInfompllc[cProductProductNamempllc] + '</td>'
			//sDocumentWrite += '<td align=center>' + arrProductInfompllc[cProductProductDosempllc] + '</td>'
			sDocumentWrite += '<td class="quantity">' + arrProductInfompllc[cProductProductQuantitympllc] + '</td>'
			sDocumentWrite += '<td class="td_price">' + GetProductPricempllc(arrProductInfompllc) + '</td>'
			sDocumentWrite += '<td bgcolor="#FFFFFF" class="td_free">FREE!</td>'
			sDocumentWrite += '<td align=center><a href="https://www.mpllc.net/order.aspx?prod=' + arrProductInfompllc[cProductProductCodempllc].toString() + '&st=' + siteIDmpllc + '"><center><img src="images/buy.gif" border="0"></a></center></td>'
			sDocumentWrite += '</tr>'
		}
	}
	sDocumentWrite += '<tr><td colspan=5 align=center bgColor=#ffffff><a href="http://www.usa-medicalstore.com" target_blank><b>Pharmacy for Generic Drugs (FREE Intl. Shipping)</b></a></td></tr>'
	sDocumentWrite += '<tr><td colspan=5 align=center bgColor=#ffffff><b><a href="https://www.mpllc.net/CustLogin.aspx?st=' + siteIDmpllc + '">Order Status</a> -OR- Call 1-888-738-3822 (Toll Free) for Customer Support of This Product</b></td></tr>'
	sDocumentWrite += '</table>'
	document.write(sDocumentWrite);
}
//https://www.mpllc.net/order.aspx?prod=' + arrProductInfompllc[cProductProductCodempllc].toString() + '&st=733

function dwProductTablempllc()
{
	var sDocumentWrite = '';
	var i;
	var arrProductInfompllc = new Array();
	var arrProductTypeInfompllc = new Array();
	var strCat = '';
	var strCat1 = '';
	var ctr = 0;
		
	sDocumentWrite += '<table align=center width="95%" border="0" cellpadding="6" cellspacing="1" bgcolor="#CCCCCC" class="border">'

	sDocumentWrite += '<tr>'
	sDocumentWrite += '<td width="25%" class="header1"><strong>Medication</strong></td>'
	//sDocumentWrite += '<td width="17%" align="center" class="header1"><strong>Dose</strong></td>'
	sDocumentWrite += '<td width="17%" align="center" class="header1"><strong>Quantity</strong></td>'
	sDocumentWrite += '<td width="17%" align="center" class="header1"><strong>Sale Price</strong></td>'
	sDocumentWrite += '<td width="16%" align="center" class="header1"><strong>Consult fee </strong></td>'
	sDocumentWrite += '<td width="15%" align="center" class="header1"><strong>Order</strong></td>'
	sDocumentWrite += '</tr>'

	for (i = 0; i < arrProductmpllc.length;i++)
	{
		arrProductInfompllc = arrProductmpllc[i].toString().split(',');
		arrProductTypeInfompllc = GetProductTypeInfompllc(arrProductInfompllc[cProductProductTypeIDmpllc]);
		//alert(arrProductInfo[cProductProductTypeID].toString());
		strCat = arrProductInfompllc[cProductProductTypeIDmpllc].toString();

		if ((strCat1 != strCat) && (ctr != 0))
		{
			sDocumentWrite += '<tr><td colspan=5 bgColor=#f5f5f5>&nbsp;</td></tr>'
		}
		ctr++;
		
			sDocumentWrite += '<tr vAlign=top bgColor=#ffffff>'
			sDocumentWrite += '<td><b>' + arrProductInfompllc[cProductProductNamempllc] + '</td>'
			//sDocumentWrite += '<td align=center>' + arrProductInfompllc[cProductProductDosempllc] + '</td>'
			sDocumentWrite += '<td align=center>' + arrProductInfompllc[cProductProductQuantitympllc] + '</td>'
			sDocumentWrite += '<td class="ourprise" align=center><b>' + GetProductPricempllc(arrProductInfompllc) + '</b></td>'
			sDocumentWrite += '<td bgcolor="#FFFFFF" align=center><font color=red><b>FREE!</b></font></td>'
			sDocumentWrite += '<td align=center><a href="https://www.mpllc.net/order.aspx?prod=' + arrProductInfompllc[cProductProductCodempllc].toString() + '&st=' + siteIDmpllc + '"><b>Order Now</b></a></td>'
			sDocumentWrite += '</tr>'
			strCat1 = arrProductInfompllc[cProductProductTypeIDmpllc].toString();
		
	}
	sDocumentWrite += '<tr><td colspan=5 align=center bgColor=#ffffff><a href="http://www.usa-medicalstore.com" target_blank><b>Pharmacy for Generic Drugs (FREE Intl. Shipping)</b></a></td></tr>'
	sDocumentWrite += '</table>'
	document.write(sDocumentWrite);
}