function WAAddError(formElement,errorMsg,focusIt,stopIt) { if (document.WAFV_Error) { document.WAFV_Error += "\n" + errorMsg; } else { document.WAFV_Error = errorMsg; } if (!document.WAFV_InvalidArray) { document.WAFV_InvalidArray = new Array(); } document.WAFV_InvalidArray[document.WAFV_InvalidArray.length] = formElement; if (focusIt && !document.WAFV_Focus) { document.WAFV_Focus = focusIt; } if (stopIt == 1) { document.WAFV_Stop = true; } else if (stopIt == 2) { formElement.WAFV_Continue = true; } else if (stopIt == 3) { formElement.WAFV_Stop = true; formElement.WAFV_Continue = false; } } function WAValidateAN(formElement,value,errorMsg,allowUpper,allowLower,allowNumbers,allowSpace,extraChars,focusIt,stopIt,required) { var isValid = true; extraChars = extraChars.replace(/"/g,'"'); if ((!document.WAFV_Stop && !formElement.WAFV_Stop) || formElement.WAFV_Continue) { for (var x=0; x= 97 && charCode <= 122) { charGood = true; } } if (allowUpper) { if (charCode >= 65 && charCode <= 90) { charGood = true; } } if (allowNumbers) { if (charCode >= 48 && charCode <= 57) { charGood = true; } } if (allowSpace) { if (nextChar == " ") { charGood = true; } } if (extraChars) { if (unescape(extraChars).indexOf(nextChar) >= 0) { charGood = true; } } if (!charGood) { isValid = false; x = value.length; } } if (required && value=="") isValid = false; } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } } function WAValidatePN(formElement,errorMsg,areaCode,international,reformat,focusIt,stopIt,required) { var value = formElement.value; var isValid = true; var allowed = "*() -./_\n\r+"; var newVal = ""; if ((!document.WAFV_Stop && !formElement.WAFV_Stop) && !(!required && value=="")) { for (var x=0; x= "0") && (z <= "9")) { newVal += z; } else { if (allowed.indexOf(z) < 0) { isValid = false; } } } if (international) { if (newVal.length < 5) { isValid = false; } } else if (newVal.length == 11) { if (newVal.charAt(0) != "1") { isValid = false; } } else if ((newVal.length != 10 && newVal.length != 7) || (newVal.length==7 && areaCode)) { isValid = false; } } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } else { formElement.WAValid = true; if (reformat != "" && newVal != "") { for (var x=0; x=0) { reformat = reformat.substring(reformat.lastIndexOf("x")+1); z = reformat.charAt(0); while (((z < "0") || (z > "9")) && z != "(") { reformat = reformat.substring(1); z = reformat.charAt(0); } } formElement.value = reformat; } } } function WAValidateEM(formElement,value,errorMsg,focusIt,stopIt,required) { var isValid = true; if ((!document.WAFV_Stop && !formElement.WAFV_Stop) && !(!required && value=="")) { value = value.toLowerCase(); var knownDomsPat = /^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/i; var emailPat = /^(.+)@(.+)$/i; var accepted = "\[^\\s\\(\\)><@,;:\\\\\\\"\\.\\[\\]\]+"; var quotedUser = "(\"[^\"]*\")"; var ipDomainPat = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/i; var section = "(" + accepted + "|" + quotedUser + ")"; var userPat = new RegExp("^" + section + "(\\." + section + ")*$"); var domainPat = new RegExp("^" + accepted + "(\\." + accepted +")*$"); var theMatch = value.match(emailPat); var acceptedPat = new RegExp("^" + accepted + "$"); var userName = ""; var domainName = ""; if (theMatch==null) { isValid = false; } else { userName = theMatch[1]; domainName = theMatch[2]; var domArr = domainName.split("."); var IPArray = domainName.match(ipDomainPat); for (x=0; x < userName.length; x++) { if ((userName.charCodeAt(x) > 127 && userName.charCodeAt(x) < 192) || userName.charCodeAt(x) > 255) { isValid = false; } } for (x=0; x < domainName.length; x++) { if ((domainName.charCodeAt(x) > 127 && domainName.charCodeAt(x) < 192) || domainName.charCodeAt(x) > 255) { isValid = false; } } if (userName.match(userPat) == null) { isValid = false; } if (IPArray != null) { for (var x=1; x<=4; x++) { if (IPArray[x] > 255) { isValid = false; } } } for (x=0; x < domArr.length; x++) { if (domArr[x].search(acceptedPat) == -1 || domArr[x].length == 0 || (domArr[x].length < 2 && x >= domArr.length-2 && x > 0)) { isValid = false; } } if (domArr[domArr.length-1].length !=2 && domArr[domArr.length-1].search(knownDomsPat) == -1) { isValid = false; } if (domArr.length < 2) { isValid = false; } } } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } }

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player


PHONE: (403) 218-7000
FAX: (403) 261-6780
LOCATION:
Suite 1730, 734 - 7th Ave SW Calgary, Alberta T2P-3P8
E-MAIL:
info@proven-reserves.com

Proven Reserves wants to hear from you! If you have any questions that are left unanswered in our web site, please feel free to contact us via phone, fax or e-mail. We will be happy to assist you in any way possible.

Proven Reserves Exploitation Ltd.
Suite 1730, 734 - 7th Ave. SW
Calgary, Alberta
Canada, T2P 3P8

Phone: (403) 218-7000
Fax: (403) 261-6780
E-Mail: info@proven-reserves.com

Google Map

Contact Form

If it is more convenient for you, then please fill in the form below and we will respond to you during regular business hours.

* indicates required field
*Your Name:
Your Phone:
*Your E-Mail:
Reason for Contact:
Comments:


(this let's us know this is from a person and not a machine)
security code


 

Proven Reserves Home