function showHideElement(value,divShowHide) { 		// SHOWS/HIDES "OTHER" TEXT BOX INPUT
	element = top.document.getElementById(divShowHide);
	if("other" == value || "Other" == value || "true" == value){
		element.style.display = 'block';
	} else {
		element.style.display = 'none';
	}
}

function replaceInnerHTML(replaceDIV,replaceHTML) { 	// SWAPS HTML IN GIVEN DIV
	changer = top.document.getElementById(replaceDIV);
	changer.innerHTML = replaceHTML;
}

function createNumberSelects(number,element){
	selectOutput = '';
	number = number.substring(0,1);
	
	for(i=1;i<=number;i++){
		selectOutput += '<select class="autoWide" name="Color-' + i + '">\n';
		selectOutput += '	<option>490nm</option>\n';
		selectOutput += '	<option>520nm</option>\n';
		selectOutput += '	<option>540nm</option>\n';
		selectOutput += '	<option>560nm</option>\n';
		selectOutput += '	<option>580nm</option>\n';
		selectOutput += '	<option>600nm</option>\n';
		selectOutput += '	<option>620nm</option>\n';
		selectOutput += '</select>\n\n';
		if(6==number && 3 ==i)
			selectOutput += '<br/>\n';
	}
	replaceInnerHTML(element,selectOutput);
}

function showSpecific(containerDIV,showDIV){ //hides all children of containerDIV other than showDIV
	for(i=0; i<document.getElementById(containerDIV).childNodes.length; ++i) {
		node1 = document.getElementById(containerDIV).childNodes.item(i);
		if (node1.nodeName == "DIV") {
			if(node1.id == showDIV){
				node1.style.display = 'block';
			} else{
				node1.style.display = 'none';
			}
		}
	}
}

function menuAccordian(){
	menuOpeners = document.getElementsByClassName("here");
	for(i=0;i<menuOpeners.length;i++){
		effect.toggle(menuOpener[i],'slide');
	}
}

	/*addEvent(window, "load", menuAccordian);*/
	
function changePage(newLoc)
 {
	document.location.href = newLoc;
  /* nextPage = newLoc.options[newLoc.selectedIndex].value
		
   if (nextPage != "")
   {
      document.location.href = nextPage
   }*/
 }
