<!--
/*
 * $Id: common.js,v 1.1 2006/04/26 03:38:45 naoek Exp $
 *
 * Copyright (c) 2003 by NYTG Corp.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of NYTG Corp("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with NYTG Corp.
 */

function openFullScreenWindow(url, target) {
  var win = window.open(url, target,
    "menubar=no, resizable=yes, scrollbar=yes"
    + ", left=0, top=0, width="
    + screen.availWidth
    + ", height="
    + screen.availHeight
  );

  // this call may move the window to the front
  win.focus();
}

function getCurrentDate() {
  var date = new Date();
  var year = date.getFullYear();
  var month = date.getMonth() + 1;
  var day = date.getDate();
  if (month < 10) month = "0" + month;
  if (day < 10) day = "0" + day;
  return year + "-" + month + "-" + day;
}

/*
 * switch alert-messages for debuging! 0:off 1:on
 * usage: if (debugObject.msg > 0) alert("...");
 */
var debugObject = new Object();
debugObject.msg = 0;

//-->