Categories
Uncategorized

Local Law 152 of 2016 Periodic Gas Piping Inspections | Pipe inspection

Local Law 152 of 2016 Periodic Gas Piping Inspections Local Law 152 of 2016 Periodic Gas Piping Inspections

Local Law 152 of 2016 Periodic Gas Piping Inspections


Local Law 152 of 2016 Periodic Gas Piping Inspections <![CDATA[ var msgs = new Array(); function setBehaviours() { $each('gas_cert_GasPipe_Exisits_Flag', { onclick:function(){return validateGasPipingExists(this.form, this.form.gas_cert_GasPipe_Exisits_Flag, false);}}); validateGasPipingExists(this.document.forms[0], this.document.forms[0].gas_cert_GasPipe_Exisits_Flag, false); $each('gas_cert_submit_doc_type', { onclick:function(){return validateDocumentSubmissionType(this.form, this.form.gas_cert_submit_doc_type, false);}}); validateDocumentSubmissionType(this.document.forms[0], this.document.forms[0].gas_cert_submit_doc_type, false); $each('gas_cert_Corrections_Required_Flag', { onclick:function(){return validateCorrections_Required(this.form, this.form.gas_cert_Corrections_Required_Flag, false);}}); validateCorrections_Required(this.document.forms[0], this.document.forms[0].gas_cert_Corrections_Required_Flag, false); $each('gas_cert_Correction_Require_Additional_Time_Flag', { onclick:function(){return validateCorrectionsRequireAdditionalTime(this.form, this.form.gas_cert_Correction_Require_Additional_Time_Flag, false);}}); validateCorrectionsRequireAdditionalTime(this.document.forms[0], this.document.forms[0].gas_cert_Correction_Require_Additional_Time_Flag, false); $('gas_cert_Design_Prof_Type').onchange = function(){return validateDesignProfessionalType(this.form, this.form.gas_cert_Design_Prof_Type, "gas_cert_Design_Prof_Type");}; validateDesignProfessionalType(this.document.forms[0], this.document.forms[0].ll152_Owner_Type, "gas_cert_Design_Prof_Type"); if($('gas_cert_Owner_Stmt_Flag') != undefined){$('gas_cert_Owner_Stmt_Flag').onclick = function(){return validateStatements(this.form);};} if($('gas_cert_Utility_Stmt_Flag') != undefined){$('gas_cert_Utility_Stmt_Flag').onclick = function(){return validateStatements(this.form);};} configs['datetime'].maxDate = new Date().setDate(new Date().getDate() + 0); configs['datetime'].enableTime = false; for (var i = 0; i < examples.length; i++) { flatpickr(examples[i], configs[examples[i].getAttribute('data-id')] || {}); } window.scrollTo(0, 0); } function validateDate(form) { document.getElementsByName('gas_cert_Date_Inspection')[0].value = ''; configs['datetime'].defaultDate = ''; } function verifyLl152SubmitDobNow(form) { $(gas_cert_errormsg).style.display = "none"; for(count = 0; count < msgs.length; count++) { $(msgs[count]).innerHTML = ""; } //if(false) { //remove this if(getSelectValue(form.gas_cert_Location_Borough)=='') { $('gas_cert_Location_Boroughmsg').innerHTML = "
* Please select Borough”; msgs.push(‘gas_cert_Location_Boroughmsg’); window.scrollTo(0, 10); return false; } var fldArray = [‘gas_cert_Location_House_Num’, ‘gas_cert_Location_Street_Name’, ‘gas_cert_Owner_Email’, ‘gas_cert_Owner_Business_Address’, ‘gas_cert_Owner_Telephone’, ‘gas_cert_Owner_City’, ‘gas_cert_Owner_State’, ‘gas_cert_Owner_Zip’ ]; var fldDescArray = [ ‘House Number’, ‘Street Name’, ‘Owner Email’, ‘Address’, ‘Owner Telephone’, ‘Owner City’, ‘Owner State’, ‘Owner Zip Code’ ]; for (i=0; i<form.elements.length; i++) { var formelement = form.elements[i]; for (j=0; j<fldArray.length; j++) { if (formelement.name == fldArray[j]) { if (formelement.value !="") { //console.log(formelement.name); $(formelement.name+'msg').innerHTML=""; formelement.style.backgroundColor = '#FFFFFF'; } else { //alert("
* Please enter “+fldDescArray[j]); $(formelement.name+’msg’).innerHTML=”
* Please enter “+fldDescArray[j]; formelement.style.backgroundColor = ‘#FFCCC0′; msgs.push(formelement.name+’msg’); window.scrollTo(0, 100); formelement.focus(); return false; } } } } if(getSelectValue(form.gas_cert_Owner_Type) == ”) { $(‘gas_cert_Owner_Typemsg’).innerHTML = “
* Please select Owner Type”; msgs.push(‘gas_cert_Owner_Typemsg’); window.scrollTo(0, 10); return false; } if(form.gas_cert_Owner_Telephone.value !=”) { if(!/^d{3}-d{3}-d{4}$/.test(form.gas_cert_Owner_Telephone.value)) { $(‘gas_cert_Owner_Telephonemsg’).innerHTML=”
* Please enter valid phone number in 999-999-9999 format”; msgs.push(‘gas_cert_Owner_Telephonemsg’); window.scrollTo(0, 100); return false; } } /* if(form.gas_cert_Owner_Business_Name.value ==” && form.gas_cert_Owner_Last_Name.value == ” && form.gas_cert_Owner_First_Name.value ==”) { $(‘gas_cert_Owner_Last_Namemsg’).innerHTML=”
* Please enter First, Last Name or Business Name”; msgs.push(‘gas_cert_Owner_Business_Namemsg’); $(‘gas_cert_Owner_First_Namemsg’).innerHTML=”
* Please enter First, Last Name or Business Name”; msgs.push(‘gas_cert_Owner_First_Namemsg’); $(‘gas_cert_Owner_Business_Namemsg’).innerHTML=”
* Please enter First, Last Name or Business Name”; msgs.push(‘gas_cert_Owner_Business_Namemsg’); window.scrollTo(0, 100); return false; } if(form.gas_cert_Owner_Last_Name.value != ” && form.gas_cert_Owner_First_Name.value ==”) { $(‘gas_cert_Owner_First_Namemsg’).innerHTML=”
* Please enter First Name”; msgs.push(‘gas_cert_Owner_First_Namemsg’); window.scrollTo(0, 100); return false; } if(form.gas_cert_Owner_Last_Name.value == ” && form.gas_cert_Owner_First_Name.value !=”) { $(‘gas_cert_Owner_Last_Namemsg’).innerHTML=”
* Please enter Last Name”; msgs.push(‘gas_cert_Owner_Business_Namemsg’); window.scrollTo(0, 100); return false; } */ /* if(form.gas_cert_Owner_First_Name.value == ”) { $(‘gas_cert_Owner_First_Namemsg’).innerHTML=”
* Please enter First Name”; msgs.push(‘gas_cert_Owner_First_Namemsg’); window.scrollTo(0, 100); return false; } if(form.gas_cert_Owner_Last_Name.value == ”) { $(‘gas_cert_Owner_Last_Namemsg’).innerHTML=”
* Please enter Last Name”; msgs.push(‘gas_cert_Owner_Last_Namemsg’); window.scrollTo(0, 100); return false; } */ if(form.gas_cert_Owner_Rep_Phone.value !=”) { if(!/^d{3}-d{3}-d{4}$/.test(form.gas_cert_Owner_Rep_Phone.value)) { $(‘gas_cert_Owner_Rep_Phonemsg’).innerHTML=”
* Please enter valid phone number in 999-999-9999 format”; msgs.push(‘gas_cert_Owner_Rep_Phonemsg’); window.scrollTo(0, 100); return false; } } //} //remove this if(getRadioValue(form.gas_cert_GasPipe_Exisits_Flag) == ‘Y’) { if(getRadioValue(form.gas_cert_submit_doc_type) == ‘Completed GPS2’) { validateDetails(form); } else if(getRadioValue(form.gas_cert_submit_doc_type) == ‘Extension’) { //Do Nothing } else if(getRadioValue(form.gas_cert_submit_doc_type) == ‘No Gas Service’) { if(getElementArray().toString() != ‘Y,Y’) { $(‘gas_cert_Utility_Owner_Flagmsg’).innerHTML = “
* Please select above both checkboxes?”; msgs.push(‘gas_cert_Utility_Owner_Flagmsg’); document.getElementsByName(‘gas_cert_Utility_Stmt_Flag’)[0].focus(); return false; } } else if(getRadioValue(form.gas_cert_submit_doc_type) == ”) { $(‘gas_cert_submit_doc_typemsg’).innerHTML = “
* Please answer What are you submitting to the Department of Buildings?”; msgs.push(‘gas_cert_submit_doc_typemsg’); document.getElementsByName(‘gas_cert_submit_doc_type’)[0].focus(); return false; } } else if(getRadioValue(form.gas_cert_GasPipe_Exisits_Flag) == ‘N’) { if(getSelectValue(form.gas_cert_Design_Prof_Type) == ”) { $(‘gas_cert_Design_Prof_Typemsg’).innerHTML = “
* Please select License Type”; msgs.push(‘gas_cert_Design_Prof_Typemsg’); window.scrollTo(0, 100); form.gas_cert_Design_Prof_Type.focus(); return false; } if(form.gas_cert_Design_Prof_LicNo.value ==”) { $(‘gas_cert_Design_Prof_LicNomsg’).innerHTML = “
* Please enter License Number”; msgs.push(‘gas_cert_Design_Prof_LicNomsg’); window.scrollTo(0, 150); form.gas_cert_Design_Prof_LicNo.focus(); return false; } } else if(getRadioValue(form.gas_cert_GasPipe_Exisits_Flag) == ”) { $(‘gas_cert_GasPipe_Exisits_Flagmsg’).innerHTML = “
* Please answer if building contain a gas piping system?”; msgs.push(‘gas_cert_GasPipe_Exisits_Flagmsg’); document.getElementsByName(‘gas_cert_GasPipe_Exisits_Flag’)[0].focus(); return false; } if(form.supportdoc.value == ”) { if(getRadioValue(form.gas_cert_submit_doc_type) == ‘Extension’) { //Do Nothing } else { $(‘supportdocmsg’).innerHTML = “
* Please Select Periodic Gas Piping System Certification File to Upload”; msgs.push(‘supportdocmsg’); //window.scrollTo(0, 100); document.getElementsByName(‘supportdoc’)[0].focus(); return false; } } form.btnsubmit.disabled=true; form.btnsubmit.value=’Sending’; $(‘previewmsgsubmit1’).innerHTML = ‘Your request is being processed. Please wait…….

‘; $(‘previewmsgsubmit2’).innerHTML = ‘
Your request is being processed. Please wait…….’; form.submit(); } function validateDetails(form) { var fldArray = [ ‘gas_cert_Date_Inspection’, ‘gas_cert_Master_Plumber_LicNo’ ]; var fldDescArray = [ ‘Date of inspection’, ‘Master plumber License Number’ ]; for (i=0; i<form.elements.length; i++) { var formelement = form.elements[i]; for (j=0; j<fldArray.length; j++) { if (formelement.name == fldArray[j]) { if (formelement.value !="") { $(formelement.name+'msg').innerHTML=""; formelement.style.backgroundColor = '#FFFFFF'; } else { $(formelement.name+'msg').innerHTML="
* Please enter “+fldDescArray[j]; formelement.style.backgroundColor = ‘#FFCCC0′; msgs.push(formelement.name+’msg’); window.scrollTo(0, 100); formelement.focus(); return false; } } } } if(getRadioValue(form.gas_cert_Corrections_Required_Flag) == ”) { $(‘gas_cert_Corrections_Required_Flagmsg’).innerHTML = “
* Please answer if conditions requiring correction identified in the GPS1: Gas Piping System Periodic Inspection Report form prepared by the Licensed Master Plumber?”; msgs.push(‘gas_cert_Corrections_Required_Flagmsg’); document.getElementsByName(‘gas_cert_Corrections_Required_Flag’)[0].focus(); return false; } else if(getRadioValue(form.gas_cert_Corrections_Required_Flag) == ‘Y’) { if(getRadioValue(form.gas_cert_Correction_Require_Additional_Time_Flag) == ”) { $(‘gas_cert_Correction_Require_Additional_Time_Flagmsg’).innerHTML = “
* Please answer if correction of one or more of the conditions take additional time?”; msgs.push(‘gas_cert_Correction_Require_Additional_Time_Flagmsg’); document.getElementsByName(‘gas_cert_Correction_Require_Additional_Time_Flag’)[0].focus(); return false; } } } function validateGasPipingExists(form, GasPipingExistsFlag, errorFlag) { if (GasPipingExistsFlag != undefined) { var GasPipingExistsFlagValue = getRadioValue(GasPipingExistsFlag); if (GasPipingExistsFlagValue != undefined && GasPipingExistsFlagValue == ‘Y’) { if(!errorFlag) { resetFields(form, ‘gas_cert_GpsYes’); validateDocumentSubmissionType(form, form.gas_cert_submit_doc_type, errorFlag); validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); } $(‘gas_cert_GpsYes’).style.display = “inline”; $(‘gas_cert_GpsNo’).style.display = “none”; resetFields(form, ‘gas_cert_GpsNo’); document.getElementById(“supportdoc”).value = “”; } else if (GasPipingExistsFlagValue != undefined && GasPipingExistsFlagValue == ‘N’) { if(!errorFlag) { resetFields(form, ‘gas_cert_GpsNo’); } resetFields(form, ‘gas_cert_GpsYes’); validateDocumentSubmissionType(form, form.gas_cert_submit_doc_type, errorFlag); $(‘gas_cert_GpsNo’).style.display = “inline”; $(‘gas_cert_GpsYes’).style.display = “none”; document.getElementById(“supportdoc”).value = “”; validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); $(‘gas_cert_GasPipingSystemCertificate’).style.display = “inline”; } else { resetFields(form, ‘gas_cert_GpsYes’); validateDocumentSubmissionType(form, form.gas_cert_submit_doc_type, errorFlag); $(‘gas_cert_GpsYes’).style.display = “none”; $(‘gas_cert_GpsNo’).style.display = “none”; resetFields(form, ‘gas_cert_GpsNo’); resetFields(form, ‘gas_cert_GpsYes’); document.getElementById(“supportdoc”).value = “”; $(‘gas_cert_GasPipingSystemCertificate’).style.display = “none”; validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); } } return true; } function validateDocumentSubmissionType(form, GasCertSubmitDocType, errorFlag) { if (GasCertSubmitDocType != undefined) { var GasCertSubmitDocTypeValue = getRadioValue(GasCertSubmitDocType); if (GasCertSubmitDocTypeValue != undefined && GasCertSubmitDocTypeValue == ‘Completed GPS2’) { if(!errorFlag) { resetFields(form, ‘gas_cert’); } $(‘gas_cert’).style.display = “inline”; $(‘gas_cert_ApplianceConnectionExistsNo’).style.display = “none”; resetFields(form, ‘gas_cert_ApplianceConnectionExistsNo’); document.getElementById(“supportdoc”).value = “”; validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); $(‘gas_cert_GasPipingSystemCertificate’).style.display = “none”; } else if (GasCertSubmitDocTypeValue != undefined && GasCertSubmitDocTypeValue == ‘Extension’) { $(‘gas_cert’).style.display = “none”; resetFields(form, ‘gas_cert’); $(‘gas_cert_ApplianceConnectionExistsNo’).style.display = “none”; resetFields(form, ‘gas_cert_ApplianceConnectionExistsNo’); document.getElementById(“supportdoc”).value = “”; validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); $(‘gas_cert_GasPipingSystemCertificate’).style.display = “none”; } else if (GasCertSubmitDocTypeValue != undefined && GasCertSubmitDocTypeValue == ‘No Gas Service’) { if(!errorFlag) { resetFields(form, ‘gas_cert_ApplianceConnectionExistsNo’); } resetFields(form, ‘gas_cert’); $(‘gas_cert’).style.display = “none”; $(‘gas_cert_ApplianceConnectionExistsNo’).style.display = “inline”; document.getElementById(“supportdoc”).value = “”; validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); $(‘gas_cert_GasPipingSystemCertificate’).style.display = “none”; } else { $(‘gas_cert’).style.display = “none”; resetFields(form, ‘gas_cert’); $(‘gas_cert_ApplianceConnectionExistsNo’).style.display = “none”; resetFields(form, ‘gas_cert_ApplianceConnectionExistsNo’); document.getElementById(“supportdoc”).value = “”; validateCorrections_Required(form, form.gas_cert_Corrections_Required_Flag, errorFlag); $(‘gas_cert_GasPipingSystemCertificate’).style.display = “none”; } } return true;any } function validateStatements(form) { var ConnectionExisitsFlagValue = getRadioValue(form.gas_cert_submit_doc_type); if (ConnectionExisitsFlagValue != undefined && ConnectionExisitsFlagValue == ‘No Gas Service’) { if(getElementArray().toString() == ‘Y,Y’) { $(‘gas_cert_GasPipingSystemCertificate’).style.display = “inline”; $(‘gas_cert_stmt’).style.display = “none”; document.getElementById(“supportdoc”).value = “”; } else { document.getElementById(“supportdoc”).value = “”; $(‘gas_cert_stmt’).style.display = “inline”; $(‘gas_cert_GasPipingSystemCertificate’).style.display = “none”; } return true; } } function getElementArray() { form = this.document.forms[0]; var elementarray = new Array(); var wkTypesA2 = new Array(“gas_cert_Owner_Stmt_Flag”, “gas_cert_Utility_Stmt_Flag” ); for(var i = 0; i < wkTypesA2.length; i++) { if (form.elements[wkTypesA2[i]] != undefined) { if (form.elements[wkTypesA2[i]].type == 'checkbox' && form.elements[wkTypesA2[i]].checked) { elementarray.push(form.elements[wkTypesA2[i]].value); } } } return elementarray; } function validateCorrections_Required(form, CorrectionsRequiredFlag, errorFlag) { if (CorrectionsRequiredFlag != undefined) { var CorrectionsRequiredFlagValue = getRadioValue(CorrectionsRequiredFlag); if (CorrectionsRequiredFlagValue != undefined && CorrectionsRequiredFlagValue == 'Y') { $('gas_cert_GasPipingSystemCertificate').style.display = "none"; $('gas_cert_Corrections_Required_Yes').style.display = "inline"; $('gas_cert_stmt').style.display = "inline"; $('gas_cert_GasPipingSystemCertificateAdditionalLabel').style.display = "none"; document.getElementById("supportdoc").value = ""; validateCorrectionsRequireAdditionalTime(form, form.gas_cert_Correction_Require_Additional_Time_Flag, errorFlag); } else if (CorrectionsRequiredFlagValue != undefined && CorrectionsRequiredFlagValue == 'N') { resetFields(form, 'gas_cert_Corrections_Required_Yes'); $('gas_cert_Corrections_Required_Yes').style.display = "none"; $('gas_cert_GasPipingSystemCertificate').style.display = "inline"; $('gas_cert_stmt').style.display = "inline"; $('gas_cert_GasPipingSystemCertificateAdditionalLabel').style.display = "none"; document.getElementById("supportdoc").value = ""; } else { resetFields(form, 'gas_cert_Corrections_Required_Yes'); $('gas_cert_GasPipingSystemCertificate').style.display = "none"; $('gas_cert_Corrections_Required_Yes').style.display = "none"; $('gas_cert_GasPipingSystemCertificateAdditionalLabel').style.display = "none"; $('gas_cert_stmt').style.display = "inline"; document.getElementById("supportdoc").value = ""; validateCorrectionsRequireAdditionalTime(form, form.gas_cert_Correction_Require_Additional_Time_Flag, errorFlag); } } return true; } function validateDesignProfessionalType(form, validateDesignProfessionalType, errorFlag) { if (validateDesignProfessionalType != undefined) { resetFields(form, 'Design_Prof'); } } function validateCorrectionsRequireAdditionalTime(form, CorrectionsRequireAdditionalTimeFlag, errorFlag) { if (CorrectionsRequireAdditionalTimeFlag != undefined) { var CorrectionsRequireAdditionalTimeFlagValue = getRadioValue(CorrectionsRequireAdditionalTimeFlag); if (CorrectionsRequireAdditionalTimeFlagValue != undefined && CorrectionsRequireAdditionalTimeFlagValue == 'Y') { $('gas_cert_GasPipingSystemCertificateAdditionalLabel').style.display = "inline"; $('gas_cert_GasPipingSystemCertificate').style.display = "inline"; document.getElementById("supportdoc").value = ""; } else if (CorrectionsRequireAdditionalTimeFlagValue != undefined && CorrectionsRequireAdditionalTimeFlagValue == 'N') { $('gas_cert_GasPipingSystemCertificateAdditionalLabel').style.display = "none"; $('gas_cert_GasPipingSystemCertificate').style.display = "inline"; document.getElementById("supportdoc").value = ""; } else { $('gas_cert_GasPipingSystemCertificateAdditionalLabel').style.display = "none"; $('gas_cert_GasPipingSystemCertificate').style.display = "none"; document.getElementById("supportdoc").value = ""; } if(getRadioValue(form.gas_cert_GasPipe_Exisits_Flag) == 'N') { $('gas_cert_GasPipingSystemCertificate').style.display = "inline"; document.getElementById("supportdoc").value = ""; } if(getRadioValue(form.gas_cert_GasPipe_Exisits_Flag) == 'Y' && getRadioValue(form.gas_cert_Corrections_Required_Flag) == 'N') { $('gas_cert_GasPipingSystemCertificate').style.display = "inline"; document.getElementById("supportdoc").value = ""; } } return true; } function getSelectValue(select) { var selectval = ""; for( var i=0; i<select.length;i++){if(select[i].selected){selectval = select[i].value;}} return selectval; } function getRadioValue(radiogrp) { var radioval = ""; for( var i=0; i<radiogrp.length;i++){ if(radiogrp[i].checked){ radioval = radiogrp[i].value; } } return radioval; } function resetFields(form, id) { var divRef = document.getElementById(id); if (divRef != undefined) { var formInput = divRef.getElementsByTagName("input"); for(var i=0; i<formInput.length; i++) { if (formInput[i] != undefined) { if (formInput[i].type == 'radio' || formInput[i].type == 'checkbox') { formInput[i].checked = false; }else if (formInput[i].type == 'text') formInput[i].value =""; } } formInput = divRef.getElementsByTagName("select"); for(var i=0; i

Local Law 152 of 2016 Periodic Gas Piping Inspections

Local Law 152 of 2016 Periodic Gas Piping Inspections

If you have any question please CONTACT  Us Email us at:  infohouston@macco.com Call US :(936) 588-1888
Don’t Forget to Visit our Services 

 

For reliable and quality Managed IT Services and VoIP, Contact Precise Business Solutions 

Leave a Reply

Your email address will not be published. Required fields are marked *