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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/conceptlabs1/assets/js/cli_extra.js







function validate_inputs2() {
return true;
}  
   
/***************************************************
Validate
***************************************************/
function validate_inputs() {

if (check_name_required("name") && check_email("email") && check_schedule("service") && check_textarea_required("message")) {
	return true;
}
else
{
	return false;
}
return true;
}

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

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

if (str.length < 3 || str.match(regex) == null) {
	alert("Please retype your full name.");
	document.getElementById(id).focus();
	document.getElementById(id).select();
	return false;
}

//alert("OK Value:" + str);

return true;
}

/***************************************************
Check Email 2	
***************************************************/
function check_email2(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 < 3 || str.match(regex) == null || str.match(".co.za") || str.match(".za") || str.match(".ru") ) {

	alert("Please re-enter your email address.");
	document.getElementById(id).focus();
	document.getElementById(id).select();
	return false;
}
return true;
}


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

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

if (str.length < 3 || str.match(regex) == null || str.match(".co.za") || str.match(".za") || str.match(".ru") ) {
	alert("Please re-enter your email address.");
	document.getElementById(id).focus();
	document.getElementById(id).select();
	return false;
}
else
{

	alert("Good email!" + str);
	return true;
}

return false;
}

/***************************************************
Check Service
***************************************************/
function check_schedule(id) {

var e = document.getElementById(id);
var val1 = e.options[e.selectedIndex].value;
var txt = e.options[e.selectedIndex].text;

/*var regex = /^[0-9]+$/;*/
var regex = /^[a-zA-Z-'\n\r .\b\u4E00-\u9FA5\uF900-\uFA2D]+$/;

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

document.getElementById("service_description").value = "preparation of GSA SCHEDULE (" + txt + ") ";

//alert("Schedules:" + txt);
//alert("Schedules:" + val1);

if (val1 == null) {
	alert("Please select from the list of GSA Schedules.");
	document.getElementById(id).focus();
	document.getElementById(id).select();
	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.length < 3 || 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 message without special characters.");
		document.getElementById(id).focus();
		document.getElementById(id).select(); 
		return false;
	}
}
else
{
	alert("Required field. Your message is blank, please re-type.");
	//document.getElementById(id).focus();
	//document.getElementById(id).select();
	return false;
}
return true;
}

Anon7 - 2021