 
 function openCafe(funcArea){
	 
	 var paramFA = "";
	 
	 if (funcArea==null || funcArea.length!=3) {
		 paramFA = "";
	 } else {
		 paramFA = "?fa="+funcArea;
	 }
	 
	  var ht = screen.height;
	  var wdth = screen.width;
	  var newWidth = 880;
	  var newHeight = 680;
	  var lft = (wdth / 2) - (newWidth / 2);
	  var tp = (ht / 2) - (newHeight / 2)-30;
	  var w = window.open ('/cafe/cafe.jsp'+paramFA, "tjcafe", "location=no,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,left="+ lft + ",top="+ tp +",width="+ newWidth  +",height="+ newHeight);
  }//

  function resetCafeWindow(){
	  
	  var browser = getBrowser();
	  if (browser==null) {
	  	window.resizeTo(880,680);
	  }
	  else if (browser=="chrome") {
	  	window.resizeTo(890,750);
	  }
	  else if (browser=="firefox") {
	  	window.resizeTo(890,770);
	  }
	  
  }//
  
  
  function getBrowser() {
	var browser = navigator.userAgent;
	
	if (browser.indexOf("Chrome")>0)  {
		return "chrome";
	}
	else if (browser.indexOf("Firefox")>0)  {
		return "firefox";
	}
	
	return null;
  }
