   var  standsloneProductName = new Array();
	var standsloneProductOption = new Array();	//0 = None, 1 = Quantity, 2 = Coded 
	var standsloneProductPrice = new Array();	
	var standsloneProductPSDPrice = new Array();	
	var standslonePCoded = new Array();

	standsloneProductName[0]		= "Static Banner";
	standsloneProductOption[0]	= 1;
	standsloneProductPrice[0]	= 37;
	standsloneProductPSDPrice[0]	= 47;

	standsloneProductName[1]		= "Dynamic Banner";
	standsloneProductOption[1]	= 1;
	standsloneProductPrice[1]	= 47;
	standsloneProductPSDPrice[1]	= 0;

	standsloneProductName[2]		= "Logo Design";
	standsloneProductOption[2]	= 1;
	standsloneProductPrice[2]	= 127;
	standsloneProductPSDPrice[2]	= 0;

	
function Displaystandslonestable()
	  {
	var ProdOpt		= "";
	var ProdPrices	= ""; 
document.write("<form action=\"step3.php\" method=\"post\">\n <table width=\"95%\"  border=\"0\" cellspacing=\"1\" class=\"DispTable\" cellpadding=\"2\" align=\"center\">");

document.write("<tr><td width=\"252\" align=\"center\" valign=\"middle\" class=\"iq-bg1\">Stand Alone Items</td><td width=\"76\" align=\"center\" valign=\"middle\" class=\"iq-bg2\">Add </td><td width=\"96\" align=\"center\" valign=\"middle\" class=\"iq-bg3\">Add PSD</td><td width=\"96\" align=\"center\" valign=\"middle\" class=\"iq-bg4\">Qty</td><td align=\"center\" width=\"72\" valign=\"middle\" class=\"iq-bg5\">Price</td><td align=\"center\" width=\"84\" valign=\"middle\" class=\"iq-bg5\">Price with PSD</td></tr>");

for(var Id in standsloneProductName)
     {
  switch(standsloneProductOption[Id]) 
	   {
case 0: standsloneProdOpt = ""; break;
case 1: standsloneProdOpt = "<select name=\"Data2["+Id+"][Qty2]\" onchange=\"DisplaystandslonePrices()\"><option value=\"1\">1</option><option value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option></select>"; break;
case 2: standsloneProdOpt = "<input type=\"checkbox\" name=\"Data2["+Id+"][Coded]\" value=\""+standslonePCoded[Id]+"\" onchange=\"DisplaystandslonePrices()\" > Coded"; break;
		   }
 
document.write("<tr>\n"); 
document.write("<td width=\"252\"  class=\"iq-bg7\" align=\"left\" valign=\"middle\" nowrap=\"nowrap\">"+standsloneProductName[Id]+"</td>\n");
			
document.write("<td width=\"76\" align=\"center\" class=\"iq-bg8\"><input type=\"checkbox\"  name=\"Data["+Id+"][Select]\" value=\"3\" id=\"Sel"+Id+"5\" onchange=\"DisplaystandslonePrices()\" /></td>\n");
			
document.write("<td width=\"96\" align=\"center\" class=\"iq-bg9\"><input type=\"checkbox\"  name=\"Data["+Id+"][Select]\" value=\"4\" id=\"Sel"+Id+"6\" onchange=\"DisplaystandsloneStaticPrices()\" /></td>\n");
			
document.write("<td width=\"96\"  align=\"center\" class=\"iq-bg10\">"+standsloneProdOpt+"</td>\n");
document.write("<td  width=\"72\" align=\"center\" class=\"iq-bg11\" id=\"standslonePricer"+Id+"\"></td>\n");
document.write("<td  width=\"84\" align=\"center\" class=\"iq-bg12\" id=\"standslonePrice"+Id+"\"></td>\n");
document.write("<td  class=\"DispHelp\"></td>\n");
document.write("</tr>\n");
ProdPrices += "	<input type=\"hidden\" name=\"Data["+Id+"][Price]\" value=\""+standsloneProductPrice[Id]+"\" />\n	<input type=\"hidden\" name=\"Data["+Id+"][Name]\" value=\""+standsloneProductName[Id]+"\" />";
	}
document.write("<tr><td colspan=\"5\">&nbsp;&nbsp;&nbsp;Price Total: <span id=\"standslonePriTotal\"></span></td></tr>\n");
document.write("<tr><td colspan=\"5\">&nbsp;&nbsp;&nbsp;USD Price Total: <span id=\"standslonePriPSDTotal\"></span></td></tr>\n");
document.write("</table>\n");
document.write(""+standsloneProdPrices+"\n");
document.write("</form>\n");
 }
 
function DisplaystandslonePrices()
   { 
 var standsloneTotPrice = 0;
	for(var Id in standsloneProductPrice)
	   {
		if(document.getElementById("Sel"+Id+"5").checked)
		   {
			if(standsloneProductOption[Id] == 1)
			  {
document.getElementById("standslonePricer"+Id).innerHTML = "$" + (standsloneProductPrice[Id] * document.getElementsByName("Data2["+Id+"][Qty2]")[0].value);
				standsloneTotPrice += (standsloneProductPrice[Id] * document.getElementsByName("Data2["+Id+"][Qty2]")[0].value);
	
	  			  }else if(standsloneProductOption[Id] == 2 && document.getElementsByName("Data2["+Id+"][Coded]")[0].checked)
				   {
					   
					document.getElementById("standslonePricer"+Id).innerHTML = "$" + (standsloneProductPrice[Id] + standslonePCoded[Id]);
					standsloneTotPrice += (standsloneProductPrice[Id] + standslonePCoded[Id]);
				   }else{
					document.getElementById("standslonePricer"+Id).innerHTML = "$" + standsloneProductPrice[Id];
					standsloneTotPrice += standsloneProductPrice[Id];
				   }
		}else{
				document.getElementById("standslonePricer"+Id).innerHTML = "";
			}
   }
		document.getElementById("standslonePriTotal").innerHTML = "$" + standsloneTotPrice;
}


function DisplaystandsloneStaticPrices()
	  { 
	   //alert ("hello");
		var standsloneTotPSDPrice = 0;
		for(var Id in standsloneProductPSDPrice)
		  {
			if(document.getElementById("Sel"+Id+"6").checked)
			  {
			   // alert ("Sel"+Id+"1");
				 	document.getElementById("standslonePrice"+Id).innerHTML = "$" + standsloneProductPSDPrice[Id];
					standsloneTotPSDPrice += standsloneProductPSDPrice[Id];
	  		   }else{
				document.getElementById("standslonePrice"+Id).innerHTML = "";
			}
       }
		document.getElementById("standslonePriPSDTotal").innerHTML = "$" + standsloneTotPSDPrice;
    }