/* %~%@ < 1.000 > @%~% */
/* %~%# < 12/03/2004 > #%~% */
/* %~%! < cart > !%~% */
 function UpdateProductID(theform) {
	rootpID=theform.rootpID.value;
	itemcolor="";
	if (theform.itemcolor){
		itemcolor="-" + theform.itemcolor.value;
	}
	itemsize="";
	if (theform.itemsize){
		itemsize="-" + theform.itemsize.value;
	}
	character="";
	myimg="";
	if (theform.character){
		character="-" + theform.character.value;
		myimg="<img src='/images/brigade/mini/" + theform.character.value + ".gif' border='0'>"
	}
	myItemNo=rootpID + itemcolor + itemsize + character
	myshow="Item# " + myItemNo

	//Update form with new product ID
	theform.pID.value=myItemNo;

	if (document.getElementById) {
			document.getElementById("divTest").contents = myshow;
			document.getElementById("divTest").innerHTML = myshow;
			document.getElementById("divmini").innerHTML = myimg;
	 }
	if (document.all) {
			document.all["divTest"].contents = myshow;
			document.all["divTest"].innerHTML = myshow;
			document.all["divmini"].innerHTML = myimg;
	 }
	if (document.layers) { 
			document.layers["divTest"].contents = myshow;
			var d = document.layers["divTest"]; 
			d.document.open();
			d.document.writeln(myshow);
			d.document.close();
			var c = document.layers["divmini"]; 
			c.document.open();
			c.document.writeln(myimg);
			c.document.close();
	}
	return true;
}
