/*
Combo-Box Viewer script- Created by and © Dynamicdrive.com
Visit http://www.dynamicdrive.com/ for this script and more
This notice MUST stay intact for legal use
*/
if (document.getElementById){
	document.write('<style type="text/css">\n');
	document.write('.dropcontent{display:none;}\n');
	document.write('</style>\n');
}
function contractall(){
	if (document.getElementById){
		var inc=1; 
		while (document.getElementById("dropmsg"+inc)){
			document.getElementById("dropmsg"+inc).style.display="none";
			inc++;
		}
	}
}
function expandone(){
	if (document.getElementById){
		var selectedItem=document.dropmsgform.dropmsgoption.selectedIndex;
		contractall();
		if(document.dropmsgform.dropmsgoption[selectedItem].value!="") {
			document.getElementById("dropmsg"+selectedItem).style.display="block";
		}
	}
}
function contractallDivid(divid){
	if (document.getElementById){
		var inc=1;
		while (document.getElementById("dropmsgs"+divid+inc)){
			document.getElementById("dropmsgs"+divid+inc).style.display="none";
			inc++;
		}
	}
}
function expandoneForm(form, divid){
	if (document.getElementById){
		var selectedItem=form.dropmsgoption.selectedIndex;
		contractallDivid(divid)
		if(form.dropmsgoption[selectedItem].value!="") {
			document.getElementById("dropmsgs"+divid+selectedItem).style.display="block";
		}
	}
}

if (window.addEventListener){
	window.addEventListener("load", expandone, false);
} else if (window.attachEvent){
	window.attachEvent("onload", expandone);
}
