//Keep track of global compatibility with (W)eb (T)wo (P)oint (O)
var WTPO_is_Compatible = true;


//Write any code to a Layer using ID
function WTPO_writeToLayer(code_string, layer_id) {
	if (document.getElementById) {

		x = document.getElementById(layer_id);
		x.innerHTML = 'Loading...';
		x.innerHTML = code_string;

	}
	else if (document.all) {

		x = document.all[layer_id];
		x.innerHTML = code_string;

	}
	else if (document.layers) {

		x = document.layers[layer_id];
		text2 = '<P CLASS="testclass">' + code_string + '</P>';
		x.document.open();
		x.document.write(text2);
		x.document.close();

	}
	else {
		WTPO_is_Compatible = false;
	}
	
}

//Hide a Layer using ID
function WTPO_HideLayer(layer_id) {

	if (document.getElementById) { document.getElementById(layer_id).style.display = 'none'; }
	else if (document.all) { document.all[layer_id].style.display = 'none'; }
	else if (document.layers) { }
	else { WTPO_is_Compatible = false; }
	
}

//Hide a Layer using ID
function WTPO_ShowLayer(layer_id) {

	if (document.getElementById) { document.getElementById(layer_id).style.display = 'block'; }
	else if (document.all) { document.all[layer_id].style.display = 'block'; }
	else if (document.layers) { }
	else { WTPO_is_Compatible = false; }
	
}

