function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function closeWindow() {
	window.close();
}

function reloadWindow() {
	window.location.reload();
}

function reloadParent() {
	window.opener.location.reload();
}

function redirectParent(url) {
	window.opener.location= url;
}

function fullScreen(url){
    self.moveTo(0,0);
    self.resizeTo(screen.availWidth,screen.availHeight);
    window.location.href=url;    
}
