// function to open new window.
function newWin() {
window.open("","order","width=500,height=400,resizable=yes,status=no,toolbar=no,location=no,directory=no,menubar=no,scrollbars=yes");
                }

function DisplayLabel (menuItem, iditem)
{
	var fillcode='<br><p class="RBitemdesc"><b>Item Description</b></p>'
	fillcode=fillcode + '<P class="RBitemdesc"><b>' + jjdesc[iditem].name + '</b><br><br>'
	fillcode=fillcode + jjdesc[iditem].desc + '<br><br>'
	if (jjdesc[iditem].line1 != "") {
		fillcode=fillcode + jjdesc[iditem].line1 + '<br />' }
	if (jjdesc[iditem].line2 != "") {
		fillcode=fillcode + jjdesc[iditem].line2 + '<br />' }
	if (jjdesc[iditem].line3 != "") {
		fillcode=fillcode + jjdesc[iditem].line3 + '<br />' }
	if (jjdesc[iditem].line4 != "") {
		fillcode=fillcode + jjdesc[iditem].line4 + '<br />' }
	if (jjdesc[iditem].line5 != "") {
		fillcode=fillcode + jjdesc[iditem].line5 + '<br />' }
	fillcode=fillcode + '<br><b>Click item get more details or to order.</b></p></font>'

	itemdiv.innerHTML=fillcode;
}

function DisplaySteps (menuItem, iditem)
{
	var fillcode='<br><p class="RBitemdesc"><b>Web Test Steps</b></p>'
	fillcode=fillcode + '<p class="RBitemdesc"><i>Step 1</i><br>Click Previous Page or Next Page OR select a page number from the drop-down box.<br><br><i>Step 2</i><br>As you move your mouse over each item, its description will appear here.<br><br><i>Step 3</i><br>To purchase an item, click on its image.<br><br><i>Step 4</i><br>Choose your size and color. Click on Add To Shopping Bag.</p>'
	
	itemdiv.innerHTML=fillcode;
}

function ResetLabel (menuItem)
{
fillcode = "<img border='0' src='images/steps.gif' width='137' height='400'>"
        itemdiv.innerHTML=fillcode;
}


var jjdesc = new Array();

function makejjdesc(name, desc, line1, line2, line3, line4, line5)
{
	this.name = name;
	this.desc = desc;
	if ( line1 == null )
   {
   	this.line1 = "";
   }
   else
   {
		this.line1 = line1;
   }

	if ( line2 == null )
   {
   	this.line2 = "";
   }
   else
   {
		this.line2 = line2;
   }

	if ( line3 == null )
   {
   	this.line3 = "";
   }
   else
   {
		this.line3 = line3;
   }

	if ( line4 == null )
   {
   	this.line4 = "";
   }
   else
   {
		this.line4 = line4;
   }

	if ( line5 == null )
   {
   	this.line5 = "";
   }
   else
   {
		this.line5 = line5;
   }
}


function changePage()
 {
  new_page = document.selectionForm.level1.options[document.selectionForm.level1.selectedIndex].value
  document.location = new_page;
 }
