function openwindow(url_address,from,window_width,window_height) {
	if (screen.availHeight > 600) {
		window_height = 700
		window_width = 500
		sx = (screen.availWidth - window_width) / 2;
		sy = (screen.availHeight - window_height) / 2;
		params = "width="+window_width+",height="+window_height+",Left="+sx+",Top="+sy+",screenX="+sx+",screenY="+sy+",scrollbars=no,status=no,resizable=no,menubar=no,location=no";
	} else {
		sx = (screen.availWidth - window_width) / 2;
		sy = (screen.availHeight - window_height) / 2;
		params = "width="+window_width+",height="+window_height+",Left="+sx+",Top="+sy+",screenX="+sx+",screenY="+sy+",scrollbars,status=no,resizable=no,menubar=no,location=no";
	}	
 
	
  nw = window.open(url_address, "mypopup2", params);
	
	if (from == "flash") {
//		return false;
	}

  nw.focus();
}

function openFullWindow(url_address,window_width,window_height) {
  sx = (screen.availWidth - window_width) / 2;
  sy = (screen.availHeight - window_height) / 2;
	params = "width="+window_width+",height="+window_height+",Left="+sx+",Top="+sy+",screenX="+sx+",screenY="+sy+",scrollbars,status=no,resizable=no,menubar=no,location=no";
  nw = window.open(url_address, "mypopup", 'type=fullWindow, fullscreen=yes, resize=no, left=0, top=0, toolbar=0, menubar=0, scrollbars=0');
  nw.focus();
}
