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_vietnamese.js
/***************************************************
DATE:		May 15, 2017
AUTHOR:		VIATEQ CORPORATION / Dennis R. Dunston
DESCRIPTION:	This Javascript helps to resolve form inputs and menu behavior.
***************************************************/



var str_html = "";



/***************************************************
Date for Signature
***************************************************/
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;
} 

/***************************************************
Sleep - This functions was created for GoogleChrome which doesnot 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("Vui lòng nhập lại địa chỉ email.");
		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("Vui lòng nhập lại địa chỉ email.");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		return false;
	}
		return true;
}
else
{
	if (str.length  == 0 && tel.length == 0) {
		alert("Vui lòng nhập lại địa chỉ email hoặc số điện thoại theo định dạng: 999-999-9999.. ");
		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("Vui lòng nhập lại địa chỉ email.");
		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("Vui lòng nhập lại địa chỉ email.");
		//alert("Please re-enter your point of contact email address.");
		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("Vui lòng nhập lại địa chỉ email.");
		//alert("Please re-enter your representative or attorney email address.");
		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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại số điện thoại theo định dạng: 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("Vui lòng nhập lại mã bưu chính theo định dạng: 99999 hoặc 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("Vui lòng nhập lại mã bưu chính theo định dạng: 99999 hoặc 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("Vui lòng nhập lại mã bưu chính theo định dạng: 99999 hoặc 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("Vui lòng nhập lại mã bưu chính theo định dạng: 99999 hoặc 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("Vui lòng nhập lại mã bưu chính theo định dạng: 99999 hoặc 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("Trường bắt buộc, vui lòng chọn bang theo danh sách từ trên xuống.");
	//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("Trường bắt buộc, vui lòng chọn bang theo danh sách từ trên xuống.");
	//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]+$/;

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("Nội dung cáo buộc của bạn đang bị để trống hoặc sử dụng ký tự đặc biệt, ( ` @ ~ ^ | [ ] { } ).");
		//alert("Required field. Please re-type your complaint narrative without special characters ( ~ ^ | ).");
		document.getElementById(id).focus();
		document.getElementById(id).select(); 
		return false;
	}
}
else
{
	alert("Nội dung cáo buộc của bạn đang bị để trống.");
	//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]+$/;

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("Phần yêu cầu. Vui lòng gõ lại chi tiết về cách đối xử không có ký tự đặc biệt, ( ` @ ~ ^ | [ ] { } ).");
		document.getElementById(id).focus();
		document.getElementById(id).select();
		return false;
	}
}
else
{
	alert("Thời gian và ngày cáo buộc của bạn đang bị để trống hoặc chứa kí tự đặc biệt, ( ` @ ~ ^ | [ ] { } ).");
	//alert("Required field. Your discrimination narrative is blank.");
	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 = /^[ẮẰẲẴẶĂẤẦẨẪẬÂÁÀÃẢẠĐẾỀỂỄỆÊÉÈẺẼẸÍÌỈĨỊỐỒỔỖỘÔỚỜỞỠỢƠÓÒÕỎỌỨỪỬỮỰƯÚÙỦŨỤÝỲỶỸỴắằẳẵặăấầẩẫậâáàãảạđếềểễệêéèẻẽẹíìỉĩịốồổỗộôớờởỡợơóòõỏọứừửữựưúùủũụýỳỷỹỵ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("Trường bắt buộc, vui lòng nhập đầy đủ họ tên hợp lệ.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{

	alert("Trường bắt buộc, vui lòng nhập đầy đủ họ tên hợp lệ.");
	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]+$/;

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("Trường bắt buộc, vui lòng nhập đầy đủ họ tên hợp lệ.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập đầy đủ họ tên hợp lệ.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập đầy đủ họ tên hợp lệ.");
		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]+$/;

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("Mục chữ ký của bạn đang bị để trống hoặc chứa ký tự đặc biệt.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
	alert("Mục chữ ký của bạn đang bị để trống hoặc chứa ký tự đặc biệt.");
	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]+$/;


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("Các cáo buộc về thông tin phân biệt đối xử nơi làm việc của bạn đang bị để trống.")
		//alert("Please type a valid allegations of employment discrimination contact name.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("Các cáo buộc về thông tin phân biệt đối xử nơi làm việc của bạn đang bị để trống.")
		//alert("Please type a valid allegations of employment discrimination contact name.");
		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]+$/;

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("Địa chỉ công ty đang bị để trống hoặc chứa ký tự đặc biệt.");
		//alert("Required Field. Please type in a valid company street address.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("Địa chỉ công ty đang bị để trống hoặc chứa ký tự đặc biệt.");
		//alert("Required Field. Please type in a valid company street address.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập địa chỉ phố hợp lệ.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập địa chỉ phố hợp lệ.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập địa chỉ phố hợp lệ.");
		//alert("Please type in a valid street address for the point of contact.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập địa chỉ phố hợp lệ.")
		//alert("Please type a valid street address for representative or attorney.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		//alert("Required Field. Please enter a valid city name.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		//alert("Required Field. Please enter a valid city name for the company.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		//alert("Required Field. Please enter a valid city name for the company.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		//alert("Required Field. Please enter a valid city name for the company.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		//alert("Please enter a valid city name for the point of contact.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập tên thành phố hợp lệ.");
		//alert("Please type a valid city name for representative or attorney.");
		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]+$/;

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("Trường bắt buộc, vui lòng nhập tên công ty hợp lệ.")
		//alert("Required Field , please type a valid company name.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("Trường bắt buộc, vui lòng nhập tên công ty hợp lệ.")
		//alert("Required Field , please type a valid company name.");
		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]+$/;

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("Vui lòng nhập tên đại lý.");
		//alert("Required Field , please type a valid agency name.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
	}
}
else
{
		alert("Vui lòng nhập tên đại lý.");
		//alert("Required Field , please type a valid agency name.");
		document.getElementById(id).select();
		document.getElementById(id).focus();
		return false;
}

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

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

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

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("Tên đại lý đang bị để trống. Thông tin liên hệ với đại lý đang bị để trống. Số điện thoại đại lý đang bị để trống hoặc chứa ký tự đặc biệt.");
	//alert("Please enter the agency name, agency point of contact, and agency telephone number.");
}


}
 
/***************************************************
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");
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='vi'>");
buildhtml("<head>");
buildhtml("<title>OFCCP Complaint Form Vietnamese</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("Khiếu Nại Liên Quan Đến Việc Phân Biệt Đối Xử Trong Công<br>Việc Bởi Nhà Thầu Hoặc Nhà Thầu Phụ Liên Bang");
buildhtml("</h1>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h4>");
buildhtml("<u>Xin vui lòng đọc hướng dẫn trước khi hoàn thành đơn này.</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("Ngày hết hạn: 5/31/2020");
buildhtml("</h4>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h4>");
buildhtml("<button style='margin-right: 15px; margin-top: 5px;' readonly> Rov Teeb </button>");
buildhtml("<button style='margin-right: 15px; margin-top: 5px;' readonly> Luam </button>");
buildhtml("<button style='margin-right: 0px; margin-top: 5px;' readonly>  Xa </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("Chúng tôi liên hệ với quý vị bằng cách nào?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td width='610' >");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
     
buildhtml("<tr><td>");
buildhtml("Họ tên (Tên, Tên đệm, Họ):  " + padd(F_Fullname1,45) + "<br>");
buildhtml("Địa chỉ:  " + padd(F_Address1,50) + "<br>");
buildhtml("Thành phố:  " + padd(F_City1,50) + "<br>");
buildhtml("Bang:  " + padd(F_State1,3) + " Mã Bưu điện: " + padd(F_Zipcode1,10) + "<br>");
buildhtml("Số điện thoại:   " + padd(F_Telephone1,15) + "<br>");

buildhtml("<input name=home type='checkbox' " + F_Home1 + " ><label>Nhà</label>");
buildhtml("<input name=home type='checkbox' " + F_Work1 + " ><label>Nơi làm việc</label>");
buildhtml("<input name=home type='checkbox' " + F_Cell1 + " ><label>Di động</label>");

buildhtml("<br>");
      
buildhtml("E-mail: " + padd(F_Email1,50) + "<br>"); 
    
buildhtml("<h3>");
buildhtml("Bạn đã từng nộp những cáo buộc về sự kỳ thị trong việc làm với một cơ quan liên bang hoặc địa phương khác?");
buildhtml("<br>");
buildhtml("</h3>"); 
buildhtml("<input name=home type='checkbox' " + F_Allegations_Yes + " ><label>Vâng</label>");
buildhtml("<input name=home type='checkbox' " + F_Allegations_No + " ><label>Không</label>");

buildhtml("<br>");
buildhtml("Nếu có, cơ quan nào:" + padd(F_Agency_Name1,45) + "<br>");
buildhtml("Cơ quan liên lạc:" + padd(F_Agency_POC1,35) +   "Số điện thoại:" + 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("Who can we<br> contact if we<br> cannot reach<br>you?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");
     
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("Họ tên (Tên, Tên đệm, Họ):  " + padd(F_Fullname2,45) + "<br>");
buildhtml("Địa chỉ:  " + padd(F_Address2,50) + "<br>");
buildhtml("Thành phố:  " + padd(F_City2,50) + "<br>");
buildhtml("Bang:  " + padd(F_State2,3) + " Mã Bưu điện: " + padd(F_Zipcode2,10) + "<br>");
buildhtml("Số điện thoại:   " + padd(F_Telephone2,15) + "<br>");

buildhtml("<input name=home2 type='checkbox' " + F_Home2 + " ><label>Nhà</label>");
buildhtml("<input name=work2 type='checkbox' " + F_Work2 + " ><label>Nơi làm việc</label>");
buildhtml("<input name=cell2 type='checkbox' " + F_Cell2 + " ><label>Di động</label>");

buildhtml("<br>");
      
buildhtml("E-mail: " + 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("Tên của người sử dụng lao động mà quý vị tin rằng đã phân biệt đối xử hoặc trả thù quý vị?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");

buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("Tên công ty:   " + padd(F_Fullname3,50) + "<br>");
buildhtml("Địa chỉ:  " + padd(F_Address3,50) + "<br>");
buildhtml("Thành phố: " + padd(F_City3,50) + "<br>");
buildhtml("Bang: " + padd(F_State3,3) + " Zip Code: " + padd(F_Zipcode3,12) + "<br>");
buildhtml("Số điện thoại:  " + padd(F_Telephone3,15) + "<br>");
     
buildhtml("<h3><b>");
buildhtml("Nêu (những) ngày và thời gian quý vị cho rằng mình đã bị phân biệt đối xử hoặc trả thù:");
buildhtml("</b></h3>");
   
buildhtml(F_Narrative5);     
     
buildhtml("<br>");
      
buildhtml("</td>");
buildhtml("</tr>");
     
buildhtml("</table>");

buildhtml("</td>");

buildhtml("</tr>");



buildhtml("<!------------------------");
buildhtml("SECTION 4");
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("Tại sao quý vị tin rằng người sử dụng lao động của mình đã phân biệt đối xử hoặc trả thù quý vị?");
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>Sắc tộc</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>Người Mỹ Da đỏ hoặc Người Alaska<br>Nêu rõ Liên kết Bộ lạc:<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>Châu Á</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>Người Mỹ da đen hoặc gốc Phi</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>Người Hawaiian hoặc Đảo Thái Bình Dương khá</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>Da trắng</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>Nguồn gốc quốc gia</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>Người Hispanic hoặc Latinh</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>Khác</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>Màu da</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>Tôn giáo</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>Giới tính</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>Xu hướng Tình dục</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ản dạng Giới</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>Yêu cầu Thông tin về Tiền lương</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>Thảo luận về Tiền lương</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>Tiết lộ về Tiền lương</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>Tư cách Cựu chiến binh được Bảo vệ</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>Khuyết tật</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>Trả thù</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("Quý vị biết mình có thể nộp đơn khiếu nại tới OFCCP từ nguồn nào?");
buildhtml("</b></h2>");
buildhtml("<h3>");
      
buildhtml("<input name=F_Complaint51 type='checkbox' " + F_Complaint51 + " ><label>Internet</label>");
buildhtml("<input name=F_Complaint52 type='checkbox' " + F_Complaint52 + " ><label>Áp phích</label>");
buildhtml("<input name=F_Complaint53 type='checkbox' " + F_Complaint53 + " ><label>Tổ chức Cộng đồng</label>");
buildhtml("<input name=F_Complaint54 type='checkbox' " + F_Complaint54 + " ><label>Cuộc họp/Sự kiện của OFCCP</label>");
buildhtml("<input name=F_Complaint55 type='checkbox' " + F_Complaint55 + " ><label>Brochure</label>");
buildhtml("<input name=F_Complaint56 type='checkbox' " + F_Complaint56 + " ><label>Khác</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>Khiếu nại của Quý vị:</b></h2>");
buildhtml("<b>Xin vui lòng mô tả dưới đây những gì quý vị nghĩ người sử dụng lao động đã làm hoặc không làm mà quý vị tin rằng đó là sự phân biệt đối xử hoặc trả thù, bao gồm:</b>");
     
buildhtml("<ol>");
buildhtml("<li>Những hành động của người sử dụng lao động chống lại quý vị.</li>");
buildhtml("<li>Tại sao quý vị tin rằng những hành động đó là do: sắc tộc; màu da; giới tính; xu hướng tình dục; bản dạng giới; nguồn gốc quốc gia; tình trạng khuyết tật; tư cách cựu chiến binh của quý vị; và/hoặc những yêu cầu thông tin, thảo luận hoặc tiết lộ về tiền lương của quý vị hoặc của người khác; và/hoặc sự trả thù do đệ đơn, tham gia tố tụng phân biệt đối xử, chống phân biệt đối xử trái pháp luật hoặc thực hiện các quyền khác được bảo vệ bởi OFCCP.</li>");
buildhtml("<li>Những hành động của người sử dụng lao động xảy ra khi nào, ở nơi nào và có ai tham gia.</li>");
buildhtml("<li>Những tác tại, nếu có, đối với quý vị hoặc những người khác do sự phân biệt đối xử hoặc trả thù được cáo buộc này.</li>");
buildhtml("<li>Những giải thích, nếu có, mà người sử dụng lao động hoặc người đại diện người tuyển dụng lao động của quý vị đưa ra về những hành động của họ.</li>");
buildhtml("<li>Người ở trong tình cảnh giống hoặc tương tự với quý vị và cách họ được đối xử. Bao gồm những thông tin về sắc tộc, màu da, tôn giáo, giới tính, xu hướng tình dục, bản dạng giới, nguồn gốc quốc gia, tình trạng khuyết tật hoặc tư cách cựu chiến binh của những người này nếu biết.</li>");
buildhtml("<li>Những thông tin quý vị có về các hợp đồng liên bang của công ty nơi quý vị đã làm việc vào thời điểm xảy ra sự phân biệt đối xử hoặc trả thù mà quý vị mô tả trong đơn khiếu nại này.</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("Quý vị có nghĩ sự phân biệt đối xử bao gồm hoặc ảnh hưởng đến người khác không?");
buildhtml("</b></h2>");
buildhtml("</td>");

buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("Quý vị có tin rằng những nhân viên hoặc người ứng tuyển khác được đối xử giống như quý vị mô tả ở trên không?");
buildhtml("<br>");
     
buildhtml("<input name=F_Treated5 type='checkbox' " + F_Treated5 + " ><label>Yes</label>");    
buildhtml("<input name=F_Treated6 type='checkbox' " + F_Treated6 + " ><label>No</label>");  
     
buildhtml("</td></tr>");
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");

buildhtml("<!------------------------");    
buildhtml("SECTION 8");    
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("Quý vị có luật sư hoặc người đại diện không?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
     
buildhtml("Nếu quý vị được đại diện bởi một luật sư hoặc một người hoặc tổ chức khác, xin vui lòng cung cấp thông tin liên lạc của họ dưới đây.");
buildhtml("<br><br>");
buildhtml("Họ tên (Tên, Tên đệm, Họ): " + padd(F_Fullname21,40) + "<br>");
buildhtml("Địa chỉ: " + padd(F_Address21,50) + "<br>");
buildhtml("Thành phố:" + padd(F_City21,50) + "<br>");  
buildhtml("Bang: " + padd(F_State21,3) + " Mã Bưu điện: " + padd(F_Zipcode21,10) + "<br>"); 
buildhtml("Số điện thoại: " + padd(F_Telephone21,15) + "<br>");
buildhtml("E-mail: " + padd(F_Email21,50) + "<br>");
buildhtml("<br>");
buildhtml("Nếu chúng tôi cần thêm thông tin về mô tả của quý vị về những gì đã xảy ra, chúng tôi nên liên hệ với ai?");
buildhtml("<br>");
buildhtml("<input name=F_Attorney5_You type='checkbox' " + F_Attorney5_You + " ><label>Quý vị</label>"); 
buildhtml("<input name=F_Attorney6_You type='checkbox' " + F_Attorney6_You + " ><label>Đại diện của Quý vị</label>");
 
buildhtml("</td></tr>");
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");


buildhtml("<!------------------------");    
buildhtml("SECTION 9");    
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("Chữ ký và Xác minh");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("Tôi tuyên bố theo hình phạt về tội khai man rằng những thông tin trên là đúng sự thật và chính xác theo sự hiểu biết hoặc niềm tin của tôi. Lời khai bịa đặt cố ý sẽ bị trừng phạt bởi pháp luật.");
buildhtml("<br><br>");
buildhtml("Theo đây, tôi cho phép tiết lộ bất kỳ thông tin y tế cần thiết cho cuộc điều tra này.");
buildhtml("</td></tr>");
     
buildhtml("<tr><td>");
buildhtml("Chữ ký Người khiếu nại: " + padd(F_Print_Signature,25));
buildhtml(" Ngày: " + 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("Đơn CC-4 (Điềi chỉnh 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