// JavaScript Document
var xmlHttp
function showOrderBook(str)
	{
	xmlHttp = GetXmlHttpObject()
	var str1 = str.substring(0,str.indexOf('.'));
	var str2 = str.substring(str.indexOf('.')+1,str.length);
	var url  = "/public/fs/getSectionItems.jsp?section=" + str1 + "&sequence=" + str2;
	xmlHttp.onreadystatechange = stateChanged
	xmlHttp.open("Get",url,true)
	xmlHttp.send(null)
	}
	
function stateChanged()
	{
	if(xmlHttp.readyState == 4 || xmlHttp.readyState == "complete")
		{
		document.getElementById("txtHint").innerHTML = xmlHttp.responseText
		document.getElementById("nameBalance").value= xmlHttp.responseText
		document.getElementById("txtHint1").innerHTML = "C. Review Item Information:";
		document.getElementById("nameBalance1").value = "";
		}
	}

	
//fuction showSections()
//	{
//	var sel2 =  document.selectItems.itemNum;

	//build a list of options for the first choice
//	sel2.options[0] = new Option('Toronto','Toronto');
//	sel2.options[1] = new Option('Montreal', 'Montreal');
//	sel2.options[2] = new Option('Vancouver', 'Vancouver');
//	}

function showItem(str)
	{
	xmlHttp = GetXmlHttpObject()
	
	var url  = "/public/fs/getItemInfo.jsp?itemNum=" + str
	xmlHttp.onreadystatechange = stateChanged1
	xmlHttp.open("Get",url,true)
	xmlHttp.send(null)
	}
	
function stateChanged1()
	{
	if(xmlHttp.readyState == 4 || xmlHttp.readyState == "complete")
		{
		document.getElementById("txtHint1").innerHTML = xmlHttp.responseText
		document.getElementById("nameBalance1").value= xmlHttp.responseText
		}
	}
function GetXmlHttpObject()
	{
	var objXMLHttp = null
	if(window.XMLHttpRequest)
		{
		objXMLHttp = new XMLHttpRequest()
		}
	else
		{
		if(window.ActiveXObject)
			{
			objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
			}
		}
	return objXMLHttp
	}
	
