function setTitle(txt)	{
	var newTitle = document.title = txt;
}

function resizeWindow(fullscreen, w, h){
	
	var newX = (screen.width / 2) - (w / 2);
	var newY = (screen.height / 2) - (h / 2);
	
	window.moveTo(newX, newY);
	window.resizeTo(w, h);
}

function launchFullscreen(){
	
	var newW = screen.availWidth;
	var newH = screen.availHeight;
	
	moveTo(0, 0);
	resizeTo(newW, newH);
} 

function redirect(url, delay){
	if(delay > 0) {
		setTimeout("window.location='"+ url +"'", delay);
	}else{
		window.location = url;
	}
}

function setBodyColor(color){
	var newColor = document.getElementsByTagName('body')[0].style.backgroundColor = color;
}

function popWindow(url, w, h) {
		
	
		qid = new Date();
		qid = qid.getSeconds()+"_"+qid.getMinutes()+"_"+qid.getHours();
		
		newWidth = w;
		newHeight = h;
		
		var settings = "toolbar=no";
			settings += ",location=no";
			settings += ",directories=no";
			settings += ",status=no";
			settings += ",menubar=no";
			settings += ",scrollbars=no";
			settings += ",resizable=0";
			settings += ",top=0";
			settings += ",left=0";
			settings += ",width=" + w;
			settings += ",height=" + h;

	window.open(url, qid, settings);
	
}


						
						
