
if (document.getElementById){
  document.write('<style type="text/css">\n')
  document.write('.msgcontent{display:none;}\n')
  document.write('</style>\n')
}

function contractall(){
	if (document.getElementById){
		var inc=0
		while (document.getElementById("msg"+inc)){
			document.getElementById("msg"+inc).style.display="none"
			inc++
		}
	}
}

function expandmsg(){
	if (document.getElementById){
		var selectedItem=document.contact.uxHolidayStatus.selectedIndex
		contractall()
		document.getElementById("msg"+selectedItem).style.display="block"
	}
}

function refreshFields() {
	var strURL = "contact.aspx" +
		"?TY=" + document.contact.uxHolidayStatus[document.contact.uxHolidayStatus.selectedIndex].value +
		"&galleta=set"; 
		
	document.location.href=strURL;
}

/*if (window.addEventListener)
	window.addEventListener("load", expandmsg, false)
else if (window.attachEvent)
	window.attachEvent("onload", expandmsg)
*/