function writit(text,id){
	
	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
		
	}
	else if (document.all)
	{
		x = document.all[id];
		x.innerHTML = text;
	}
	else if (document.layers)
	{
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}



function moveFromPageToPage(id1,id2){
	document.getElementById("selectedPage").value =id2;
	if (document.getElementById){
		document.getElementById(id1).style.display ='none';
		document.getElementById(id2).style.display ='block';
	}
	else if (document.all){
		document.all[id1].style.display = "none";
		document.all[id2].style.display = "block";
	}
	else if (document.layers){
		x = document.layers[id1].display = "none";
		x = document.layers[id2].display = "block";
	}
}


function toggleDiv(id){
	if (document.getElementById){
		if (document.getElementById(id).style.display =='block'){
			hideDiv(id);
		}else{
			showDiv(id);
		}
	}
	else if (document.all){
		if (document.all[id].style.display == "block"){
			hideDiv(id);
		}else{
			showDiv(id);
		}
	}
	else if (document.layers){
		if (document.layers[id].display == "block"){
			hideDiv(id);
		}else{
			showDiv(id);
		}
	}
		
}

function showDiv(id){
	if (document.getElementById){
		document.getElementById(id).style.display ='block';
		
	}
	else if (document.all){
		document.all[id].style.display = "block";
	}
	else if (document.layers){
		x = document.layers[id].display = "block";
	}
}


function hideDiv(id){
	if (document.getElementById){
		document.getElementById(id).style.display ='none';
	
	}
	else if (document.all){
		document.all[id].style.display = "none";
		
	}
	else if (document.layers){
		x = document.layers[id].display = "none";
	}
}



