// JavaScript Document
function displaygrid(pageno,type)
{
	remoteCall("newswebdisplay.php?page="+pageno,"file=main&type="+type,"display");
}

function display()
{
	document.getElementById('mydiv').innerHTML=sResponse;
}

function LTrim( value ) 
{
	var re = /\s*((\S+\s*)*)/;
	return value.replace(re, "$1");
}

function RTrim( value ) 
{
	var re = /((\s*\S+)*)\s*/;
	return value.replace(re, "$1"); 	
}

function trim( value ) 
{	
	return LTrim(RTrim(value));	
}
