<?
session_start();

$document = array();
$script = "";
$init = "";

require "../lib/getnpost.php";
require "../lib/config.php";
require "../lib/dbconnect.php";
require "../lib/auth.php";
require "../lib/common.php";

require "company_common.php";

function mkCompany(&$document, &$script, &$init, $cpnum) {
	$companyhtmlarray = array(
		10 => "company_10.html",	// ÇÁ·ÎÀÚÀÌ³Ê
		21 => "company_21.html",	// ¿¬Çõ
		22 => "company_22.html",	// ½ÇÀû
		31 => "company_31.html",	// »ç¾÷¿µ¿ª
		32 => "company_32.html",	// Á¶Á÷
		40 => "company_40.html",	// º¸µµÀÚ·á
		50 => "company_50.html",	// ÁöÀûÀç»ê±Ç
		60 => "company_60.html"		// ¿¬¶ôÃ³ ¹× ¾àµµ
	);

	if (!$companyhtmlarray[$cpnum]) $cpnum = 10;

	$document['companyhtml'] = "htmls/" . $companyhtmlarray[$cpnum];

	if ($cpnum == 60) {	// ¾àµµ »çÁø¿ë
		$script .= <<<EOS
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

EOS;
	}
}

## Start

mkCompany($document, $script, $init, $cpnum);

require "company_template.php";
?>
