// -*- coding: UTF-8 -*-
// contact_vc_data.js - JavaScript
// Copyright 2008 Sofrosune. All rights reserved.
// Author: Sofrosune; www.sofrosune.net
// No part of this program may be reproduced or transmitted in any form or 
// by any means without permission from the author, Sofrosune.
//
// Date: September 18, 2008
// Version: 1.00; September 18, 2008

// Usage:
/**
<head>
	<script type="text/javascript" src="../scripts/jquery.js"></script>
	<script type="text/javascript" src="../scripts/contact_form.js"></script>
	<script type="text/javascript" src="../scripts/contact_vc.js"></script>
	<script type="text/javascript" src="../scripts/contact_vc_data.js"></script>
</head>
*/

// Constants:

// required  params
gCF_REQUIRED = [
	"PARAM_USER_INFO[realname]",
	"PARAM_USER_INFO[furikana]",
	"PARAM_USER_INFO[email]",
	"PARAM_USER_INFO[company]",
//	"PARAM_USER_INFO[section]",
	"PARAM_USER_INFO[postcode]",
	"PARAM_USER_INFO[address]",
//	"PARAM_USER_INFO[building]",
	"PARAM_USER_INFO[phone]",
//	"PARAM_USER_INFO[fax]",
//	"PARAM_REPLY",
	null
];

//gCF_REQUIRED_RADIO = [ ];
//gCF_REQUIRED_CHECK = [];

// dictionary of params
gCF_PARAMS = {
	"PARAM_USER_INFO[realname]" : "氏名",
	"PARAM_USER_INFO[furikana]" : "ふりがな",
	"PARAM_USER_INFO[email]" : "メールアドレス",
	"PARAM_USER_INFO[company]" : "大学・会社",
	"PARAM_USER_INFO[section]" : "所属・役職",
	"PARAM_USER_INFO[postcode]" : "郵便番号",
	"PARAM_USER_INFO[address]" : "住所",
	"PARAM_USER_INFO[building]" : "建物名",
	"PARAM_USER_INFO[phone]" : "電話番号",
	"PARAM_USER_INFO[fax]" : "FAX番号",
	"PARAM_REPLY" : "連絡方法",
//	"PARAM_REQUEST" : "資料請求",
//	"PARAM_CATALOG" : "資料名",
	"PARAM_MEMO" : "通信欄",
	'end_of_list' : null
};

// error messages
kCF_LABEL_TITLE = "記入内容に誤りがあります";
kCF_LABEL_CLOSE = "閉じる";

kCF_ERR_EMPTY = "\$\$\$name\$\$\$欄は必須項目です。";
kCF_ERR_NO_CHOICE = "\$\$\$name\$\$\$欄は必ず選択してください。";
kCF_ERR_ILLEGAL = "\$\$\$name\$\$\$に誤りがあります。";
kCF_ERR_NO_SELECTION = "少なくともひとつの項目を選択してください。";

// end of javascript

