function newWindow(mypage,myname,left,top,scr,menu,tool){
	if(left == null || left == "") left = 0;
	if(top == null || top == "") top = 0;
	winl = screen.width-left*2-10;
	wint = screen.height-top*2-10;
	if(menu == "yes" || menu =="1")
	   wint = wint - 45;
	if(tool == "yes" || tool =="1")
	   wint = wint - 45;
	winprops = "height=" + wint  + ",width=" + winl + ",top=" + top +",left="+left;
	winprops = winprops + ",scrollbars="+scr+",menubar="+menu+",toolbar="+tool+",resizable,border=no";
	var win = self.window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function redirect(URL)
 { 
  window.location = URL;
 }

