// JavaScript Document
function changePrice()
{
  var shipping = 0;
  var cost = 0;
  var total = 0;
  var image_name;
  image_name = document.pricelist.imageName.value;
  var size_picked;
  size_picked = document.pricelist.size.value;

  var frame_picked;
  frame_picked = document.pricelist.frame.value;

  var image_type;
  image_type = document.pricelist.imagetype.value; 
  
  var image_type;
  image_type = document.pricelist.imagetype.value; 
  if (image_type == "Photo")
     {real_type = "Watercolor Paper"; }
     else { real_type = "Canvas"; }

  if (image_type == "Photo")
  {
	  if (size_picked == "12x36")
	  {
		if (frame_picked == "A")
		{	   
			cost=795;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 50;			
		}
		else if (frame_picked == "B")
		{
			cost=895;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 50;
		}
		else
		{
			cost = 450;
			shipping = 15;
			document.pricelist.subtotal.value = "$" + cost;
			document.pricelist.price.value=cost;
			document.pricelist.product.value = image_name + " Photograph Only";
		}
	   }  
	  else  if (size_picked == "18x56")
	  {
		if (frame_picked == "A")
		{
			cost=1895;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 100;
		}
		else if (frame_picked == "B")
		{
			cost=2195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 100;
		}
		else
		{
			cost = 1250;
			shipping = 15;
			document.pricelist.subtotal.value = "$" + cost;
			document.pricelist.price.value=cost;
			document.pricelist.product.value = image_name + " Photograph Only";
		}		 
	  }
	  else  if (size_picked == "23x70")
	  {
		if (frame_picked == "A")
		{
			cost=3195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 150;
		}
		else if (frame_picked == "B")
		{
			cost=3495;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 150;
		}
		else
		{
			cost = 1950;
			shipping = 15;
	    	document.pricelist.subtotal.value = "$" + cost;
		}	 
	  }
	  else  if (size_picked == "28x85")
	  {
		if (frame_picked == "A")
		{
			cost=4195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 200;
		}
		else if (frame_picked == "B")
		{
			cost=4495;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 200;
		}
		else
		{
			cost = 2750;
			shipping = 15;
	    	document.pricelist.subtotal.value = "$" + cost;
		}		 
	  }	  
	  else  if (size_picked == "33x100")
	  {
		if (frame_picked == "A")
		{
			cost=6195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 250;
		}
		else if (frame_picked == "B")
		{
			cost=6695;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 250;
		}
		else
		{
			cost = 3750;
			shipping = 15;
	    	document.pricelist.subtotal.value = "$" + cost;
		}		 
	  }	  
  }
  if (image_type == "Giclee")
  {
	  if (size_picked == "12x36")
	  {
		 if (frame_picked == "GalleryWrap")
		{	   
			cost=650;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 50;			
		}
		else if (frame_picked == "A")
		{	   
			cost=795;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 50;			
		}
		else if (frame_picked == "B")
		{
			cost=895;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 50;
		}
		else
		{
			cost = 450;
			shipping = 15;
			document.pricelist.subtotal.value = "$" + cost;
			document.pricelist.price.value=cost;
			document.pricelist.product.value = image_name + " Photograph Only";
		}
	   }  
	  else  if (size_picked == "18x56")
	  {
	    if (frame_picked == "GalleryWrap")
		{	   
			cost=1550;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 100;			
		}
		else if (frame_picked == "A")
		{
			cost=1895;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 100;
		}
		else if (frame_picked == "B")
		{
			cost=2195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 100;
		}
		else
		{
			cost = 1250;
			shipping = 15;
			document.pricelist.subtotal.value = "$" + cost;
			document.pricelist.price.value=cost;
			document.pricelist.product.value = image_name + " Photograph Only";
		}		 
	  }
	  else  if (size_picked == "23x70")
	  {
		 if (frame_picked == "GalleryWrap")
		{	   
			cost=2250;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 150;			
		}
		else if (frame_picked == "A")
		{
			cost=3195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 150;
		}
		else if (frame_picked == "B")
		{
			cost=3495;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 150;
		}
		else
		{
			cost = 1950;
			shipping = 15;
	    	document.pricelist.subtotal.value = "$" + cost;
		}	 
	  }
	  else  if (size_picked == "28x85")
	  {
		 if (frame_picked == "GalleryWrap")
		{	   
			cost=3150;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 200;			
		}
		else if (frame_picked == "A")
		{
			cost=4195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 200;
		}
		else if (frame_picked == "B")
		{
			cost=4495;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 200;
		}
		else
		{
			cost = 2750;
			shipping = 15;
	    	document.pricelist.subtotal.value = "$" + cost;
		}		 
	  }	  
	  else  if (size_picked == "33x100")
	  {
		 if (frame_picked == "GalleryWrap")
		{	   
			cost=4250;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 250;			
		}
		else if (frame_picked == "A")
		{
			cost=6195;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 250;
		}
		else if (frame_picked == "B")
		{
			cost=6695;
			document.pricelist.subtotal.value = "$" + cost;  
			shipping = 250;
		}
		else
		{
			cost = 3750;
			shipping = 15;
	    	document.pricelist.subtotal.value = "$" + cost;
		}		 
	 }	   
  }
total = cost + shipping;
document.pricelist.subtotal.value="$" + cost;
document.pricelist.shipping.value="$" + shipping;
document.pricelist.total.value="$" + total;
document.pricelist.price.value=total;
if (frame_picked == "Unframed") 
	{ 
		document.pricelist.product.value = image_name + ", " + size_picked + ", " +  real_type +  "," + " Image Only";
	}
else
	{
		document.pricelist.product.value = image_name + ", " + size_picked + ", "  + real_type +  ", "  + frame_picked +  " Frame";
	}
}