function fullscreen() {
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight);
}

function upscalewindow(url,winName,popupwidth,popupheight) {
	var new_window = window.open(url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + popupwidth + ',height=' + popupheight);
}	

function popup_resize(popupwidth,popupheight) {
	/* When calling this function supply the width and height of the popup */
		var horizontal = ((screen.width / 2) - (popupwidth / 2));
		var vertical = ((screen.height / 2) - (popupheight / 2));
		window.moveTo(horizontal,vertical);
}