  function getAccessories()
  {

       //Apply the tab accessories checkboxes
	   var accryForm = document.forms['accessoryForm'];
          
	   if(accryForm != null)	   
		{   
		   var fn = document.forms['itemForm'].addAccryList;
		   
		   fn.value = "";//reset the value
		   
		   for(var i=0; i< accryForm.length; i++ )
		   {
		    var e = accryForm.elements[i];
		   
		    if( e.type=="checkbox" &&  e.checked==true  )
			{
			   fn.value= fn.value +"," + e.value;
			   //alert(e.value);  
			}//end if
		   }//end for loop
	    }//	if not null   



       //Apply the right header Accessories checkboxes
	   var accryForm = document.forms['accessoryRightForm'];
          
	   if(accryForm != null)	   
		{   
		   var fn = document.forms['itemForm'].addAccryList;
		   
		   //fn.value = "";//Don't reset the value, we want to add the regular accessory form
		   
		   for(var i=0; i< accryForm.length; i++ )
		   {
		    var e = accryForm.elements[i];
		   
		    if( e.type=="checkbox" &&  e.checked==true  )
			{
			   fn.value= fn.value +"," + e.value;
			   //alert(e.value);  
			}//end if
		   }//end for loop
	    }//	if not null   


      document.forms['itemForm'].submit();
  }
////////////////////////////////////////////////////////////////
 function goToSisterItem(dropdown,url)
 {
    var myindex  = dropdown.selectedIndex;
    var SelValue = dropdown.options[myindex].value;
    if(SelValue=="")
    {
     //do nothing, it the instruction item
    }
    else
    {
	    var baseURL  = url + SelValue; 
	    //alert("url = " + baseURL );
	    top.location.href = baseURL;
    } 
    return true;

 }


////////////////////////////////////////////////////////////////
function open_new_window(url)
{
 // new_window = window.open(url,'window_name','toolbar=1,menubar=0,resizable=1,scrollbars=1,dependent=0,status=0')
    new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=0,location=0,scrollbars=0,statusbar=0,dependent=0,status=0,width=750,height=300,left=10,top=10')
}
/////////////////////////////////////////////////////////////////
function open_new_item_window(url)
{
    new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=1,location=0,scrollbars=1,statusbar=0,dependent=0,status=0,width=800,height=600,left=10,top=10')
}
