//this switches expand collapse icons
function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

//show OR hide funtion depends on if element is shown or hidden
function openForm(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		if(document.getElementById(id).style.display == 'none'){
			document.getElementById(id).style.display = 'block'
			document.getElementById(id + '_Title1').style.backgroundColor = '#8FC0DF';
			document.getElementById(id + '_Title2').style.backgroundColor = '#8FC0DF';
		}else{
			document.getElementById(id).style.display = 'none';
			document.getElementById(id + '_Title1').style.backgroundColor = '#E3F4FF';
			document.getElementById(id + '_Title2').style.backgroundColor = '#E3F4FF';
		}
	} else { 
		if (document.layers) {	
			if(document.id.display == 'none'){
				document.id.display = 'block';
				document.getElementById(id + '_Title1').style.backgroundColor = '#8FC0DF';
				document.getElementById(id + '_Title2').style.backgroundColor = '#8FC0DF';
			}else{
				document.id.display = 'none';
				document.getElementById(id + '_Title1').style.backgroundColor = '#E3F4FF';
				document.getElementById(id + '_Title2').style.backgroundColor = '#E3F4FF';
			}					
		} else {
			if(document.all.id.style.display == 'none'){
				document.all.id.style.display = 'block';
				document.getElementById(id + '_Title1').style.backgroundColor = '#8FC0DF';
				document.getElementById(id + '_Title2').style.backgroundColor = '#8FC0DF';
			}else{
				document.all.id.style.display = 'none';
				document.getElementById(id + '_Title1').style.backgroundColor = '#E3F4FF';
				document.getElementById(id + '_Title2').style.backgroundColor = '#E3F4FF';
			}
		}
	}
	
			
}
