function WriteLayer(ID,parentID,CopyFrom) {
	if (document.layers) {
		var oLayer;
		if(parentID){
			oLayer = eval('document.' + parentID + '.document.' + ID + '.document');
		}else{
			oLayer = document.layers[ID].document;
		}
		oLayer.open();
		oLayer.write(URL);
		oLayer.close();
	}
	else if (parseInt(navigator.appVersion)>=5&&navigator.
	appName=="Netscape") {
		//Output = document.getElementById(CopyFrom).value;
		document.getElementById(ID).innerHTML = document.getElementById(CopyFrom).value;
	}
	else if (document.all) document.all[ID].innerHTML = document.getElementById(CopyFrom).value;
}
function FillLayer(ID,parentID,Html) {
	if (document.layers) {
		var oLayer;
		if(parentID){
			oLayer = eval('document.' + parentID + '.document.' + ID + '.document');
		}else{
			oLayer = document.layers[ID].document;
		}
		oLayer.open();
		oLayer.write(Html);
		oLayer.close();
	}
	else if (parseInt(navigator.appVersion)>=5&&navigator.
	appName=="Netscape") {
		//Output = document.getElementById(CopyFrom).value;
		document.getElementById(ID).innerHTML = Html;
	}
	else if (document.all) document.all[ID].innerHTML = Html;
}
function ClearLayer(ID,parentID) {
	FillLayer(ID,parentID,'');
}
