function writeIn(index,hgt,wid,tp,lf)
{
	var layerName = getObject("message");	
	var layerNameProp = getObject1("message");
	
	if(isNav)
	{
		
		//Set clipping in Netscape
							
		layerName.clip.right = wid;
		layerName.clip.bottom = hgt;

		// position the layer
			
		layerName.top =  tp;
		layerName.left = lf;
			
		// write into the layer
		
		layerName.document.open();
		layerName.document.write(message[index]);	
		layerName.document.close();
		
		//make it visible
		
		layerName.visibility = "visible";
	}
	else 
	{	
		if(isIE)
		{
			// set height and width
			
			//alert(layerNameProp.width);
			

			layerNameProp.width = wid;
			layerNameProp.height = hgt;	
			
			// position the layer
						
			//alert(tp + "\n\n" + lf);

			layerNameProp.pixelTop = tp;
			layerNameProp.pixelLeft = lf;
			
			// write into the layer
				
			var input = message[index];

			layerName.innerHTML = input;

			//make it visible
			
			layerNameProp.visibility = "visible";				
		}
	}
}

function clearOut()
{
	var layerName = getObject("message");	
	var layerNameProp = getObject1("message");
	
	if(isNav)
	{
		//alert("Netscape");

		//hide layer
		
		layerName.visibility= "hidden";
		
		//empty contents

		layerName.document.open();
		layerName.document.write("");	
		layerName.document.close();
	}
	else 
	{	if(isIE)
		{
			//alert("IE");	
			
			//Hide Layer			
			layerNameProp.visibility = "hidden";

			//empty contents
			layerName.innerHTML = "";
		}
	}
}