// JavaScript Document
function changeText(which_product)
{
	if(which_product == "")
		return;
	
	var imageURL = "";
	var text = "";
	switch(which_product)
	{
		case "electrode": imageURL="ez.png"; text="Electrodes"; break;
		case "pencil": imageURL="pencil.png"; text="Electrosurgical Pencils"; break;
		case "return": imageURL="pad.png"; text="Return Electrodes"; break;
		case "generator": imageURL="generator.png"; text="Electrosurgical Generator"; break;
		case "laparoscopic": imageURL="laparoscopics.png"; text="Laparoscopics"; break;
		case "smoke": imageURL="smoke.png"; text="Smoke Evacuation"; break;
		case "suction": imageURL="suct.png"; text="Suction Coagulators"; break;
		case "bipolar": imageURL="bipolar.png"; text="Bipolar Forceps"; break;
		case "lletz": imageURL="lletz.png"; text="Lletz Loops"; break;
	}
	
	// change text
	var div = document.getElementById("product_text")
	div.innerHTML = "Write a Review - " + text;
	// change photo
	var img = document.getElementById("product_image")
	img.src = "images/prod_cat/" + imageURL
	
	return true;
}

function changeFromSelect(id)
{
	var imageURL = "";
	var text = "";
	switch(id)
	{
		case 0: imageURL="ez.png"; text="Electrodes"; break;
		case 1: imageURL="pencil.png"; text="Electrosurgical Pencils"; break;
		case 2: imageURL="pad.png"; text="Return Electrodes"; break;
		case 3: imageURL="generator.png"; text="Electrosurgical Generator"; break;
		case 4: imageURL="laparoscopics.png"; text="Laparoscopics"; break;
		case 5: imageURL="smoke.png"; text="Smoke Evacuation"; break;
		case 6: imageURL="suct.png"; text="Suction Coagulators"; break;
		case 7: imageURL="bipolar.png"; text="Bipolar Forceps"; break;
		case 8: imageURL="lletz.png"; text="Lletz Loops"; break;
	}
	
	// change text
	var div = document.getElementById("product_text")
	div.innerHTML = "Write a Review - " + text;
	// change photo
	var img = document.getElementById("product_image")
	img.src = "images/prod_cat/" + imageURL
	
	return true;
}
