|
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 : |
/***************************************************
DATE: June 21, 2017
AUTHOR: VIATEQ CORPORATION / Dennis R. Dunston
DESCRIPTION: This Javascript helps to resolve form inputs and menu behavior.
***************************************************/
var str_html = "";
/*************************
return patt.test(str);
*************************/
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;
if (str.length > 0) {
if (str.length < 3 || str.match(regex) == null) {
alert("Please re-enter your email address.");
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("Please re-enter your email address.");
document.getElementById(id).focus();
document.getElementById(id).select();
return false;
}
return true;
}
else
{
if (str.length == 0 && tel.length == 0) {
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("Please re-enter your email address.");
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("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("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("Please re-enter your agency telephone number 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("Please re-enter your telephone number 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("Please re-enter your telephone number 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("Please re-enter your telephone number 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("Please re-enter your telephone number 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("Please re-enter your telephone number 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("Please re-enter your point of contact telephone number 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("Please re-enter your representative or attorney telephone number 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("Please re-enter your zip code number: as 99999 or 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();
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("Please re-enter your zip code number: as 99999 or 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("Please re-enter your zip code number: as 99999 or 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("Please re-enter your point of contact zip code: as 99999 or 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("Please re-enter the representative or attorney zip code: as 99999 or 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;
//alert("test state >" + str + "<");
if (str.length < 1) {
alert("Required Field. Please select a state from the drop down list.");
//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("Required Field. Please select a state from the drop down list.");
//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("Required field. Please re-type your complaint narrative without special characters ( ` @ ~ ^ | [ ] { } ).");
document.getElementById(id).focus();
document.getElementById(id).select();
return false;
}
}
else
{
alert("Required field. Your complaint narrative is blank, please re-type.");
//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("Required field. Please re-type your discrimination narrative without special characters ( ` @ ~ ^ | [ ] { } ).");
document.getElementById(id).focus();
document.getElementById(id).select();
return false;
}
}
else
{
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("Required Field , please type a valid first, middle, and last name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
alert("Required Field , please type a valid first, middle, and last name.");
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("Required Field , please type a valid first, middle, and last name.");
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("Required Field , please type a valid first, middle, and last name.");
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("Required Field , please type a valid first, middle, and last name.");
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("Required Field , please sign with your first, middle, and last name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
alert("Required Field , please sign with your first, middle, and last name.");
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("Please type a valid allegations of employment discrimination contact name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
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("Required Field. Please type in a valid company street address.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
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("Required Field. Please type in a valid street address.");
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("Required Field. Please type in a valid street address.");
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("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("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("Required Field. Please enter a valid city name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
alert("Required Field. Please enter a valid city name.");
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("Required Field. Please enter a valid city name for the company.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
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("Required Field. Please enter a valid city name.");
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("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("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("Required Field , please type a valid company name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
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("Required Field , please type a valid agency name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
}
else
{
alert("Required Field , please type a valid agency name.");
document.getElementById(id).select();
document.getElementById(id).focus();
return false;
}
return true;
}
/***************************************************
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("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
function mobile() {
if (document.documentElement.clientWidth < 900) {
alert("Mobile");
}
}
/***************************************************
MISC -
***************************************************/
/***************************************************
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;
}
function validateForm(id) {
document.getElementById("myform").Instructions.value = "NoShow";
document.myform.submit();
}
/***************************************************
CLEAR FORM
***************************************************/
function clear_form() {
document.myform.reset();
return false;
}
/***************************************************
INSTRUCTION
***************************************************/
function instructions() {
document.myform2.submit();
return false;
}
/***************************************************
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</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("Complaint Involving Employment Discrimination by a<br>Federal Contractor or Subcontractor");
buildhtml("</h1>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h4>");
buildhtml("<u>Please read the instructions before completing this form. </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("Expires: 5/31/2020");
buildhtml("</h4>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<h4>");
buildhtml("<button style='margin-right: 15px; margin-top: 5px;' readonly> Reset Form </button>");
buildhtml("<button style='margin-right: 15px; margin-top: 5px;' readonly> Print Form </button>");
buildhtml("<button style='margin-right: 0px; margin-top: 5px;' readonly> Submit </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("How can we<br> reach you?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td width='610' >");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("Name (First, Middle, Last): " + padd(F_Fullname1,45) + "<br>");
buildhtml("Street Address: " + padd(F_Address1,50) + "<br>");
buildhtml("City: " + padd(F_City1,50) + "<br>");
buildhtml("State: " + padd(F_State1,3) + " Zip Code: " + padd(F_Zipcode1,10) + "<br>");
buildhtml("Telephone Number: " + padd(F_Telephone1,15) + "<br>");
buildhtml("<input name=home type='checkbox' " + F_Home1 + " ><label>Home</label>");
buildhtml("<input name=home type='checkbox' " + F_Work1 + " ><label>Work</label>");
buildhtml("<input name=home type='checkbox' " + F_Cell1 + " ><label>Cell</label>");
buildhtml("<br>");
buildhtml("E-mail: " + padd(F_Email1,50) + "<br>");
buildhtml("<h3>");
buildhtml("Have you filed these allegations of employment discrimination with another federal or local agency?");
buildhtml("<br>");
buildhtml("</h3>");
buildhtml("<input name=home type='checkbox' " + F_Allegations_Yes + " ><label>Yes</label>");
buildhtml("<input name=home type='checkbox' " + F_Allegations_No + " ><label>No</label>");
buildhtml("<br>");
buildhtml("If yes, which agency:" + padd(F_Agency_Name1,45) + "<br>");
buildhtml("Contact Name:" + padd(F_Agency_POC1,35) + "Phone Number:" + padd(F_Agency_Telephone1,12) + "<br>");
buildhtml("<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("Name (First, Middle, Last): " + padd(F_Fullname2,45) + "<br>");
buildhtml("Street Address: " + padd(F_Address2,50) + "<br>");
buildhtml("City: " + padd(F_City2,50) + "<br>");
buildhtml("State: " + padd(F_State2,3) + " Zip Code: " + padd(F_Zipcode2,10) + "<br>");
buildhtml("Telephone Number: " + padd(F_Telephone2,15) + "<br>");
buildhtml("<input name=home2 type='checkbox' " + F_Home2 + " ><label>Home</label>");
buildhtml("<input name=work2 type='checkbox' " + F_Work2 + " ><label>Work</label>");
buildhtml("<input name=cell2 type='checkbox' " + F_Cell2 + " ><label>Cell</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("What is the name<br> of the employer<br> that you believe<br> discriminated or<br> retaliated against<br> you?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("Company Name: " + padd(F_Fullname3,50) + "<br>");
buildhtml("Street Address: " + padd(F_Address3,50) + "<br>");
buildhtml("City: " + padd(F_City3,50) + "<br>");
buildhtml("State: " + padd(F_State3,3) + " Zip Code: " + padd(F_Zipcode3,12) + "<br>");
buildhtml("Telephone Number: " + padd(F_Telephone3,15) + "<br>");
buildhtml("<h3><b>");
buildhtml("Give the date(s) and times you believe you were discriminated against:");
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("Why do you<br>believe your<br>employer<br>discriminated or<br>retaliated against<br>you?");
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>Race</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>American Indian or Alaska<br>Native<br>Indicate Tribal Affiliation<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>Asian</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>Black or African American</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>Native Hawaiian or Other Pacific Islander</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>White</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>National Origin</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>Hispanic or Latino</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>Other</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>Color</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>Religion</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>Sex</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>Sexual Orientation</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>Gender Identity</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>Inquiring About Pay</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>Discussing Pay</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>Disclosing Pay</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>Protected Veteran Status</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>Disability</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>Retaliation</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("How did you learn that you could file a complaint with OFCCP?");
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>Poster</label>");
buildhtml("<input name=F_Complaint53 type='checkbox' " + F_Complaint53 + " ><label>Community Organization</label>");
buildhtml("<input name=F_Complaint54 type='checkbox' " + F_Complaint54 + " ><label>OFCCP Meeting/Event</label>");
buildhtml("<input name=F_Complaint55 type='checkbox' " + F_Complaint55 + " ><label>Brochure</label>");
buildhtml("<input name=F_Complaint56 type='checkbox' " + F_Complaint56 + " ><label>Other</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>Your Complaint:</b></h2>");
buildhtml("<b>Please describe below what you think the employer did or didn't do that you believe caused discrimination or retaliation, including:</b>");
buildhtml("<ol>");
buildhtml("<li>What actions the employer took against you.</li>");
buildhtml("<li>Why you believe those actions were based on your: race; color; religion; sex; sexual orientation; gender identity; national origin; disability; veteran status; and/or inquiries about, discussions, or disclosures of your pay or the pay of others; and/or in retaliation for filing a complaint, participating in discrimination proceedings, opposing unlawful discrimination, or exercising any other rights protected by OFCCP.</li>");
buildhtml("<li>When the employer actions happened, where they happened, and who was involved.</li>");
buildhtml("<li>What harm, if any, you or others suffered because of the alleged discrimination or retaliation.</li>");
buildhtml("<li>What explanation, if any, your employer or people representing your employer offered for their actions.</li>");
buildhtml("<li>Who was in the same or similar situation as you and how they were treated. Include information such as the race, color, religion, sex, sexual orientation, gender identity, national origin, disability, or protected status of these individuals, if known.</li>");
buildhtml("<li>What information you have about federal contracts the company that you worked for had at the time of the discrimination or retaliation you describe in this complaint.</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("Do you think the<br>discrimination<br>includes or affects<br>others?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("Do you believe other employees or applicants were treated the same way as you described above?");
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("Do you have an <br>attorney or other<br> representative?");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("If you are represented by an attorney, or another person, or an organization, please provide their contact information below.");
buildhtml("<br><br>");
buildhtml("Name (First, Middle, Last): " + padd(F_Fullname21,40) + "<br>");
buildhtml("Street Address: " + padd(F_Address21,50) + "<br>");
buildhtml("City: " + padd(F_City21,50) + "<br>");
buildhtml("State: " + padd(F_State21,3) + " Zip Code: " + padd(F_Zipcode21,10) + "<br>");
buildhtml("Telephone Number: " + padd(F_Telephone21,15) + "<br>");
buildhtml("E-mail: " + padd(F_Email21,50) + "<br>");
buildhtml("<br>");
buildhtml("Who should we contact if we need more information about your description of what occurred?");
buildhtml("<br>");
buildhtml("<input name=F_Attorney5_You type='checkbox' " + F_Attorney5_You + " ><label>You</label>");
buildhtml("<input name=F_Attorney6_You type='checkbox' " + F_Attorney6_You + " ><label>Your Representative</label>");
buildhtml("</td></tr>");
buildhtml("</table>");
buildhtml("</td>");
buildhtml("</tr>");
buildhtml("<!------------------------");
buildhtml("SECTION 9");
buildhtml("------------------------->");
buildhtml("<tr>");
buildhtml("<td>");
buildhtml("<h2><b>");
buildhtml("Signature and<br>Verification");
buildhtml("</b></h2>");
buildhtml("</td>");
buildhtml("<td>");
buildhtml("<table width='100%' border='0' cellspacing='0' cellpadding='5'>");
buildhtml("<tr><td>");
buildhtml("I declare under penalty of perjury that the information given above is true and correct to the best of my knowledge or belief.");
buildhtml("<br><br>");
buildhtml("A willful false statement is punishable by law.I hereby authorize the release of any medical information needed for this investigation.");
buildhtml("</td></tr>");
buildhtml("<tr><td>");
buildhtml("Signature of Complainant: " + padd(F_Print_Signature,25));
buildhtml(" Date: " + 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("Form CC-4 (Revised 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;
}