// JS Information ======================================================
// Site URL:	http://www.shokusan-j.co.jp/
// File name:	popup.js
// Summary:		Another window is opened
// Created:		2009-09-01
// Last update:	2009-09-01
// Author:		Sadaoka(admin)
// Copyright:	(C) 2009 dabhand Inc.
//======================================================================

function popupCenter (url, name, width, height) {
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var options = "fullscreen=no,location=yes,status=yes,scrollbars=no,directories=no,menubar=no,resizable=no,toolbar=no,titlebar=no,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height;
myWindow = window.open(url, name, options);
if (myWindow.focus!=null) {
myWindow.focus();
}
}
