// JavaScript Document
//Startup vars:
NewWindow = false;
//Functions:
function popup(url,name,fullscreen,win_width,win_height) {
	if(fullscreen){
		win_height = screen.height-65;
		win_width = screen.width-10;
		pos_horizon = 0;
		pos_vertical = 0;
	}else{
		pos_horizon = (((screen.width-10)/2)-(win_width/2));
		pos_vertical = (((screen.height-65)/2)-(win_height/2));
	}
	window.open(url,name,"width="+win_width+",height="+win_height+",top="+pos_vertical+",left="+pos_horizon);
}
function get_window_object_by_name(nameStr){
	var result = window.open('goback.htm', nameStr);
	return result;
}
function popupWindow(win){
	var winprops = new String('width='+win[2]+',outerWidth='+win[2]+',height='+win[3]+',outerHeight='+win[3]+',top='+win[6]+',left='+win[5]+',toolbar='+win[7]+',location='+win[9]+',scrollbars='+win[10]+',status='+win[8]+',resizable='+win[11]);
	if (!NewWindow) {
		NewWindow=window.open(win[0],win[1],winprops);
	} else {
		if(NewWindow.closed){
			NewWindow=window.open(win[0],win[1],winprops);
		}
	}
	NewWindow.focus();
}
function get_Location(){
	return(window.location);
}