function helloWorld(){
	alert("hi");
	}
////////////////////////-----------REMOVE WHITE SPACES FUNCTION -------------------

function trim(str, chars) {
    return ltrim(rtrim(str, chars), chars);
}

function ltrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}

function rtrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
////////////////////////// Utility Functions //////////////////
function getHeight() {
	var document_body = Screen.getBody();
	var innerHeight =(defined(self.innerHeight)&&!isNaN(self.innerHeight))?self.innerHeight:0;
	if (!document.compatMode || document.compatMode=="CSS1Compat") {
		var topMargin = parseInt(CSS.get(document_body,'marginTop'),10) || 0;
		var bottomMargin = parseInt(CSS.get(document_body,'marginBottom'), 10) || 0;
		return Math.max(document_body.offsetHeight + topMargin + bottomMargin,document.documentElement.clientHeight,document.documentElement.scrollHeight, Screen.zero(self.innerHeight));
		}
	return Math.max(document_body.scrollHeight, document_body.clientHeight,Screen.zero(self.innerHeight));
	}

function showdeadcenterdiv() {
// First, determine how much the visitor has scrolled

var scrolledX, scrolledY;
if( self.pageYoffset ) {
scrolledX = self.pageXoffset;
scrolledY = self.pageYoffset;
} else if( document.documentElement && document.documentElement.scrollTop ) {
scrolledX = document.documentElement.scrollLeft;
scrolledY = document.documentElement.scrollTop;
} else if( document.body ) {
scrolledX = document.body.scrollLeft;
scrolledY = document.body.scrollTop;
}
//alert(scrolledX);
//alert(scrolledY);
// Next, determine the coordinates of the center of browser's window

var centerX, centerY;
if( self.innerHeight ) {
centerX = self.innerWidth;
centerY = self.innerHeight;
} else if( document.documentElement && document.documentElement.clientHeight ) {
centerX = document.documentElement.clientWidth;
centerY = document.documentElement.clientHeight;
} else if( document.body ) {
centerX = document.body.clientWidth;
centerY = document.body.clientHeight;
}
//alert(centerX);
//alert(centerY);
// Xwidth is the width of the div, Yheight is the height of the
// div passed as arguments to the function:
var Xwidth=$('preloading').offsetWidth;
var Yheight=$('preloading').offsetHeight;
//alert(Xwidth);
//alert(Yheight);
//Xwidth=800;
//Xeight=800;
var leftoffset = scrolledX + (centerX - Xwidth) / 2;
var topoffset = scrolledY + (centerY - Yheight) / 2;
// The initial width and height of the div can be set in the
// style sheet with display:none; divid is passed as an argument to // the function
var o=document.getElementById('preloading');
var r=o.style;
r.position='absolute';
r.top =  topoffset+"px";
r.left = leftoffset+"px";
/*r.display = "block";*/
$('preloading').style.visibility=	"visible";
Effect.Appear('preloading');
} 



