KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/conceptlabs1/viateq/demo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/conceptlabs1/viateq/demo/dol_style_chinese_traditional.js
/***************************************************
DATE:		June 21, 2017
AUTHOR:		VIATEQ CORPORATION / Dennis R. Dunston
DESCRIPTION:	This Javascript helps to resolve form inputs and menu behavior.
***************************************************/
var str_html = "";
/*************************

*************************/
function check_date_required(id) {
var d = new Date();
var n 	= d.getMonth()+1+"/"+d.getDate()+"/"+d.getFullYear();
document.getElementById(id).setAttribute('value',n);
return true;
} 
/*************************

*************************/
function noNumbers(e) {
keynum = e.which;
alert(keynum);
if (keynum == 13)
	document.getElementById("Address1").focus();
}
/*************************
Sleep - This functions was created for GoogleChrome which does not respond the checkbox quickly.
*************************/
function sleep(delay) {
var start = new Date().getTime();

while (new Date().getTime() < start + delay);
}
/*************************

*************************/
function disableEnterKey(e) {
var key;
if(window.event)
	key = window.event.keycode; // IE
else
	key = e.which;
return (key !=13);
}

/***************************************************
Check Email	
***************************************************/
function check_email(id) {
var regex = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

tel = document.getElementById('Telephone1').value;

if (str.length > 0) { 

	if (str.length < 3 || str.match(regex) == null) {

		alert("請重新輸入電子郵件地址。");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		return false;
	}
		return true;
}
return true;
}

/***************************************************
Check Email	
***************************************************/
function check_email_and_telephone(id) {
var regex = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;
tel = document.getElementById('Telephone1').value;

if (str.length > 0) { 

	if (str.length < 3 || str.match(regex) == null) {

		alert("請重新輸入電子郵件地址。");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		return false;
	}
		return true;
}
else
{
	if (str.length  == 0 && tel.length == 0) {
		alert("請輸入您的電子郵件地址或電話。");
		//alert("Required Field. Please enter your email address or telephone.");
		document.getElementById('Telephone1').focus();
		document.getElementById('Telephone1').select();
		return false;
	}
}
return true;
}

/***************************************************
Check Email	
***************************************************/
function check_email_not_required(id) {
var regex = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0) { 

	if (str.length < 3 || str.match(regex) == null) {
		alert("請重新輸入電子郵件地址。");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		//document.getElementById(id).value =" ";
		return false;
	}
}
return true;
}

/***************************************************
Check Email	
***************************************************/
function check_contact_email(id) {
var regex = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;


str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0) { 

	if (str.length < 3 || str.match(regex) == null) {
		alert("請重新輸入您的聯繫電子郵件地址。");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		//document.getElementById(id).value =" ";
		return false;
	}
}
return true;
}

/***************************************************
Attorney Email
***************************************************/
function check_attorney_email(id) {
var regex = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0) { 

	if (str.length < 3 || str.match(regex) == null) {
		alert("請重新輸入您的代表或律師電子郵件地址。");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		//document.getElementById(id).value =" ";
		return false;
	}
}
return true;
}

/***************************************************
Check Telephone
***************************************************/
function check_agency_telephone(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check Telephone
***************************************************/
function check_telephone(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Company Telephone
***************************************************/
function check_company_telephone(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check Telephone Required
***************************************************/
function check_telephone_required(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check Telephone Not Required for complainant
***************************************************/
function check_telephone_not_required2(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check Telephone Not Required
***************************************************/
function check_telephone_not_required(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Telephone for Point of Contact
***************************************************/
function check_contact_telephone(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Telephone for Attorney
***************************************************/
function check_attorney_telephone(id) {
var phonenumber = document.getElementById(id).value;
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

phonenumber =  phonenumber.trim();
document.getElementById(id).value = phonenumber;

if (phonenumber.match(phoneno))
{
	return true;
}
else
{
	alert("請重新輸入您的代理機構電話號碼 999-999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check Zip code 2	
***************************************************/
function check_zipcode2(id) {
var zipcodenumber = document.getElementById(id).value;
var zipcodeformat = /^[0-9]{5}(?:-[0-9]{4})?$/;

zipcodenumber =  zipcodenumber.trim();
document.getElementById(id).value = zipcodenumber;

if (zipcodenumber.match(zipcodeformat))
{
	return true;
}
else
{
 	alert("請重新輸入郵遞區號:如99999或99999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check to make sure a state is selected	
***************************************************/
function check_state_selected(id) {

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length < 1 ) {
	//alert("Required Field. Please select a state from the drop down list.");
	document.getElementById(id).focus();
	document.getElementById(id).select();
	return false;
}
else
{
	//document.getElementById('Zipcode1').select();
//	document.getElementById('Zipcode1').focus();
	return true;
}
}

/***************************************************
Check Zip code	
***************************************************/
function check_zipcode(id) {
var zipcodenumber = document.getElementById(id).value;
var zipcodeformat = /^[0-9]{5}(?:-[0-9]{4})?$/;

zipcodenumber =  zipcodenumber.trim();
document.getElementById(id).value = zipcodenumber;

if (zipcodenumber.match(zipcodeformat))
{
	return true;
}
else
{
 	alert("請重新輸入郵遞區號:如99999或99999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}
/***************************************************
Check Zip code	
***************************************************/
function check_company_zipcode(id) {
var zipcodenumber = document.getElementById(id).value;
var zipcodeformat = /^[0-9]{5}(?:-[0-9]{4})?$/;

zipcodenumber =  zipcodenumber.trim();
document.getElementById(id).value = zipcodenumber;

if (zipcodenumber.match(zipcodeformat))
{
	return true;
}
else
{
 	alert("請重新輸入郵遞區號:如99999或99999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}
/***************************************************
Contact Zip code	
***************************************************/
function check_contact_zipcode(id) {
var zipcodenumber = document.getElementById(id).value;
var zipcodeformat = /^[0-9]{5}(?:-[0-9]{4})?$/;

zipcodenumber =  zipcodenumber.trim();
document.getElementById(id).value = zipcodenumber;

if (zipcodenumber.match(zipcodeformat))
{
	return true;
}
else
{
 	alert("請重新輸入郵遞區號:如99999或99999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check Zip code	
***************************************************/
function check_attorney_zipcode(id) {
var zipcodenumber = document.getElementById(id).value;
var zipcodeformat = /^[0-9]{5}(?:-[0-9]{4})?$/;

zipcodenumber =  zipcodenumber.trim();
document.getElementById(id).value = zipcodenumber;

if (zipcodenumber.match(zipcodeformat))
{
	return true;
}
else
{
 	alert("請重新輸入郵遞區號:如99999或99999-9999。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
        return false;
}

}

/***************************************************
Check State name for special characters and blanks	
***************************************************/
function check_state_required(id){

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length < 1) {

	alert("必填欄位,請由下拉選單選取州。");
	//document.getElementById(id).value ="";
	document.getElementById(id).select();
	//document.getElementById(id).focus();
 	return false;

}
else
{

	//alert("Required Field. State ok.");
	return true;
}

}

/***************************************************
Check State name for special characters and blanks	
***************************************************/
function check_state_not_required(id){

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length < 1) {

	alert("必填欄位,請由下拉選單選取州。");
	//document.getElementById(id).value ="";
	document.getElementById(id).select();
	//document.getElementById(id).focus();
 	return false;

}
return true;
}

/***************************************************
	
***************************************************/
function check_textarea_required(id){
//var regex = /^[a-zA-Z0-9-'\n\r()"*!;?:%#,/\\ .\b]+$/;
var regex = /^[a-zA-Z0-9-'\n\r()"*!;?:%#,/\\ .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0) {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") || str.match(".jpeg")) {
		alert("必填項目。請重新輸入您的投訴敘述,無特殊字符( ` @ ~ | [ ] { } ^ ).");
		document.getElementById(id).focus();
		document.getElementById(id).select(); 
		return false;
	}
}
else
{
	alert("必填項目。你的投訴敘述是空白的,請重新輸入。");
	//document.getElementById(id).focus();
	//document.getElementById(id).select();
	return false;
}
return true;
}

/***************************************************
	
***************************************************/
function check_company_textarea_required(id){
//var regex = /^[a-zA-Z0-9-'\n\r()"*!;?:%#,/\\ .\b]+$/;
var regex = /^[a-zA-Z0-9-'\n\r()"*!;?:%#,/\\ .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0) {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") || str.match(".jpeg")) {
		alert("必填項目。請重新輸入您的歧視敘述細節,無特殊字符( ` @ ~ | [ ] { } ^ ).");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		return false;
	}
}
else
{
	alert("必填項目。你的歧視敘事是空白的。");
	document.getElementById(id).focus();
	document.getElementById(id).select();
	return false;
}
return true;
}

/***************************************************
Check Name (First, Middle, and Last) for special characters and blanks	
***************************************************/
function check_name_required(id){
//var regex = /^[x00-xff\n\r .\b]+$/;
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;
 
//var regex = /^[x00-xff a-zA-Z-'\n\r .\b]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 		alert("必填欄位,請鍵入有效名字、中名及姓氏。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{

	alert("必填欄位,請鍵入有效名字、中名及姓氏。");
	document.getElementById(id).select();
	document.getElementById(id).focus();
	return false;
}
	//	document.getElementById(id).select();
	//	document.getElementById(id).focus();
return true;
}

/***************************************************
Check Name (First, Middle, and Last) for special characters and blanks	
***************************************************/
function check_name_not_required(id){
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填欄位,請鍵入有效名字、中名及姓氏。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;

}
/***************************************************
Check Name (First, Middle, and Last) for special characters and blanks	
***************************************************/
function check_contact_name(id){
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填欄位,請鍵入有效名字、中名及姓氏。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;

}
/***************************************************
Check Name (First, Middle, and Last) for special characters and blanks	
***************************************************/
function check_attorney_name(id){
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填欄位,請鍵入有效名字、中名及姓氏。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Signature
***************************************************/
function check_signature_required(id){
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填欄位,請鍵入有效名字、中名及姓氏。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
	alert("必填欄位,請鍵入有效名字、中名及姓氏。");
	document.getElementById(id).select();
	document.getElementById(id).focus();
	return false;
}
return true;
}

/***************************************************
Check contact name for allegations.	
***************************************************/
function check_allegations_contact_name(id){
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("請輸入有效的就業歧視聯繫人姓名。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("請輸入有效的就業歧視聯繫人姓名。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}
return true;
}

/***************************************************
Address Company
***************************************************/
function check_company_address_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填項目。請輸入有效的公司街道地址。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("必填項目。請輸入有效的公司街道地址。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}
return true;
}

/***************************************************
Check address for special characters and blanks
***************************************************/
function check_address_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填欄位,請鍵入有效街道地址。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Check address for special characters and blanks
***************************************************/
function check_address_not_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("必填欄位,請鍵入有效街道地址。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Check address for special characters and blanks
***************************************************/
function check_contact_address(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("請輸入聯繫人的有效街道地址。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Check address for special characters and blanks
***************************************************/
function check_attorney_address(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
 	
		alert("請為代表或律師輸入有效的街道地址。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Check City name for special characters and blanks
***************************************************/
function check_city_name_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("必填欄位,請輸入有效城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("必填欄位,請輸入有效城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}

return true;

}

/***************************************************
Check City name for special characters and blanks
***************************************************/
function check_company_city_name_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("必填項目。請輸入公司的有效城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("必填項目。請輸入公司的有效城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}
return true;
}

/***************************************************
Check City name for special characters and blanks
***************************************************/
function check_city_name_not_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("必填欄位,請輸入有效城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}
/***************************************************
Check City name for special characters and blanks
***************************************************/
function check_contact_city_name(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("請輸入聯繫人的有效城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Check City name for special characters and blanks
***************************************************/
function check_attorney_city_name(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("請為代表或律師輸入有效的城市名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
return true;
}

/***************************************************
Check Agency and Company Name for special characters and blanks
***************************************************/
function check_company_name_required(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("必填欄位,請鍵入有效公司名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("必填欄位,請鍵入有效公司名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}

return true;
}


/***************************************************
Check Agency and Company Name for special characters and blanks
***************************************************/
function check_agency_name(id){
var regex = /^[a-zA-Z0-9-'#, .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

str = document.getElementById(id).value;
str = str.trim();
document.getElementById(id).value = str;

if (str.length > 0)  {

	if (str.match(regex) == null || str.match("ftp") || str.match(".jpg") || str.match(".png") || str.match(".gif") || str.match("file:") || str.match("http") ) {
		alert("必填項,請輸入有效的代理商名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("必填項,請輸入有效的代理商名稱。");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}

return true;
}
/***************************************************
MISC - 
***************************************************/
function validateForm() {
	document.getElementById("myform").Instructions.value = "NoShow";
	document.myform.submit();
}

function clear_form() {
	document.myform.reset();
	return false;
}

function print_form44() {
document.getElementById("myform").Instructions.value = "MyPrint";
alert(document.getElementById("myform").Instructions.value);
document.myform.submit();
return true;
}


/***************************************************
Instructions		
***************************************************/
function instructions() {
	document.myform2.submit();
	return false;
}

/***************************************************
UT8 Check		
***************************************************/
function isEmail(email) { 
    return /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(email);
}

/***************************************************
GO BACK		
***************************************************/
function goBack() {
	window.history.back();
}

/***************************************************
Treatedc - Switches buttons on and off
***************************************************/
function change_button_value(id) {
str = id;

//alert("Element: --->" + str);

if (str.match("Treated5")) {
	//document.getElementById("Treated5").value ="1"; 
	//document.getElementById("Treated6").value ="0";
	//document.getElementById("Treated5").checked = true;
	//document.getElementById("Treated6").checked = false;

if (document.getElementById("Treated5").checked == true) {
//alert("False");
	document.getElementById("Treated5").checked = true;
}
else
{
//alert("True");
	document.getElementById("Treated5").checked = false;
}
}

if (str.match("Treated6")) {
	//document.getElementById("Treated6").value ="0"; 
	//document.getElementById("Treated5").value ="1";
	//document.getElementById("Treated6").checked = true;
	//document.getElementById("Treated5").checked = false;

if (document.getElementById("Treated6").checked == true) {

	document.getElementById("Treated6").checked = true;
}
else
{
	document.getElementById("Treated6").checked = false;
}

}

if (str.match("Attorney5_You")) {
	//document.getElementById("Attorney5_You").value ="1"; 
	//document.getElementById("Attorney6_You").value ="0";
	//document.getElementById("Attorney5_You").checked = true;
	//document.getElementById("Attorney6_You").checked = false;

if (document.getElementById("Attorney5_You").checked == true) {

	document.getElementById("Attorney5_You").checked = true;
}
else
{
	document.getElementById("Attorney5_You").checked = false;
}



}

if (str.match("Attorney6_You")) {
	//document.getElementById("Attorney6_You").value ="2"; 
	//document.getElementById("Attorney5_You").value ="0";
	//document.getElementById("Attorney6_You").checked = true;
	//document.getElementById("Attorney5_You").checked = false;

if (document.getElementById("Attorney6_You").checked == true) {

	document.getElementById("Attorney6_You").checked = true;
}
else
{
	document.getElementById("Attorney6_You").checked = false;
}



}


if (str.match("Home1")) {

if (document.getElementById("Home1").checked == true) {
//alert("False");
	document.getElementById("Home1").checked = true;
}
else
{
//alert("True");
	document.getElementById("Home1").checked = false;
}






}

if (str.match("Work1")) {

if (document.getElementById("Work1").checked == true) {
//alert("False");
	document.getElementById("Work1").checked = true;
}
else
{
//alert("True");
	document.getElementById("Work1").checked = false;
}



}

if (str.match("Cell1")) {


if (document.getElementById("Cell1").checked == true) {
//alert("False");
	document.getElementById("Cell1").checked = true;
}
else
{
//alert("True");
	document.getElementById("Cell1").checked = false;
}


}

if (str.match("Home2")) {
	if (document.getElementById("Home2").checked == true) {
		//alert("False");
		document.getElementById("Home2").checked = true;
	}
	else
	{
		//alert("True");
		document.getElementById("Home2").checked = false;
	}
}

if (str.match("Work2")) {

if (document.getElementById("Work2").checked == true) {
//alert("False");
	document.getElementById("Work2").checked = true;
}
else
{
//alert("True");
	document.getElementById("Work2").checked = false;
}

}

if (str.match("Cell2")) {


if (document.getElementById("Cell2").checked == true) {
//alert("False");
	document.getElementById("Cell2").checked = true;
}
else
{
//alert("True");
	document.getElementById("Cell2").checked = false;
}


}

if (str.match("Allegations_Yes")) {

	if (document.getElementById("Allegations_Yes").checked == true) {
		//alert("yes - False");
		document.getElementById("Allegations_Yes").checked = true;
		document.getElementById("Allegations_No").checked = false;

	}
	else
	{
		//alert("yes - True");
		document.getElementById("Allegations_Yes").checked = false;
		//document.getElementById("Allegations_No").checked = false;
	}
}

if (str.match("Allegations_No")) {
	//alert("All no");
	if (document.getElementById("Allegations_No").checked == true) {
		alert("no - False");
		document.getElementById("Allegations_No").checked = true;
		document.getElementById("Allegations_Yes").checked = false;
	}
	else
	{
		alert(" no - True");
		document.getElementById("Allegations_No").checked = false;
		//document.getElementById("Allegations_Yes").checked = false;
	}
}



}
/***************************************************
Message some buttons before input.
***************************************************/
function message_for_button(id) {
str = id;
if (str.match("Allegations_Yes")) {
	alert("請輸入代理商名稱,代理聯絡點和代理機構電話號碼。");
}
}
 
/***************************************************
on_off - Switches buttons on and off
***************************************************/
function button_on_off(id) {
str = id;

document.getElementById(id).select();
document.getElementById(id).focus();

/*alert("Element: --->" + str);*/

if (document.getElementById(id).value == 1) {
	document.getElementById(id).value = 0;
	document.getElementById(id).checked = false;
}
else
{
	document.getElementById(id).value = 1;
	document.getElementById(id).checked = true;
}

}

/***************************************************
on_or_off - Switches buttons on or off
***************************************************/
function test(event,id,id2) {
//var key;
var key = event.which || event.keyCode;
alert("Keypressed = " + key);
return true;
}

/***************************************************
on_or_off - Switches buttons on or off
***************************************************/
function button_on_or_off(event,id,id2) {
//var key;
var key = event.which || event.keyCode;
//alert("Keypressed = " + key);
//alert("ID = " + document.getElementById(id).checked);


// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)
isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
// Firefox 1.0+
isFirefox = typeof InstallTrigger !== 'undefined';
// Safari 3.0+
isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification);
// Internet Explorer 6-11
isIE = /*@cc_on!@*/false || !!document.documentMode;
// Edge 20+
//isEdge = !isIE && !!window.StyleMedia;
// Chrome 1+
isChrome = !!window.chrome && !!window.chrome.webstore;
// Blink engine detection
//isBlink = (isChrome || isOpera) && !!window.CSS;

//alert("IsOpera :" + isOpera);
//alert("isFirefox :" + isFirefox);
//alert("isSafari :" + isSafari);
//alert("isIE :" + isIE);
//alert("isChrome :" + isChrome);

document.getElementById(id).select();
document.getElementById(id).focus();

//alert("Keypressed = " + key);

if (key == 32) {

	if (isIE) {
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 			//alert(" ie ID = false");

			document.getElementById(id2).checked = false;
			document.getElementById(id).checked = true;

			//if (document.getElementById(id2).checked == true) {
	 		//	document.getElementById(id2).checked = false;
			//}
		}
		else
		{
			//alert(" ie ID = True");
			document.getElementById(id).checked = false;
		} 
		return true;
	}

	if (isSafari) {
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 		//	alert("safa ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
			document.getElementById(id2).checked = false;
		//	alert(" safa ID = True");
			document.getElementById(id).checked = true;

			
			if (document.getElementById(id2).checked == true) {
	 			document.getElementById(id2).checked = false;
			}
		} 
		return true;
	}

	if (isChrome) {
		//alert("o chr ID");
	
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 		//	alert("chr ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
			//if (document.getElementById(id2).checked == true) {
	 			document.getElementById(id2).checked = false;
			//}
		//	alert("chr ID = True");
			document.getElementById(id).checked = true;
		} 
		return true;
	}
}
else 
{
	if (isChrome) {
		//alert("chr ID = false");
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 		//	alert("chr ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
			//if (document.getElementById(id2).checked == true) {
	 			document.getElementById(id2).checked = false;
			//}
		//	alert("chr ID = True");
			document.getElementById(id).checked = true;
		} 
		return true;
	}

	if (isFirefox) {
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 			//alert("fire ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
			document.getElementById(id2).checked = false;
			//alert(" fire ID = True");
			document.getElementById(id).checked = true;

			
			if (document.getElementById(id2).checked == true) {
	 			document.getElementById(id2).checked = false;
			}
		} 
		return true;
	}

}

return true; 
} //End of Function

/***************************************************
on_or_off 2 just the event and the id - Switches buttons on or off
***************************************************/
function button_on_or_off2(event,id) {
//var key;
var key = event.which || event.keyCode;
//alert("Keypressed = " + key);
//alert("ID = " + document.getElementById(id).checked);


// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)
isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
// Firefox 1.0+
isFirefox = typeof InstallTrigger !== 'undefined';
// Safari 3.0+
isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification);
// Internet Explorer 6-11
isIE = /*@cc_on!@*/false || !!document.documentMode;
// Edge 20+
//isEdge = !isIE && !!window.StyleMedia;
// Chrome 1+
isChrome = !!window.chrome && !!window.chrome.webstore;
// Blink engine detection
//isBlink = (isChrome || isOpera) && !!window.CSS;

//alert("IsOpera :" + isOpera);
//alert("isFirefox :" + isFirefox);
//alert("isSafari :" + isSafari);
//alert("isIE :" + isIE);
//alert("isChrome :" + isChrome);



//alert("Keypressed = " + key);

		document.getElementById(id).select();
		document.getElementById(id).focus();

if (key == 32) {

	if (isIE) {
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 			//alert(" ie ID = false");
			document.getElementById(id).checked = true;
		}
		else
		{
			//alert(" ie ID = True");
			document.getElementById(id).checked = false;
		} 
		return true;
	}

	if (isSafari) {
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 		//	alert("safa ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
		//	alert(" safa ID = True");
			document.getElementById(id).checked = true;	
		} 
		return true;
	}

	if (isChrome) {
		//alert("o chr ID");
	
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 		//	alert("chr ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{

		//	alert("chr ID = True");
			document.getElementById(id).checked = true;
		} 
		return true;
	}
}
else 
{
	if (isChrome) {
		//alert("chr ID = false");
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 		//	alert("chr ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
		//	alert("chr ID = True");
			document.getElementById(id).checked = true;
		} 
		return true;
	}

	if (isFirefox) {
		if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
 			//alert("fire ID = false");
			document.getElementById(id).checked = false;
		}
		else
		{
			//alert(" fire ID = True");
			document.getElementById(id).checked = true;
		} 
		return true;
	}
}
return true; 
} //End of Function

/***************************************************
on_or_off - Switches buttons on or off
***************************************************/
function mouse_on_or_off(id,id2) {

document.getElementById(id).select();
document.getElementById(id).focus();

	if (document.getElementById(id).checked == "" || document.getElementById(id).checked == false) {
		//document.getElementById(id).focus();
		//document.getElementById(id).select();
		document.getElementById(id).checked = false;

	}
	else
	{
		//document.getElementById(id).focus();
		//document.getElementById(id).select();
		document.getElementById(id).checked = true;

		if (document.getElementById(id2).checked == true) {
		//	document.getElementById(id2).select();
			document.getElementById(id2).checked = false;
		}
	}
} //End of Function


/***************************************************
BUILDHTML
***************************************************/
function buildhtml(text) {
str_html = str_html + text + "\n"
return true;
}

/***************************************************
PADDING
***************************************************/
function padd(text,len) {

fill = "                                                                                           ";

text = text + fill;
//text = "<u><pre>" + text.substring(text, len) + "</pre></u>";
//text = "<u>" + text.substring(text, len) + "</u>";
//text = text.substring(text, len);
text = '<input size=' + len + ' width=auto type=text value="' + text + '">';
return text;
}



/***************************************************
PRINT FORM 
***************************************************/
function print_form() {

//alert("print");
//document.getElementById("myform").Instructions.value = "MyPrint";
//alert(document.getElementById("myform").Instructions.value);
//document.getElementById("log").innerHTML="<h1>some thing you want</h1>";
//document.myform.submit();


F_Fullname1			= document.getElementById("Fullname1").value;
F_Address1			= document.getElementById("Address1").value;
F_City1				= document.getElementById("City1").value;
F_State1			= document.getElementById("state1").value;
F_Zipcode1			= document.getElementById("Zipcode1").value;
F_Telephone1			= document.getElementById("Telephone1").value;

F_Home1 = "";
if (document.getElementById("Home1").checked) {	F_Home1 = "checked";}
F_Work1 = "";
if (document.getElementById("Work1").checked) {	F_Work1 = "checked";}
F_Cell1 = "";
if (document.getElementById("Cell1").checked) {	F_Cell1 = "checked";}

F_Email1			= document.getElementById("Email1").value;

F_Allegations_Yes = "";
if (document.getElementById("Allegations_Yes").checked) {F_Allegations_Yes = "checked";}
F_Allegations_No = "";
if (document.getElementById("Allegations_No").checked) {F_Allegations_No = "checked";}

F_Agency_Name1			= document.getElementById("Agency_Name1").value;
F_Agency_POC1			= document.getElementById("Agency_POC1").value;
F_Agency_Telephone1		= document.getElementById("Agency_Telephone1").value;


F_Fullname2			= document.getElementById("Fullname2").value;
F_Address2			= document.getElementById("Address2").value;
F_City2				= document.getElementById("City2").value;
F_State2			= document.getElementById("state2").value;
F_Zipcode2			= document.getElementById("Zipcode2").value;
F_Telephone2			= document.getElementById("Telephone2").value;

F_Home2 = "";
if (document.getElementById("Home2").checked) {	F_Home2 = "checked";}
F_Work2 = "";
if (document.getElementById("Work2").checked) {	F_Work2 = "checked";}
F_Cell2 = "";
if (document.getElementById("Cell2").checked) {	F_Cell2 = "checked";}

F_Email2			= document.getElementById("Email2").value;
	
F_Fullname3			= document.getElementById("Fullname3").value;
F_Address3			= document.getElementById("Address3").value;
F_City3				= document.getElementById("City3").value;
F_State3			= document.getElementById("state3").value;
F_Zipcode3			= document.getElementById("Zipcode3").value;
F_Telephone3			= document.getElementById("Telephone3").value;
F_Narrative5			= document.getElementById("Narrative5").value;

F_Race40 = "";
if (document.getElementById("Race40").checked) {F_Race40 = "checked";}
F_Race41 = "";
if (document.getElementById("Race41").checked) {F_Race41 = "checked";}
F_Race42 = "";
if (document.getElementById("Race42").checked) {F_Race42 = "checked";}
F_Race43 = "";
if (document.getElementById("Race43").checked) {F_Race43 = "checked";}
F_Race44 = "";
if (document.getElementById("Race44").checked) {F_Race44 = "checked";}
F_Race45 = "";
if (document.getElementById("Race45").checked) {F_Race45 = "checked";}


F_National_Origin41 = "";
if (document.getElementById("National_Origin41").checked) {F_National_Origin41 = "checked";}

F_National_Origin411 = "";
if (document.getElementById("National_Origin411").checked) {F_National_Origin411 = "checked";}

F_National_Origin412 = "";
if (document.getElementById("National_Origin412").checked) {F_National_Origin412 = "checked";}

F_Race4_Tribal_Affiliation4 = document.getElementById("Race4_Tribal_Affiliation4").value;

F_Color4 = "";
if (document.getElementById("Color4").checked) {F_Color4 = "checked";}

F_Religion4 = "";
if (document.getElementById("Religion4").checked) {F_Religion4 = "checked";}

F_Sex4 = "";
if (document.getElementById("Sex4").checked) {F_Sex4 = "checked";}

F_Sexual_Orientation4 = "";
if (document.getElementById("Sexual_Orientation4").checked) {F_Sexual_Orientation4 = "checked";}

F_Gender_Identity4 = "";
if (document.getElementById("Gender_Identity4").checked) {F_Gender_Identity4 = "checked";}

F_Inquiring_About_Pay4 = "";
if (document.getElementById("Inquiring_About_Pay4").checked) {F_Inquiring_About_Pay4 = "checked";}

F_Discussing_Pay4 = "";
if (document.getElementById("Discussing_Pay4").checked) {F_Discussing_Pay4 = "checked";}

F_Disclosing_Pay4 = "";
if (document.getElementById("Disclosing_Pay4").checked) {F_Disclosing_Pay4 = "checked";}

F_Protected_Veteran_Status4 = "";
if (document.getElementById("Protected_Veteran_Status4").checked) {F_Protected_Veteran_Status4 = "checked";}

F_Disability4 = "";
if (document.getElementById("Disability4").checked) {F_Disability4 = "checked";}

F_Retaliation4 = "";
if (document.getElementById("Retaliation4").checked) {F_Retaliation4 = "checked";}

F_Complaint51 = "";
if (document.getElementById("Complaint51").checked) {F_Complaint51 = "checked";}

F_Complaint52 = "";
if (document.getElementById("Complaint52").checked) {F_Complaint52 = "checked";}

F_Complaint53 = "";
if (document.getElementById("Complaint53").checked) {F_Complaint53 = "checked";}

F_Complaint54 = "";
if (document.getElementById("Complaint54").checked) {F_Complaint54 = "checked";}

F_Complaint55 = "";
if (document.getElementById("Complaint55").checked) {F_Complaint55 = "checked";}

F_Complaint56 = "";
if (document.getElementById("Complaint56").checked) {F_Complaint56 = "checked";}

F_Treated5 = "";
if (document.getElementById("Treated5").checked) {F_Treated5 = "checked";}

F_Treated6 = "";
if (document.getElementById("Treated6").checked) {F_Treated6 = "checked";}

F_Narrative6			= document.getElementById("Narrative6").value;


F_Attorney5_You = "";
if (document.getElementById("Attorney5_You").checked) {F_Attorney5_You = "checked";}


F_Attorney6_You = "";
if (document.getElementById("Attorney6_You").checked) {F_Attorney6_You = "checked";}

F_Fullname21			= document.getElementById("Fullname21").value;
F_Address21			= document.getElementById("Address21").value;
F_City21			= document.getElementById("City21").value;
F_State21			= document.getElementById("state21").value;
F_Zipcode21			= document.getElementById("Zipcode21").value;
F_Telephone21			= document.getElementById("Telephone21").value;
F_Email21			= document.getElementById("Email21").value; 		 
			 		 
F_Print_Signature		= document.getElementById("Print_Signature").value;
F_Print_Signature_Date		= document.getElementById("Print_Signature_Date").value;


buildhtml("<!DOCTYPE html>");
buildhtml("<html lang='es'>");
buildhtml("<head>");
buildhtml("<title>OFCCP Complaint Form Chinese Traditional</title>");
buildhtml("<meta http-equiv='Content-type' content='text/html;charset=UTF-8'>");
buildhtml("<meta http-equiv='Content-Style-Type' content='text/css'>");
buildhtml("<meta name='generator' content=''>");

buildhtml("<style>");
buildhtml("body, a, h1, h2, h3, h4, ul, ol, li, p, label, td, th, u { font-family: Tahoma, Arial, verdana, sans-serif;}");
buildhtml("body, a, h1, h2, h3, h4, ul, ol, li, p, label, td, th, u { color:black; font-weight:normal; line-height:150%;}");
buildhtml("td, th {border 2px solid gray;}");

buildhtml("h1 { text-align:right;}");
buildhtml("h2 { text-align:left;}");
buildhtml("h3 { text-align:left;}");
buildhtml("h4 { text-align:right;}");
buildhtml("td { text-align:left;}");
buildhtml("th { text-align:left;}");
buildhtml("ol { text-align:left;}");
buildhtml("li { text-align:left;}");
buildhtml("u  { text-align:right;}");

buildhtml("a  { font-size: 10px;}")
buildhtml("h1 { font-size: 18px;}");
buildhtml("h2 { font-size: 11px;}");
buildhtml("h3 { font-size: 11px;}");
buildhtml("h4 { font-size: 11px;}");
buildhtml("td { font-size: 11px;}");
buildhtml("th { font-size: 11px;}");
buildhtml("ol { font-size: 11px;}");
buildhtml("li { font-size: 11px;}");
buildhtml("u  { font-size: 11px;}");
buildhtml("p  { font-size: 11px;}");
buildhtml("input  { font-size: 11px; border:0; outline: 0; border-bottom:1px solid black;}");
buildhtml("h1, h2, h3, h4 {margin:0; padding:0;}");
buildhtml("button {margin:0;}");
buildhtml("td { vertical-align: top; text-align:left;}");
buildhtml("th { vertical-align: top; text-align:left;}");

buildhtml("h4 {margin-top:7px;}");

buildhtml("</style>");
buildhtml("</head>");
buildhtml("<body>");
buildhtml("<table bgcolor='white' width='780' border=0 cellspacing='0' cellpadding='0' align='center' cols=2>");
buildhtml("<!------------------------");
buildhtml("FORM TITLE");
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<a style='float: left;' href='https://www.dol.gov'>");
buildhtml("<img src='https://raw.githubusercontent.com/GSA/logo/master/labor.png'");
buildhtml(" align='top' width='45' border='0'");
buildhtml(" alt='United States Department of Labor'");
buildhtml(" title='United States Department of Labor'>");
buildhtml("</a>");
buildhtml("<a style='float: left;' href='https://www.dol.gov/ofccp/aboutof.html'>");
buildhtml("<img src='https://www.dol.gov/sites/default/files/slide47.jpg'");
buildhtml(" align='top' width='155' border='0'");
buildhtml(" alt='Office of Federal Contract Compliance Programs'");
buildhtml(" title='Office of Federal Contract Compliance Programs'>");
buildhtml("</a>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h1>");
buildhtml("涉及聯邦政府承包商或分包商的就業歧視投訴");
buildhtml("</h1>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h4>");
buildhtml("<u>請在填寫此表格之前閱讀說明。</u>");
buildhtml("</h4>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h4 style='text-align:left; margin-top:10px;'>");
buildhtml("OMB: 1250-0002<br>");
buildhtml("有效期: 5/31/2020");
buildhtml("</h4>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h4>");
buildhtml("<button style='margin-right: 15px; margin-top: 5px;' readonly> 重設表單 </button>");
buildhtml("<button style='margin-right: 15px; margin-top: 5px;' readonly> 列印表單 </button>");
buildhtml("<button style='margin-right: 0px; margin-top: 5px;' readonly> 提交 </button>");
buildhtml("</h4>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("</table>");


buildhtml("<table bgcolor='white' width='780px' border='1' cellspacing='0' cellpadding='5' align='center' style='border-collapse:collapse'>");
     
buildhtml("<!------------------------");    
buildhtml("SECTION 1");
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td width='170' valign='top' align=left>");
buildhtml("<h2><b>");
buildhtml("我們如何與您聯絡?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td width='610' >");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
     
buildhtml("<tr><td>");
buildhtml("姓名(名,中間名,姓氏):  " + padd(F_Fullname1,45) + "<br>");
buildhtml("街道地址: " + padd(F_Address1,50) + "<br>");
buildhtml("城市:  " + padd(F_City1,50) + "<br>");
buildhtml("州:  " + padd(F_State1,3) + " 郵遞區號: " + padd(F_Zipcode1,10) + "<br>");
buildhtml("郵遞區號:  " + padd(F_Telephone1,15) + "<br>");

buildhtml("<input name=home type='checkbox' " + F_Home1 + " ><label>宅電</label>");
buildhtml("<input name=home type='checkbox' " + F_Work1 + " ><label>工作電話</label>");
buildhtml("<input name=home type='checkbox' " + F_Cell1 + " ><label>手機</label>");

buildhtml("<br>");
      
buildhtml("電子郵件: " + padd(F_Email1,50) + "<br>"); 
    
buildhtml("<h3>");
buildhtml("您是否已經向另一個聯邦或地方機構提交了這些有關就業歧視的指控?");
buildhtml("<br>");
buildhtml("</h3>"); 
buildhtml("<input name=F_Allegations_Yes type='checkbox' " + F_Allegations_Yes + " ><label>是</label>");
buildhtml("<input name=F_Allegations_No type='checkbox' " + F_Allegations_No + " ><label>否</label>");

buildhtml("<br>");
buildhtml("If yes, which agency:" + padd(F_Agency_Name1,45) + "<br>");
buildhtml("連絡人姓名:" + padd(F_Agency_POC1,35) +   "電話號碼:" + padd(F_Agency_Telephone1,12) + "<br>");
 
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");

buildhtml("<!------------------------");    
buildhtml("SECTION 2");    
buildhtml("------------------------->");
buildhtml("<tr>");

buildhtml("<td valign='top' align=left>");
buildhtml("<h2><b>");
buildhtml("如果我們無法與您聯絡,我們聯絡誰?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");
     
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("姓名(名,中間名,姓氏):  " + padd(F_Fullname2,45) + "<br>");
buildhtml("街道地址:  " + padd(F_Address2,50) + "<br>");
buildhtml("城市: " + padd(F_City2,50) + "<br>");
buildhtml("州:  " + padd(F_State2,3) + " 郵遞區號: " + padd(F_Zipcode2,10) + "<br>");
buildhtml("電話號碼::  " + padd(F_Telephone2,15) + "<br>");
     
buildhtml("<input name=home2 type='checkbox' " + F_Home2 + " ><label>宅電</label>");
buildhtml("<input name=work2 type='checkbox' " + F_Work2 + " ><label>工作電話</label>");
buildhtml("<input name=cell2 type='checkbox' " + F_Cell2 + " ><label>手機</label>");
buildhtml("<br>");
     
buildhtml("電子郵件:   " + padd(F_Email2,50) + "<br>");
     
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("</table>");

buildhtml("</td>");

buildhtml("</tr>");

buildhtml("<!------------------------");    
buildhtml("SECTION 3");    
buildhtml("------------------------->");
buildhtml("<tr>");

buildhtml("<td valign='top' align=left>");
buildhtml("<h2><b>");
buildhtml("您認為歧視或報復您的雇主的名字是什麼?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");

buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("公司名稱:   " + padd(F_Fullname3,50) + "<br>");
buildhtml("街道地址:   " + padd(F_Address3,50) + "<br>");
buildhtml("城市:   " + padd(F_City3,50) + "<br>");
buildhtml("州:    " + padd(F_State3,3) + " 郵遞區號: " + padd(F_Zipcode3,12) + "<br>");
buildhtml("電話號碼:   " + padd(F_Telephone3,15) + "<br>");
     
buildhtml("<h3><b>");
buildhtml("提供您認為您受到歧視或報復的日期和時間:");
buildhtml("</b></h3>");
   
buildhtml(F_Narrative5);     
          
buildhtml("</td>");
buildhtml("</tr>");
     
buildhtml("</table>");

buildhtml("</td>");

buildhtml("</tr>");



buildhtml("<!------------------------");
buildhtml("SECTION 4");
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("您為什麼認為您的雇主對您有歧視或報復?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='0' cols=4>");
     
buildhtml("<tr valign='top'>");
buildhtml("<!--------------------- ");    
buildhtml(" ROW 1 of 4");       
buildhtml("--------------------->");     
buildhtml("<td >");
buildhtml("<table width=150 border='0' cellspacing='0' cellpadding='4' cols=2 > ");
     
buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Race40 type='checkbox' " + F_Race40 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>種族</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Race41 type='checkbox' " + F_Race41 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>美洲印第安人或阿拉斯加本地人<br>部族聯盟:<br></b>");
buildhtml("<u>" + F_Race4_Tribal_Affiliation4 + "</u>");
buildhtml("</td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Race42 type='checkbox' " + F_Race42 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>亞裔</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Race43 type='checkbox' " + F_Race43 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>黑人或非裔美國人</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Race44 type='checkbox' " + F_Race44 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>夏威夷原住民或其他太平洋島民</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Race45 type='checkbox' " + F_Race45 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>白人</b></td>");
buildhtml("</tr>");

buildhtml("</table>");

buildhtml("</td>");


buildhtml("<!--------------------- ");    
buildhtml(" ROW 2 of 4");       
buildhtml("--------------------->");     
buildhtml("<td >");
buildhtml("<table width=150 border='0' cellspacing='0' cellpadding='4' cols=2 > ");
     
buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_National_Origin41 type='checkbox' " + F_National_Origin41 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>國籍</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_National_Origin411 type='checkbox' " + F_National_Origin411 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>西班牙裔或拉丁裔</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_National_Origin412 type='checkbox' " + F_National_Origin412 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>其他</b><br><br><br></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Color4 type='checkbox' " + F_Color4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>膚色</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Religion4 type='checkbox' " + F_Religion4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>宗教</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Sex4 type='checkbox' " + F_Sex4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>性別</b></td>");
buildhtml("</tr>");

buildhtml("</table>");

buildhtml("</td>");


buildhtml("<!--------------------- ");    
buildhtml(" ROW 3 of 4");       
buildhtml("--------------------->");     
buildhtml("<td >");
buildhtml("<table width=150 border='0' cellspacing='0' cellpadding='4' cols=2 > ");
     
buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Sexual_Orientation4 type='checkbox' " + F_Sexual_Orientation4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>性取向</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Gender_Identity4 type='checkbox' " + F_Gender_Identity4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>性別認同</b></td>");
buildhtml("</tr>");


buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Inquiring_About_Pay4 type='checkbox' " + F_Inquiring_About_Pay4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>查詢付款</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Discussing_Pay4 type='checkbox' " + F_Discussing_Pay4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>討論付款</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Disclosing_Pay4 type='checkbox' " + F_Disclosing_Pay4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>披露付款</b></td>");
buildhtml("</tr>");

buildhtml("</table>");

buildhtml("</td>");


buildhtml("<!--------------------- ");    
buildhtml(" ROW 4 of 4");       
buildhtml("--------------------->");     
buildhtml("<td >");
buildhtml("<table width=150 border='0' cellspacing='0' cellpadding='4' cols=2 > ");
     
buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Protected_Veteran_Status4 type='checkbox' " + F_Protected_Veteran_Status4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>受保護的退伍軍人身份</b></td>");
buildhtml("</tr>");

buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Disability4 type='checkbox' " + F_Disability4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>殘疾</b></td>");
buildhtml("</tr>");


buildhtml("<tr>");
buildhtml("<td width=10 valign='top' align='left'><input name=F_Retaliation4 type='checkbox' " + F_Retaliation4 + "></td>");
buildhtml("<td valign='middle' align='left' height=10><b>報復</b></td>");
buildhtml("</tr>");

buildhtml("</table>");

buildhtml("</td>");




buildhtml("</tr>");
     
buildhtml("</table>");


buildhtml("</td>");
buildhtml("</tr>");




     
buildhtml("<!------------------------");    
buildhtml("SECTION 5");    
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<th width='100%' colspan=2 valign='left' align=left>");
     
buildhtml("<table bgcolor='white' width='100%' border='0' cellspacing='0' cellpadding='0' align='left'>");
buildhtml("<tr><td>");

buildhtml("<h2><b>");
buildhtml("您在哪裡得知您可以向OFCCP提出投訴?");
buildhtml("</b></h2>");
buildhtml("<h3>");
      
buildhtml("<input name=F_Complaint51 type='checkbox' " + F_Complaint51 + " ><label>互聯網</label>");
buildhtml("<input name=F_Complaint52 type='checkbox' " + F_Complaint52 + " ><label>海報</label>");
buildhtml("<input name=F_Complaint53 type='checkbox' " + F_Complaint53 + " ><label>社區組織</label>");
buildhtml("<input name=F_Complaint54 type='checkbox' " + F_Complaint54 + " ><label>OFCCP 會議/活動</label>");
buildhtml("<input name=F_Complaint55 type='checkbox' " + F_Complaint55 + " ><label>手冊</label>");
buildhtml("<input name=F_Complaint56 type='checkbox' " + F_Complaint56 + " ><label> 其他</label>");

buildhtml("</h3>");

buildhtml("</td>");  
buildhtml("</tr>");  
buildhtml("</table>");  
     
buildhtml("</th>");  
     
buildhtml("</tr>");


buildhtml("<!------------------------");    
buildhtml("SECTION 6");    
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<th width='100%' colspan=2 valign='top' align='left'>");
buildhtml("<h2><b>您的投訴:</b></h2>");
buildhtml("<b>請在下面描述您認為雇主從事或未從事您認為造成歧視或報復的行為,包括:</b>");
     
buildhtml("<ol>");
buildhtml("<li>雇主對你採取了什麼行動。</li>");
buildhtml("<li>為什麼你認為這些行動是基於你的:種族;膚色;宗教;性別;性取向;性別認同;國籍;殘疾;退伍狀態;和/或查詢、討論或披露您的薪酬或他人的薪酬;和/或報復投訴、參與歧視訴訟、反對非法歧視或行使OFCCP保護的任何其他權利。</li>");
buildhtml("<li>雇主行動發生的時間、地點以及涉事人員。</li>");
buildhtml("<li>如果有的話,您或其他人因指稱的歧視或報復而受到傷害。</li>");
buildhtml("<li>如果有的話,您的雇主或代表您雇主的人為他們的行動作何解釋。</li>");
buildhtml("<li>誰是與你的情況相同或相似,他們是如何被對待的。包括種族、膚色、宗教、性別、性取向、性別認同、國籍、殘疾或這些人的受保護身份(如果知道的話)的資訊。</li>");
buildhtml("<li>您在本投訴中描述的歧視或報復之時,有關您工作所在公司的聯邦合同的資訊。</li>");
buildhtml("</ol>");
     
     
buildhtml("<br><p>");
buildhtml(F_Narrative6); 
buildhtml("</p><br>");    
buildhtml("</th>");
buildhtml("</tr>");

buildhtml("<!------------------------");    
buildhtml("SECTION 7");    
buildhtml("------------------------->");
buildhtml("<tr>");

buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("你認為歧視包括或影響他人嗎?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("您認為其他員工或申請人是否按照上述方式處理嗎?");
buildhtml("<br>");
     
buildhtml("<input name=F_Treated5 type='checkbox' " + F_Treated5 + " ><label>是</label>");    
buildhtml("<input name=F_Treated6 type='checkbox' " + F_Treated6 + " ><label>否</label>");  
     
buildhtml("</td></tr>");
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");

buildhtml("<!------------------------");    
buildhtml("SECTION 8");    
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("你有律師或其他代表嗎?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
     
buildhtml("如果您由律師,或其他人或組織代表,請在下面提供他們的聯繫信息。");
buildhtml("<br><br>");
buildhtml("姓名(名,中間名,姓氏): " + padd(F_Fullname21,40) + "<br>");
buildhtml("街道地址: " + padd(F_Address21,50) + "<br>");
buildhtml("城市: " + padd(F_City21,50) + "<br>");  
buildhtml("州:  " + padd(F_State21,3) + " 郵遞區號: " + padd(F_Zipcode21,10) + "<br>"); 
buildhtml("電話號碼: " + padd(F_Telephone21,15) + "<br>");
buildhtml("電子郵件: " + padd(F_Email21,50) + "<br>");
buildhtml("<br>");
buildhtml("如果我們需要更多關於您所發生情況的描述的更多資訊,我們應該联络誰?");
buildhtml("<br>");
buildhtml("<input name=F_Attorney5_You type='checkbox' " + F_Attorney5_You + " ><label>您本人</label>"); 
buildhtml("<input name=F_Attorney6_You type='checkbox' " + F_Attorney6_You + " ><label>您的代表</label>");
 
buildhtml("</td></tr>");
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");


buildhtml("<!------------------------");    
buildhtml("SECTION 9");    
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("簽名和驗證");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("本人聲明,根據本人所知所信,以上提供的資訊真實且正確。故意的虛假陳述應受法律懲罰。");
buildhtml("<br><br>");
buildhtml("本人在此授權發佈本次調查所需的任何醫療資訊。");
buildhtml("</td></tr>");
     
buildhtml("<tr><td>");
buildhtml("投訴人簽名: " + padd(F_Print_Signature,25));
buildhtml(" 日期: " + padd(F_Print_Signature_Date,15));
buildhtml("</td></tr>");
     
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("</table>");
     
buildhtml("<table align=center width=780px border=0 cellspacing=0 cellpadding=0>");
buildhtml("<tr>");
buildhtml("<th colspan=2 width='100%' style='text-align:right;'>");
buildhtml("<br>");
buildhtml("表格 CC-4 (修訂於 5/2017)");
buildhtml("<br>");
buildhtml("</th>");
buildhtml("</tr>");
buildhtml("</table>");



buildhtml("</table>");

buildhtml("</body>");
buildhtml("</html>");

childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');
childWindow.document.open();
childWindow.document.write(str_html);
childWindow.document.close();
childWindow.print();
childWindow.close();
str_html = "";
return true;
}

Anon7 - 2021