// JavaScript Document

	function write(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 read(id)
		{
			if (document.getElementById)
			{
				x = document.getElementById(id);
				text = x.innerHTML;
			}
			else if (document.all)
			{
				x = document.all[id];
				text = x.innerHTML;
			}
			else if (document.layers)
			{
				x = document.layers[id];
				x.document.open();
				text = x.document.innerHTML;
				x.document.close();
			}
			return text;
		}
		
		function clear(to){
			write('',to);	
		}
		
		function copy(from,to){
			write(read(from),to);
		}

		function fill(priv){
			window.frames['footerFrame'].location=priv;

			var footerContent = document.getElementById('footerContent');
			
			if(read('footerPoll')!=priv || footerContent.className=="hide"){
				footerContent.className="display";	
			}else{
				footerContent.className="hide";	
			}

			write(priv,'footerPoll');
			
		}
		function fill2(){
			var xxxx =  document.getElementById('footerFrame').contentWindow.document.body.innerHTML;
			write(xxxx,'footerContent');
		}
		
		
