MALICIOUS
124
Risk Score
Malware Insights
MITRE ATT&CK
T1059.001 PowerShell
T1204.002 Malicious File
T1566.002 Spearphishing Attachment
The PDF file contains numerous embedded JavaScript streams and exhibits characteristics associated with exploit preparation, specifically related to CVE-2010-0188. The presence of JavaScript actions and the high stream count suggest obfuscation and potential execution of malicious code. One of the extracted artifacts, 'javascript_obj2237_020.js', is flagged as suspicious. The overall structure points towards a malicious PDF designed to exploit vulnerabilities and potentially download further payloads.
Machine Learning
- Nyx PDF Classifier suspicious score 0.4030
Heuristics 8
-
JavaScript action low 3 related findings PDF_JAVASCRIPTPDF contains a /JavaScript action. Generic JavaScript is common in benign forms; specific dangerous APIs are scored by separate rules.
-
PDF JavaScript exploit cluster critical PDF_JS_EXPLOIT_CLUSTERPDF combines an executable JavaScript/action surface with exploit staging indicators such as eval/unescape/fromCharCode, XFA script content, or a related CVE pattern. Benign form JavaScript remains low-severity, but this correlated cluster is high-confidence malicious behavior.Matched line in script
return sString;var test = String.fromCharCode(144); -
Embedded JS stream low PDF_JSPDF references a /JS stream. Generic JavaScript is common in benign forms; specific dangerous APIs are scored by separate rules.
-
PDF JavaScript opens or fetches a remote URL/document low PDF_JS_REMOTE_DOC_FETCHEmbedded JavaScript calls app.openDoc() against a remote filesystem (cFS:'CHTTP'/'CFTP') or app.launchURL() to open an external / base64-encoded URL. This is the JS-driven remote-document / phishing-redirect technique — distinct from a /Launch file dropper. It exploits no CVE; the risk is where the URL leads.Matched line in script
// app.launchURL("http://www.adobe.com"); -
Unusually high stream count medium PDF_MANY_STREAMSPDF contains 501+ stream objects — may indicate heap spray or heavy obfuscation
-
AcroForm button with action trigger low PDF_ACROFORM_BUTTONPDF contains a /Btn form field together with a SubmitForm/URI/Launch/JS trigger — this is the building block of fake 'Download' or 'Open' button overlays used in PDF phishing lures
-
Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGEOne or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
-
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://www.w3.org/1999/02/22-rdf-syntax-ns# Referenced by PDF JavaScript
- http://purl.org/dc/elements/1.1/Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/g/img/Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/mm/Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/sType/ResourceRef#Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/t/pg/Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/sType/Dimensions#Referenced by PDF JavaScript
- http://ns.adobe.com/xap/1.0/g/Referenced by PDF JavaScript
- http://ns.adobe.com/pdf/1.3/Referenced by PDF JavaScript
Extracted artifacts 32
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
javascript_obj2199_000.js |
pdf-javascript-stream | PDF /JS object 2199 at offset 0x5021 | 178 bytes |
SHA-256: 02763d0b97f3b488fc3a30dd82817accf5fdfff6e3fe5e008636626ae4c3003f |
|||
Preview scriptFirst 1,000 lines of the extracted script
function CheckChnEng(doc, event)
{
var value = AFMergeChange(event);
if(value.charCodeAt(value.length-1)<12288 && !event.change.match("^[a-zA-Z\ ]*$"))
event.rc = false;
}
|
|||
javascript_obj2217_001.js |
pdf-javascript-stream | PDF /JS object 2217 at offset 0x5431 | 102 bytes |
SHA-256: b81c69b1f10d6373625583e9bf50ce17cb3d0b89d1de94e8939b137c2a574be3 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function GetError()
{
var errorName = this.getField("fldError").value;
return errorName;
}
|
|||
javascript_obj2222_002.js |
pdf-javascript-stream | PDF /JS object 2222 at offset 0x5587 | 83 bytes |
SHA-256: 3308320d248e15f4247255ac71c51c1093417e81c0c9de702acea883b7fb99ea |
|||
Preview scriptFirst 1,000 lines of the extracted script
function SetError(ifldName)
{
this.getField("fldError").value = ifldName;
}
|
|||
javascript_obj2230_003.js |
pdf-javascript-stream | PDF /JS object 2230 at offset 0x5755 | 187 bytes |
SHA-256: 9b160d19334bd56892170b86188c49574febdcb9ac509210fcaccee51ca3d16d |
|||
Preview scriptFirst 1,000 lines of the extracted script
function eSetFocus(istr)
{
if (GetError()!="" && GetError()!=istr){
this.getField(GetError()).setFocus();
return true;
}else{
return false;
}
}
|
|||
javascript_obj2593_005.js |
pdf-javascript-stream | PDF /JS object 2593 at offset 0x353ED | 49 bytes |
SHA-256: 504189b07839845a0b0a6b2fec209b98ef2ce785b9c387ad4ea61078bb8b5fbc |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change); //CheckNameCap(); |
|||
javascript_obj2595_006.js |
pdf-javascript-stream | PDF /JS object 2595 at offset 0x3547D | 94 bytes |
SHA-256: 91798ecd92e2f43f96a8c14669a5c168ae5a8d35171751b6a7acca9f8c50f0e6 |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change);
if (!event.change.match("^[0-9]*$")) {
event.rc = false;
}
|
|||
javascript_obj2598_007.js |
pdf-javascript-stream | PDF /JS object 2598 at offset 0x356BB | 90 bytes |
SHA-256: c812fa1f7d0804ae8135a933fd602dbf40b2a354bd7768f9a0362abc4405970f |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change); KeyFilter (this, "^[0-9]+$", "^[0-9]+$", "dobMth", "dobYr"); |
|||
javascript_obj2601_008.js |
pdf-javascript-stream | PDF /JS object 2601 at offset 0x35911 | 91 bytes |
SHA-256: 4a11062ce06fdbdf909e26403564cc72f6ea751064561e09fe6d680daa579c4b |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change); KeyFilter (this, "^[0-9]+$", "^[0-9]+$", "dobDay", "dobMth"); |
|||
javascript_obj2603_009.js |
pdf-javascript-stream | PDF /JS object 2603 at offset 0x35B39 | 47 bytes |
SHA-256: 22a8d36c78278d1275f42b32c1b29d33017804950f86420201a1dea2d59bc639 |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change); //CheckNameCap(); |
|||
javascript_obj2606_010.js |
pdf-javascript-stream | PDF /JS object 2606 at offset 0x35C26 | 148 bytes |
SHA-256: 781be7cd12751af7b7c26920e3c6172f0e5b4e8848e9636dec195b34d1ceb852 |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change);
event.change = event.change.toUpperCase();
if (!event.change.match("^[aA0-9]*$")) {
event.rc = false;
}
|
|||
javascript_obj2609_011.js |
pdf-javascript-stream | PDF /JS object 2609 at offset 0x35E63 | 97 bytes |
SHA-256: f8cbc95388aa6e8c4a785734390d3b178051fe4ef4753eed3bea7e510b074ca4 |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change); KeyFilter (this, "^[0-9]+$", "^[0-9]+$", "hkidDigit", "hkidChkD") |
|||
javascript_obj2611_012.js |
pdf-javascript-stream | PDF /JS object 2611 at offset 0x36014 | 164 bytes |
SHA-256: ac085ba32f5bb169e82a77ad2098d0ec1d3d229aafb8828b23183b62d69055dd |
|||
Preview scriptFirst 1,000 lines of the extracted script
var alpha = this.getField("hkidAlpha");
//alpha.value = alpha.valueAsString.toUpperCase();
if (GetError()=="" || GetError()=="hkidAlpha"){
SetError("");
}
|
|||
javascript_obj2616_013.js |
pdf-javascript-stream | PDF /JS object 2616 at offset 0x3626E | 96 bytes |
SHA-256: 70bdf25ffc7ab416662e0bdf374e264c499c7df49ba0e2f2a627b89ecb45d6d1 |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change);
if (!event.change.match("^[0-9]*$")) {
event.rc = false;
}
|
|||
javascript_obj2163_014.js |
pdf-javascript-stream | PDF /JS object 2163 at offset 0x11355C | 94 bytes |
SHA-256: 50882de2fa932efa184f96e8ee550ea6a50044b6d399637932666cc83fb725a9 |
|||
Preview scriptFirst 1,000 lines of the extracted script
CheckFullSize(event.change);
if (!event.change.match("^[0-9]*$")) {
event.rc = false;
}
|
|||
javascript_obj2232_015.js |
pdf-javascript-stream | PDF /JS object 2232 at offset 0x5885 | 2439 bytes |
SHA-256: 0a4ecb6c67fb50ad82596bc67b0226244ae82c7c63b9adda4d784064b31cbe09 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function hkidValidation(doc, ID_Alpha, ID_Digit, ID_ChkD )
{
var alpha = doc.getField(ID_Alpha);
var digit = doc.getField(ID_Digit);
var check = doc.getField(ID_ChkD);
if (alpha.valueAsString == "" && digit.valueAsString == "" && check.valueAsString == ""){return true;}
else if (alpha.valueAsString != "" && digit.valueAsString != "" && check.valueAsString != "")
{
var CheckDigit = "";
var ArrAlpha = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
var ArrDigit = new Array("10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35");
var AlphaSum = 0;
var DigitSum = 0;
var i = 0;
var j = 0;
/* if (check.valueAsString.toUpperCase() == "A"){CheckDigit = 10;}
else if (check.valueAsString.match("^[1-9]*$")){CheckDigit = check.value;}
else if (check.valueAsString == "0"){CheckDigit = 11;}
else{return false;} */
// if (alpha.value.length == 1) { TwoAlpha.value = "1" + alpha.value.charAt(0);}
for (j=9; j>1; j--)
{if (j > 7)
{ if (alpha.value.length == 1)
{ if (j == 9) {AlphaSum = j * 36;}
else
{ for (i =0;i<26;i++)
{if (alpha.value.charAt(0).toUpperCase() == ArrAlpha[i])
{AlphaSum = AlphaSum + (ArrDigit[i]*j);
break;
}
}
}
}
else
{ for (i =0;i<26;i++)
{if (alpha.value.charAt(9-j).toUpperCase() == ArrAlpha[i])
{AlphaSum = AlphaSum + (ArrDigit[i]*j );
break;
}
}
}
}
else if (digit.valueAsString.length != 6) {return false;}
else
{ DigitSum = DigitSum + (digit.valueAsString.charAt(7-j)*j);
}
}
var checkID = 11 - ((AlphaSum + DigitSum)%11);
if (checkID == 10) {CheckDigit = "A";}
else if (checkID == 11) {CheckDigit = "0";}
else CheckDigit = checkID;
if (CheckDigit != check.value){return false;}
else {return true;}
}
else{return false;}
}
|
|||
javascript_obj2233_016.js |
pdf-javascript-stream | PDF /JS object 2233 at offset 0x5BB6 | 1400 bytes |
SHA-256: 28a851867441f6620715987a9284cddd5f094983a9424a0335a31e9dc71e3337 |
|||
Preview scriptFirst 1,000 lines of the extracted script
�� / / v a r i a b l e t o s t o r e w h e t h e r d o c u m e n t h a s b e e n o p e n e d a l r e a d y o r n o t
v a r b A l r e a d y O p e n e d ;
f u n c t i o n d o c O p e n e d ( ) {
i f ( b A l r e a d y O p e n e d ! = " t r u e " ) {
/ / a p p . a l e r t ( "V�f/� g啱��e���lBm�S�P N���e� , c�N�u3��fB� N�exx��If�|= r \ n I f t h e i n f o r m a t i o n r e q u e s t e d i n v o l v e s p e r s o n a l d a t a , d i g i t a l s i g n a t u r e i s r e q u i r e d f o r t h e s u b m i s s i o n o f t h e a p p l i c a t i o n " , 1 , 0 ) ;
/ / n o w s e t b A l r e a d y O p e n e d t o t r u e s o i t d o e s n t r u n a g a i n
b A l r e a d y O p e n e d = " t r u e " ;
}
e l s e {
/ / d o c u m e n t h a s a l r e a d y b e e n o p e n e d
}
}
/ / c a l l t h e d o c O p e n e d ( ) f u n c t i o n
i f ( b A l r e a d y O p e n e d ! = " t r u e " ) {
t h i s . n o c a c h e = t r u e ;
t h i s . n o a u t o c o m p l e t e = t r u e ;
c h e c k V e r s i o n ( ) ;
/ / E r r M s g ( " e r r M s g " ) ; - m o v e t o p a g e 1 o p e n p a g e
d o c O p e n e d ( ) ;
}
|
|||
javascript_obj2234_017.js |
pdf-javascript-stream | PDF /JS object 2234 at offset 0x5E25 | 2120 bytes |
SHA-256: 01ecf8adb04541a4523d366e0c9ae0e3fb6a693d673717f9a78bb5a5950d823e |
|||
Preview scriptFirst 1,000 lines of the extracted script
function checkVersion()
{
var viewType = app.viewerType.toLowerCase();
var viewVers = app.viewerVersion;
if (viewType == "reader") {
if (viewVers < 7.00)
{
var result = app.alert({
cMsg: "Your Adobe Reader version is " + viewVers+".\n\nThis PDF form requires version 7.0.5 or higher. Do you want to launch to Adobe website?",
nType: 2,
nIcon: 2
});
if (result == 4)
{
this.baseURL = "http://";
this.getURL("www.adobe.com",false);
}
else
{
this.closeDoc(true);
}
}
}
else if (viewType == "exchange") {
if (viewVers < 7.00)
{
var result = app.alert({
cMsg: "Your Adobe Acrobat version is " + viewVers+".\n\nThis PDF form requires version 7.0.5 or higher. Do you want to launch to Adobe website?",
nType: 2,
nIcon: 2
});
if (result == 4)
{
this.baseURL = "http://";
this.getURL("www.adobe.com",false);
}
else
{
this.closeDoc(true);
}
}
}
else if (viewType == "exchange-pro") {
if (viewVers < 7.00)
{
var result = app.alert({
cMsg: "Your Adobe Acrobat version is " + viewVers+".\n\nThis PDF form requires version 7.0.5 or higher. Do you want to launch to Adobe website?",
nType: 2,
nIcon: 2
});
if (result == 4)
{
this.baseURL = "http://";
this.getURL("www.adobe.com",false);
}
else
{
this.closeDoc(true);
}
}
}
}
checkVersion();
|
|||
javascript_obj2235_018.js |
pdf-javascript-stream | PDF /JS object 2235 at offset 0x5FFB | 981 bytes |
SHA-256: 7630710805486d977fce8926658e46f5ab4a78dccf1c04ce9842c0cd183e1a50 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function checkFullName(vcomma,vlang,vfld)
{
//true,"Eng",this.getField("))
var errorFlag = 0;
var i = 0;
var comma = 0;
var name = vfld.valueAsString;
name = TrimSpace(name);
vfld.value = name;
if (name.length!=0){
if (vcomma) {
for (i=0;i<name.length;i++){
if (name.charAt(i)==",")
comma++;
}
}
if (name.charAt(name.length-1)=="," || name.charAt(name.length-1)=="-"||name.charAt(0)=="-"||name.charAt(0)=="."||name.charAt(0)==","||comma>1){
errorFlag = 1;
}
}
// jessica added to check the "'"
if (name !="" && errorFlag ==0) {
if (!CheckName(vfld)){errorFlag = 1;}
else if (vfld.valueAsString.charAt(vfld.valueAsString.length-1)=="'"){
if (vfld.valueAsString.length==1){errorFlag = 1;}
else if (!vfld.valueAsString.charAt(vfld.valueAsString.length-2).match("^[A-Za-z]*$")){ errorFlag = 1;}
}
}
else if (name == ""){errorFlag = 3;}
return errorFlag;
}
|
|||
javascript_obj2236_019.js |
pdf-javascript-stream | PDF /JS object 2236 at offset 0x61DA | 751 bytes |
SHA-256: f224f131dc20954cd93afb30c4a9fd95d30c0c2cd5e4427b749bfa028eb23b87 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function checkEmail(addr)
{
var validation = "";
var strEmail = new String(addr.valueAsString);
var strEmailArray1 = strEmail.split("@");
var strEmailArray2;
for(var i = 0; i <strEmail.length; i++)
{if (strEmail.charAt(i) == " "){return false;}
// jessica added on 23Nov06 not valid for Chinese
if(strEmail.charCodeAt(i)>= 12288){ return false;}
}
if (strEmailArray1.length != 2) {return false;}
if (strEmailArray1[0].charAt(0)=="."){return false;}
strEmailArray2 = strEmailArray1[1].split(".");
if(strEmailArray2.length < 2){return false;}
if (strEmailArray1[0] == ""){return false;}
for(var i = 0; i <strEmailArray2.length; i++)
{if (strEmailArray2[i] == ""){return false;}}
}
|
|||
javascript_obj2237_020.js |
pdf-javascript-stream | PDF /JS object 2237 at offset 0x635D | 342 bytes |
SHA-256: b0c929f13177283012ad4036654ce01413d0aafb48e1b7790dc9b4ca97f35e5d |
|||
|
Detection
ClamAV:
No threats found
Obfuscation or payload:
likely
Carved artifact contains 1 eval/decoder/string-building token(s).
|
|||
Preview scriptFirst 1,000 lines of the extracted script
function TrimSpace(sString)
{
while (sString.substring(sString.length-1, sString.length) == ' ')
{
sString = sString.substring(0,sString.length-1);
}
while (sString.substring(0, 1) == ' ')
{
sString = sString.substring(1,sString.length);
}
return sString;var test = String.fromCharCode(144);
}
|
|||
javascript_obj2238_021.js |
pdf-javascript-stream | PDF /JS object 2238 at offset 0x6453 | 5555 bytes |
SHA-256: 890a317fb2991a5335edca47fe8f59b4090ded51020ebeace9078ec8f13f6ef2 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function StructAddr(fld,fld2,fld3,fld4,fld5)
{
if (fld == "reset") {
this.getField("areaChn").value = this.getField("fldoareaChn").value;
this.getField("areaEng").value = this.getField("fldoareaEng").value;
this.getField("area").value = this.getField("fldoarea").value;
this.getField("bldg").value = this.getField("fldobldg").value;
this.getField("block").value = this.getField("fldoblock").value;
this.getField("district").value = this.getField("fldodistrict").value;
this.getField("districtChn").value = this.getField("fldodistrictChn").value;
this.getField("districtEng").value = this.getField("fldodistrictEng").value;
this.getField("estate").value = this.getField("fldoestate").value;
this.getField("flat").value = this.getField("fldoflat").value;
this.getField("floor").value = this.getField("fldofloor").value;
this.getField("street").value = this.getField("fldostreet").value;
this.getField("inputLang").value = this.getField("fldoinputLang").value;
this.getField("otherInfo2").value = this.getField("fldootherInfo2").value;
this.getField("otherInfo1").value = this.getField("fldootherInfo1").value;
this.getField("addrType").value = this.getField("fldoaddrType").value;
}
else if (fld == "assign")
{ this.getField("fldoareaChn").value = this.getField("areaChn").value;
this.getField("fldoareaEng").value = this.getField("areaEng").value;
this.getField("fldoarea").value = this.getField("area").value;
this.getField("fldobldg").value = this.getField("bldg").value;
this.getField("fldoblock").value = this.getField("block").value;
this.getField("fldodistrict").value = this.getField("district").value;
this.getField("fldodistrictChn").value = this.getField("districtChn").value;
this.getField("fldodistrictEng").value = this.getField("districtEng").value;
this.getField("fldoestate").value = this.getField("estate").value;
this.getField("fldoflat").value = this.getField("flat").value;
this.getField("fldofloor").value = this.getField("floor").value;
this.getField("fldostreet").value = this.getField("street").value;
this.getField("fldoinputLang").value = this.getField("inputLang").value;
this.getField("fldoaddrType").value = this.getField("addrType").value;
this.getField("fldootherInfo1").value = this.getField("otherInfo1").value;
this.getField("fldootherInfo2").value = this.getField("otherInfo2").value;
if (this.getField("inputLang").value == "Off") {this.getField("fldoinputLang").value = "Eng";}
if (this.getField("addrType").value == "Off") {this.getField("fldoaddrType").value = "HK";}
}
else if (fld == "clear")
{
this.getField("district").hidden = false;
this.getField("areaChn").hidden = true;
this.getField("districtChn").hidden = true;
this.getField("areaEng").hidden = false;
this.getField("districtEng").hidden = false;
this.getField("fldFocus").hidden = true;
this.getField("addrType").value = "HK";
this.getField("inputLang").value = "Eng";
this.getField("areaEng").fillColor = color.transparent;
this.getField("areaEng").readonly = false;
this.getField("areaChn").fillColor = color.transparent;
this.getField("areaChn").readonly = false;
this.getField("district").fillColor = color.transparent;
this.getField("district").readonly = false;
this.getField("district").hidden = false;
}
else if (fld == "resetborder") {
this.getField("areaChn").strokeColor = color.transparent;
this.getField("districtChn").strokeColor = color.transparent;
this.getField("areaEng").strokeColor = color.transparent;
this.getField("districtEng").strokeColor = color.transparent;
this.getField("district").strokeColor = color.transparent;
this.getField("otherInfo1").strokeColor = color.transparent;
this.getField("otherInfo2").strokeColor = color.transparent;
/*
this.getField("street").strokeColor = color.transparent;
this.getField("estate").strokeColor = color.transparent;
this.getField("bldg").strokeColor = color.transparent;
this.getField("block").strokeColor = color.transparent;
this.getField("floor").strokeColor = color.transparent;
this.getField("flat").strokeColor = color.transparent;
*/
}
else if (fld == "resetfields")
{
StructAddr("color",color.transparent,"floor","",false);
StructAddr("color",color.transparent,"flat","",false);
StructAddr("color",color.transparent,"block","",false);
StructAddr("color",color.transparent,"bldg","",false);
StructAddr("color",color.transparent,"street","",false);
StructAddr("color",color.transparent,"estate","",false);
StructAddr("color",color.transparent,"district","",false);
StructAddr("color",color.transparent,"area","",true);
StructAddr("color",color.transparent,"otherInfo1","",false);
StructAddr("color",color.transparent,"otherInfo2","",false);
this.getField("btnArea").hidden = true;
this.getField("addrType").value = "HK";
this.getField("otherInfo2").hidden = true;
this.getField("fldLine").hidden = true;
if (this.getField("inputLang").value == "Eng") {
StructAddr("color",color.transparent,"areaEng",0,false);
StructAddr("color",color.transparent,"districtEng",0,false);
}
else {
StructAddr("color",color.transparent,"areaChn",0,false);
StructAddr("color",color.transparent,"districtChn",0,false);
}
}
else if (fld == "color") { //StructAddr("color",color.gray,"areaEng","",true);
var par1 = this.getField(fld3);
par1.fillColor = fld2;
par1.readonly = fld5;
if (fld4 !="NoData") {
par1.value = fld4;}
}
}
|
|||
javascript_obj2239_022.js |
pdf-javascript-stream | PDF /JS object 2239 at offset 0x67D2 | 525 bytes |
SHA-256: 45f6c8f2e7ec08cef736e519bfbf01dba0fc5aff007e3fe1fe70120f4a92a24b |
|||
Preview scriptFirst 1,000 lines of the extracted script
function StrikeThrough(pa1,pa2,pa3,pa4,vline,vline2)
{
var f = this.getField(pa1);
var g = this.getField(pa2);
//var h = this.getField(pa3);
//var p = this.getField(pa4);
if (f.buttonGetCaption() == vline) {
f.buttonSetCaption("");
g.buttonSetCaption(vline2);
// h.buttonSetCaption(vline);
// p.buttonSetCaption(vline);
}
else
{
g.buttonSetCaption(vline2);
// h.buttonSetCaption(vline);
// p.buttonSetCaption(vline);
}
if (vline == "")
{
f.buttonSetCaption(vline);
}
}
|
|||
javascript_obj2240_023.js |
pdf-javascript-stream | PDF /JS object 2240 at offset 0x68E3 | 8078 bytes |
SHA-256: c4103c0c7e6a993a188423bd208fe661e2cf01d6983e9d6c8161c34604ee34ad |
|||
Preview scriptFirst 1,000 lines of the extracted script
�� / / I D 1 0 0 3 B
f u n c t i o n M a n d a t o r y C h e c k ( d o c )
{
v a r m a n d a t o r y M s g = " " ;
v a r v a l i d a t i o n M s g = " " ;
v a r S e t F o c u s = " " ;
v a r v a l i d = t r u e ;
v a r s t r = " " ;
v a r e r r o r N o = 0 ;
v a r n u m = 0 ;
v a r l e a d s p a c e = " . " ;
v a r e n g s p a c e = " " ;
v a r m s g = " " ;
v a r v b i r t h D a t e = f a l s e ;
v a r v b i r t h M s g = f a l s e ;
/ / c h e c k i n c o r r e c t b i r t h D a t e
i f ( ! v b i r t h D a t e ) {
i f ( ! C h e c k C o m b D a t e 0 0 ( t h i s . g e t F i e l d ( " d o b D a y " ) , t h i s . g e t F i e l d ( " d o b M t h " ) , t h i s . g e t F i e l d ( " d o b Y r " ) , " " , " " , " p a s t " ) ) {
/ / s t r + = e r r o r N o + l e a d s p a c e + " " + G e t E r r o r M s g ( " F i e l d " , 1 , e n g s p a c e ) + " \ n " ;
v b i r t h M s g = t r u e ;
}
}
/ / i f i n v a l i d s e t r e d b o r d e r
i f ( v b i r t h M s g ) {
/ / e r r o r N o + + ;
/ / i f ( e r r o r N o = = 2 ) { l e a d s p a c e = " . " ; }
s e t I n v a l i d ( t h i s . g e t F i e l d ( " d o b D a y " ) , s t r ) ;
s e t I n v a l i d ( t h i s . g e t F i e l d ( " d o b M t h " ) , " " ) ;
s e t I n v a l i d ( t h i s . g e t F i e l d ( " d o b Y r " ) , " " ) ;
}
v a r a l p h a = t h i s . g e t F i e l d ( " h k i d A l p h a " ) ;
v a r d i g i t = t h i s . g e t F i e l d ( " h k i d D i g i t " ) ;
v a r c h e c k = t h i s . g e t F i e l d ( " h k i d C h k D " ) ;
v a r h k i d M s g = h k i d V a l i d a t i o n ( t h i s , " h k i d A l p h a " , " h k i d D i g i t " , " h k i d C h k D " ) ;
c h e c k . v a l u e = c h e c k . v a l u e A s S t r i n g . t o U p p e r C a s e ( ) ;
i f ( h k i d M s g = = f a l s e ) {
/ / s t r + = e r r o r N o + l e a d s p a c e + " " + G e t E r r o r M s g ( " F i e l d " , 2 , e n g s p a c e ) + " \ n " ;
/ / e r r o r N o + + ;
/ / i f ( e r r o r N o = = 3 ) { l e a d s p a c e = " . " ; }
s e t I n v a l i d ( t h i s . g e t F i e l d ( " h k i d A l p h a " ) , s t r ) ;
s e t I n v a l i d ( t h i s . g e t F i e l d ( " h k i d D i g i t " ) , " " ) ;
s e t I n v a l i d ( t h i s . g e t F i e l d ( " h k i d C h k D " ) , " " ) ;
}
i f ( v b i r t h M s g ) {
e r r o r N o + + ;
s t r + = e r r o r N o + l e a d s p a c e + " " + G e t E r r o r M s g ( " F i e l d " , 1 , e n g s p a c e ) + " \ n " ;
}
i f ( ! h k i d M s g ) {
e r r o r N o + + ;
s t r + = e r r o r N o + l e a d s p a c e + " " + G e t E r r o r M s g ( " F i e l d " , 2 , e n g s p a c e ) + " \ n " ;
}
/ / C h e c k i n g
i f ( v a l i d ) {
i f ( s t r ! = " " ) { a p p . a l e r t ( { c M s g : s t r , n I c o n : 0 , n T y p e : 4 } ) ;
S e t F o c u s . s e t F o c u s ( ) ;
}
e l s e g o S u b m i s s i o n ( ) ;
}
e l s e {
a p p . a l e r t ( { c M s g : m a n d a t o r y M s g , n I c o n : 0 , n T y p e : 4 } ) ;
S e t F o c u s . s e t F o c u s ( ) ;
r e t u r n f a l s e ;
}
/ / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * F U N C T I O N * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/ / s e t I n v a l i d
f u n c t i o n s e t I n v a l i d ( V N a m e , m s g )
{
V N a m e . s t r o k e C o l o r = c o l o r . r e d ;
i f ( m s g ! = " " ) { m a n d a t o r y M s g = m s g ; }
i f ( S e t F o c u s = = " " )
{
S e t F o c u s = V N a m e ;
}
/ / v a l i d = f a l s e ;
}
/ / s e t V a l i d
f u n c t i o n s e t V a l i d ( V N a m e )
{
V N a m e . s t r o k e C o l o r = c o l o r . t r a n s p a r e n t ;
}
/ / s e t V a l i d B
f u n c t i o n s e t V a l i d B ( V N a m e )
{
V N a m e . s t r o k e C o l o r = c o l o r . b l a c k ;
}
f u n c t i o n g o S u b m i s s i o n ( ) { / / j e s s i c a a d d e d o n 1 5 M a y 0 7
a p p . e x e c M e n u I t e m ( " S a v e A s " ) ;
/ * * * * * * * * t h e s u b m i t p r o c e d u r e i n S e t D o c u m e n t A c t i o n - D i d s a v e * /
/ / a p p . l a u n c h U R L ( " h t t p : / / w w w . a d o b e . c o m " ) ;
}
} / / m a n d a t o r y f u n c t i o n
/ * * * * * * * * * * * * * * * *
v a r r e s u l t 1 = a p p . a l e r t ( { c M s g : "��[P�hh<Ss\ � Q�� ��x�O�e�kcx�q!� � �hh<N }�� Q�� O`\ N
��Q�O\O�e90 \ n Y o u a r e a b o u t t o s u b m i t t h e e l e c t r o n i c f o r m . P l e a s e e n s u r e t h e i n f o r m a t i o n i s c o r r e c t . Y o u w i l l n o t b e a l l o w e d t o a m e n d t h e i n f o r m a t i o n o n c e t h e f o r m i s s u b m i t t e d . \ n \ nO`� ��O�e9]�Xk[�v���e�U� ? \ n D o y o u w a n t t o a m e n d t h e i n f o r m a t i o n y o u p u t i n ? " , n T y p e : 2 , n I c o n : 2 , c T i t l e : " I m m D e S e r v i c e s - e - S u b m i s s i o n " } ) ;
i f ( r e s u l t 1 = = 4 ) {
} e l s e {
v a r r e s u l t 2 = a p p . a l e r t ( { c M s g : "O`� ��Q2[Xkd�hh<U�� \ n D o y o u w a n t t o s a v e t h e f o r m ? " , n T y p e : 2 , n I c o n : 2 , c T i t l e : " I m m D e S e r v i c e s - e - S u b m i s s i o n " } ) ;
i f ( r e s u l t 2 = = 4 ) {
a p p . e x e c M e n u I t e m ( " S a v e A s " ) ;
}
t r y {
t h i s . s u b m i t F o r m ( { c U R L : " h t t p : / / c o n t e n t s e r v e r : 8 0 8 0 / e s e r v i c e s / a f s u b m i s s i o n " ,
b E m p t y : t r u e , / / P o s t a l l f i e l d s ( t r u e ) , o r d o N o t p o s t a l l f i e l d s ( f a l s e )
c S u b m i t A s : " X F D F " , / / P o s t P D F f o r m a t
c C h a r s e t : " u t f - 8 " } ) ;
/ / a p p . a l e r t ( { c M s g : "��[P�hh<]�b R�� Q�� ��~|~�� N v�ke�_0 \ n T h e e l e c t r o n i c f o r m h a s b e e n s u b m i t t e d s u c c e s s f u l l y . P l e a s e c o n t i n u e w i t h t h e f o l l o w i n g s t e p s . " , n T y p e : 0 , n I c o n : 2 , c T i t l e : " I m m D e S e r v i c e s - e - S u b m i s s i o n " } ) ;
} c a t c h ( e r r ) {
a p p . a l e r t ( { c M s g : "\
N
�w� ��[P�hh<�^N�Y1eW0 \ n e - S u b m i s s i o n f a i l . " , n T y p e : 0 , n I c o n : 2 , c T i t l e : " I m m D e S e r v i c e s - e - S u b m i s s i o n " } ) ;
}
}
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
|
|||
javascript_obj2241_024.js |
pdf-javascript-stream | PDF /JS object 2241 at offset 0x7053 | 394 bytes |
SHA-256: c835dc232ea87b2feebb15867d10c455975e237c2611acbc10b5ef6da7a58e82 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function KeyFilter(doc, keyRe, finalRe, curField, nextField) {
var value = AFMergeChange(event);
var errField="";
if (value)
if (value.match(keyRe))
{
if (event.rc && AFMergeChange(event).length == event.target.charLimit)
{
doc.getField(nextField).setFocus();
}
}
else
{
app.beep(0);
event.rc = false; // clears incorrect symbol
}
}
|
|||
javascript_obj2242_025.js |
pdf-javascript-stream | PDF /JS object 2242 at offset 0x7193 | 2527 bytes |
SHA-256: e4a71d5b01073ef53b6df121a3f1c8d0df6efbce0fcbec600e35043e3362dbe5 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function HKIDValidation(doc, ID_Alpha, ID_Digit, ID_ChkD )
{
var alpha = doc.getField(ID_Alpha);
var digit = doc.getField(ID_Digit);
var check = doc.getField(ID_ChkD);
//Jessica added 9Feb07
if (digit.valueAsString == "000000") {return false;}
if (alpha.valueAsString == "" && digit.valueAsString == "" && check.valueAsString == ""){return true;}
else if (alpha.valueAsString != "" && digit.valueAsString != "" && check.valueAsString != "")
{
var CheckDigit = "";
var ArrAlpha = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
var ArrDigit = new Array("10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35");
var AlphaSum = 0;
var DigitSum = 0;
var i = 0;
var j = 0;
/* if (check.valueAsString.toUpperCase() == "A"){CheckDigit = 10;}
else if (check.valueAsString.match("^[1-9]*$")){CheckDigit = check.value;}
else if (check.valueAsString == "0"){CheckDigit = 11;}
else{return false;} */
// if (alpha.value.length == 1) { TwoAlpha.value = "1" + alpha.value.charAt(0);}
for (j=9; j>1; j--)
{if (j > 7)
{ if (alpha.value.length == 1)
{ if (j == 9) {AlphaSum = j * 36;}
else
{ for (i =0;i<26;i++)
{if (alpha.value.charAt(0).toUpperCase() == ArrAlpha[i])
{AlphaSum = AlphaSum + (ArrDigit[i]*j);
break;
}
}
}
}
else
{ for (i =0;i<26;i++)
{if (alpha.value.charAt(9-j).toUpperCase() == ArrAlpha[i])
{AlphaSum = AlphaSum + (ArrDigit[i]*j );
break;
}
}
}
}
else if (digit.valueAsString.length != 6) {return false;}
else
{ DigitSum = DigitSum + (digit.valueAsString.charAt(7-j)*j);
}
}
var checkID = 11 - ((AlphaSum + DigitSum)%11);
if (checkID == 10) {CheckDigit = "A";}
else if (checkID == 11) {CheckDigit = "0";}
else CheckDigit = checkID;
if (CheckDigit != check.value){return false;}
else {return true;}
}
else{return false;}
}
|
|||
javascript_obj2243_026.js |
pdf-javascript-stream | PDF /JS object 2243 at offset 0x74E4 | 502 bytes |
SHA-256: d17fa5bbb33026d194cae7a4a8c001fb944c8f91df82fa601bb9b61c98eae4e5 |
|||
Preview scriptFirst 1,000 lines of the extracted script
�� f u n c t i o n G e t E r r o r M s g ( L e v e l , M s g N o , A d d S p a c e ) {
/ / D a t e V a l i d a t i o n
i f ( M s g N o = = 1 ) { r e t u r n "e�g N
kcx�0 \ n " + A d d S p a c e + " I n v a l i d d a t e . " }
/ / H K I D
i f ( M s g N o = = 2 ) { r e t u r n "��n/��N��I�_x�N
kcx�0 \ n " + A d d S p a c e + " I n v a l i d H K i d e n t i t y c a r d n o . " }
}
|
|||
javascript_obj2244_027.js |
pdf-javascript-stream | PDF /JS object 2244 at offset 0x7620 | 985 bytes |
SHA-256: 4a976e3fdadd74b6af3af6fd882291c4cb14626d80bc17eaa5573cda3d78cc46 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function ErrMsg(field)
{
var tempstr = 0;
var error = this.getField(field).value;
for (var i =0; i < error.length; i++)
{
if (error.charAt(i) == ";")
{
//app.alert(error.substring(tempstr,i));
var name = error.substring(tempstr,i);
if (name == "sex")
{
this.getField("fldMale").strokeColor = color.red;
this.getField("fldFemale").strokeColor = color.red;
}
else if (name.substring(0,7) == "appAddr")
{
this.getField("btnAddr").strokeColor = color.red;
}
else
{
this.getField(error.substring(tempstr,i)).strokeColor = color.red;
if (this.getField(error.substring(tempstr,i)).readonly == true) {
this.getField(error.substring(tempstr,i)).readonly = false;
}
}
tempstr = i + 1;
}
}
if (this.getField("noOfCopy").valueAsString != "") {this.getField("noOfCopy").readonly = false;}
}
|
|||
javascript_obj2245_028.js |
pdf-javascript-stream | PDF /JS object 2245 at offset 0x77C1 | 1562 bytes |
SHA-256: b544cb72d7c0e280da6be871b6c307d5c757f471f22ab95bfd40e2a6258bf99d |
|||
Preview scriptFirst 1,000 lines of the extracted script
function DateValidation(doc,d,m,y){
var today = new Date();
var indicator = doc.getField("flddobCheck");
var day = doc.getField(d);
var month = doc.getField(m);
var year = doc.getField(y);
//var year = doc.getField("dobYr");
var DOBDay = "";
var DOBMonth = "";
var DOBYr = "";
if (day.valueAsString == "" && month.valueAsString == "" && year.valueAsString == "" )
{
return true;
}
else if (day.valueAsString != "" && month.valueAsString != "" && year.valueAsString != "" && indicator.valueAsString !="m" )
{
if (day.valueAsString == "00")
{
DOBDay = "01";
}
else
{
DOBDay = day.valueAsString;
}
if (month.valueAsString == "00")
{
DOBMonth = "01";
}
else
{
DOBMonth = month.valueAsString;
}
DOBYr = year.valueAsString;
var myDate = new Date();
myDate.setFullYear(DOBYr,DOBMonth-1,DOBDay);
if (year.valueAsString < 1800 || year.valueAsString > today.getFullYear())
{
return false;
}
if (DOBMonth == "02")
{
if(DOBDay > "29" && (DOBYr%4) == 0 )
{ return false;}
if(DOBDay > "28" && (DOBYr%4) >0 )
{ return false;}
}
if (DOBMonth == "04" && DOBDay > "30")
{
return false;
}
if (DOBMonth == "06" && DOBDay > "30")
{
return false;
}
if (DOBMonth == "09" && DOBDay > "30")
{
return false;
}
if (DOBMonth == "11" && DOBDay > "30")
{
return false;
}
return true;
}
else
{
return false;
}
}
|
|||
javascript_obj2246_029.js |
pdf-javascript-stream | PDF /JS object 2246 at offset 0x79D4 | 1907 bytes |
SHA-256: 114e6d2d87b542aaf67fbcc48356b9601939c1b4d944b14a9cd910afd6fe081f |
|||
Preview scriptFirst 1,000 lines of the extracted script
function DOBValidation(doc){
var today = new Date();
var indicator = doc.getField("flddobCheck");
var day = doc.getField("dobDay");
var month = doc.getField("dobMth");
var year = doc.getField("dobYr");
//var year = doc.getField("dobYr");
var DOBDay = "";
var DOBMonth = "";
var DOBYr = "";
if (day.valueAsString != "00" && month.valueAsString == "00")
{
return false;
}
if (day.valueAsString == "" && month.valueAsString == "" && year.valueAsString == "" )
{
return true;
}
if (day.valueAsString > "31" || month.valueAsString > "12")
{
return false;
}
else if (day.valueAsString != "" && month.valueAsString != "" && year.valueAsString != "" && indicator.valueAsString !="m" )
{
if (day.valueAsString == "00")
{
DOBDay = "01";
}
else
{
DOBDay = day.valueAsString;
}
if (month.valueAsString == "00")
{
DOBMonth = "01";
}
else
{
DOBMonth = month.valueAsString;
}
DOBYr = year.valueAsString;
var myDate = new Date();
myDate.setFullYear(DOBYr,DOBMonth-1,DOBDay);
if (myDate>=today)
{
return false;
}
if (year.valueAsString < 1800 || year.valueAsString > today.getFullYear())
{
return false;
}
if (DOBMonth == "02" && DOBDay > "28")
{
if(DOBDay > "29")
{ return false;}
else if ((DOBYr.substring(2,4) == "00" && (DOBYr%400)> 0) || (DOBYr.substring(2,4) != "00" && (DOBYr%4)> 0))
{ return false;}
}
if (DOBMonth == "04" && DOBDay > "30")
{
return false;
}
if (DOBMonth == "06" && DOBDay > "30")
{
return false;
}
if (DOBMonth == "09" && DOBDay > "30")
{
return false;
}
if (DOBMonth == "11" && DOBDay > "30")
{
return false;
}
return true;
}
else
{
return false;
}
}
|
|||
javascript_obj2247_030.js |
pdf-javascript-stream | PDF /JS object 2247 at offset 0x7C2F | 3941 bytes |
SHA-256: 949e62edc4b7226ee740ce782edfd3f999d49739f58318938992ec8af2bc2d60 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function CleanRed()
{
//Jessica added26Jul07
var fields = new Array();
var i = 0;
for ( var j=0; j<this.numFields; j++) {
var fname = this.getNthFieldName(j) ;
if ( this.getField(fname).type != "button" && this.getField(fname).type != "signature") {
// fields[i] = fname;
this.getField(fname).strokeColor = color.transparent;
i = i + 1;
}
// this.getField("resideStat").strokeColor = color.transparent;
/*
// special button for str addr
this.getField("btnAddr").strokeColor = color.transparent;
// special button with strokecolor
this.getField("inputLang").strokeColor = color.black;
this.getField("addrType").strokeColor = color.black;
// clear errMsg value
this.getField("errMsg").valueAsString = "";
*/
}
/*****
this.getField("typeOfSrch").strokeColor = color.transparent;
this.getField("chnName").strokeColor = color.transparent;
this.getField("engSurname").strokeColor = color.transparent;
this.getField("engName").strokeColor = color.transparent;
this.getField("aliasEngSurname").strokeColor = color.transparent;
this.getField("aliasEngName").strokeColor = color.transparent;
this.getField("fldMale").strokeColor = color.transparent;
this.getField("fldFemale").strokeColor = color.transparent;
this.getField("fatherChn").strokeColor = color.transparent;
this.getField("fatherEng").strokeColor = color.transparent;
this.getField("motherChn").strokeColor = color.transparent;
this.getField("motherEng").strokeColor = color.transparent;
this.getField("dobDay").strokeColor = color.transparent;
this.getField("dobMth").strokeColor = color.transparent;
this.getField("dobYr").strokeColor = color.transparent;
this.getField("dobCalen").strokeColor = color.transparent;
this.getField("srchPrdFrDay").strokeColor = color.transparent;
this.getField("srchPrdFrMth").strokeColor = color.transparent;
this.getField("srchPrdFrYr").strokeColor = color.transparent;
this.getField("srchPrdToDay").strokeColor = color.transparent;
this.getField("srchPrdToMth").strokeColor = color.transparent;
this.getField("srchPrdToYr").strokeColor = color.transparent;
this.getField("midwifeName").strokeColor = color.transparent;
this.getField("national").strokeColor = color.transparent;
this.getField("birthAddr").strokeColor = color.transparent;
this.getField("regDateDay").strokeColor = color.transparent;
this.getField("regDateMth").strokeColor = color.transparent;
this.getField("regDateYr").strokeColor = color.transparent;
this.getField("regNo").strokeColor = color.transparent;
this.getField("noOfCopy").strokeColor = color.transparent;
this.getField("appName").strokeColor = color.transparent;
this.getField("appTel").strokeColor = color.transparent;
this.getField("btnAddr").strokeColor = color.transparent;
this.getField("appDate").strokeColor = color.transparent;
this.getField("appEmail").strokeColor = color.transparent;
this.getField("hkidAlpha").strokeColor = color.transparent;
this.getField("hkidDigit").strokeColor = color.transparent;
this.getField("hkidChkD").strokeColor = color.transparent;
this.getField("appHkidAlpha").strokeColor = color.transparent;
this.getField("appHkidDigit").strokeColor = color.transparent;
this.getField("appHkidChkD").strokeColor = color.transparent;
this.getField("aliasChn").strokeColor = color.transparent;
this.getField("information").strokeColor = color.transparent;
this.getField("trueCopy").strokeColor = color.transparent;
this.getField("appTDNo").strokeColor = color.transparent;
this.getField("appExt").strokeColor = color.transparent;
this.getField("appAddr1").strokeColor = color.transparent;
this.getField("appAddr2").strokeColor = color.transparent;
this.getField("appAddr3").strokeColor = color.transparent;
this.getField("appAddr4").strokeColor = color.transparent;
this.getField("appAddr5").strokeColor = color.transparent;
this.getField("appAddr6").strokeColor = color.transparent;
****/
}
|
|||
javascript_obj2248_031.js |
pdf-javascript-stream | PDF /JS object 2248 at offset 0x7F0E | 355 bytes |
SHA-256: 581ec1c86f32fb43247705af9e535701f3740fbefb5a691f3d0b7e2dbc8c68f9 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function ChkTypeOfSrch()
{
if(!this.getField("typeOfSrch").isBoxChecked(0) && !this.getField("typeOfSrch").isBoxChecked(1)){
app.alert(GetErrorMsg("Field",1,""));
this.getField("typeOfSrch").setFocus();
this.getField("typeOfSrch").strokeColor = color.red;
return false;
}else{
return true;
}
}
|
|||
javascript_obj2249_032.js |
pdf-javascript-stream | PDF /JS object 2249 at offset 0x800F | 998 bytes |
SHA-256: 6e1840f30e52e9e309ef31054af2c2b073de51bc2d97d438c320051b7e1de960 |
|||
Preview scriptFirst 1,000 lines of the extracted script
function CheckSurname(fld)
{
if (fld.valueAsString.charAt(0)=="-" || fld.valueAsString.charAt(fld.valueAsString.length-1)=="-"){
return false;
}
var i = 1;
for (i=1;i<fld.value.length-1;i++){
if (fld.valueAsString.charAt(i)=="-"){
if (fld.valueAsString.charAt(i-1)==" " || fld.valueAsString.charAt(i-1)=="." || fld.valueAsString.charAt(i-1)=="-" || fld.valueAsString.charAt(i+1)==" " || fld.valueAsString.charAt(i+1)=="." || fld.valueAsString.charAt(i+1)=="-"){
return false;
}
if (!((fld.valueAsString.charCodeAt(i-1)>=65 && fld.valueAsString.charCodeAt(i-1)<=90)||(fld.valueAsString.charCodeAt(i-1)>=97 && fld.valueAsString.charCodeAt(i-1)<=122))&&!((fld.valueAsString.charCodeAt(i+1)>=65 && fld.valueAsString.charCodeAt(i+1)<=90)||(fld.valueAsString.charCodeAt(i+1)>=97 && fld.valueAsString.charCodeAt(i+1)<=122))){
return false;
}
}
}
return true;
}
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.