
function getuprice()
{

var total=0;
var arg=/ /g
if (document.listform.pprice)
{total=document.listform.pprice.value;}
if (document.listform.cntopt)
{
	if(document.listform.cntopt.value>1)
	{

		for (a=0;a<document.listform.cntopt.value;a++)
		{
			total=total+parseFloat(window.document.listform.D1[a].options[document.listform.D1[a].selectedIndex].value);
			document.links[a].href="showprod.asp?p="+window.document.listform.D1[a].options[document.listform.D1[a].selectedIndex].text.replace(arg,"%20")+"&type="+window.document.listform.ptype.value;
		}
	}

	else if(document.listform.cntopt.value!=0)
	{

		total=total+parseFloat(document.listform.D1.options[document.listform.D1.selectedIndex].value);
		document.links[0].href="showprod.asp?p="+window.document.listform.D1.options[document.listform.D1.selectedIndex].text.replace(arg,"%20")+"&type="+window.document.listform.ptype.value;

	}
}
window.document.listform.uprice.value=total;
window.document.listform.subtotal.value=total*window.document.listform.qty.value;

}




