/*ADOBE SYSTEMS INCORPORATED
Copyright 2007 Adobe Systems Incorporated
All Rights Reserved.

NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the
terms of the Adobe license agreement accompanying it.  If you have received this file from a
source other than Adobe, then your use, modification, or distribution of it requires the prior
written permission of Adobe.*/
var _CF_error_messages=new Array();
var _CF_error_fields=new Object();
var _CF_FirstErrorField=null;
var _CF_submit_status=new Array();
_CF_signalLoad=function(){
_CF_loaded=1;
};
_CF_onError=function(_882,_883,_884,_885){
if(_CF_error_fields[_883]==null){
if(_CF_FirstErrorField==null){
_CF_FirstErrorField=_883;
}
_CF_error_exists=true;
_CF_error_fields[_883]=_885;
_CF_error_messages[_CF_error_messages.length]=_885;
}
};
_CF_onErrorAlert=function(_886){
var _887="";
for(var i=0;i<_886.length;i++){
_887+=_886[i]+"\n";
}
alert(_887);
return false;
};
updateHiddenValue=function(val,form,name){
if(form==null||form==""){
form=0;
}
if(document.forms[form]==null||document.forms[form][name]==null){
return;
}
document.forms[form][name].value=val;
};
_CF_hasValue=function(obj,_88d,_88e){
if(_88d=="TEXT"||_88d=="FILE"||_88d=="PASSWORD"||_88d=="CFTEXTAREA"||_88d=="TEXTAREA"||_88d=="CFTEXTINPUT"||_88d=="DATEFIELD"){
if(obj.value.length==0){
return false;
}else{
if(_88e){
str=obj.value.replace(/^\s+/,"").replace(/\s+$/,"");
if(str.length==0){
return false;
}
}
}
return true;
}else{
if(_88d=="SELECT"){
for(i=0;i<obj.length;i++){
if(obj.options[i].selected&&obj.options[i].value.length>0){
return true;
}
}
return false;
}else{
if(_88d=="SINGLE_VALUE_RADIO"||_88d=="SINGLE_VALUE_CHECKBOX"){
if(obj.checked){
return true;
}else{
return false;
}
}else{
if(_88d=="RADIO"||_88d=="CHECKBOX"){
if(obj.length==undefined&&obj.checked){
return true;
}else{
for(i=0;i<obj.length;i++){
if(obj[i].checked){
return true;
}
}
}
return false;
}else{
if(_88d=="CFTREE"){
if(obj["value"].length>0){
return true;
}else{
return false;
}
}else{
if(_88d=="RICHTEXT"){
var _88f=FCKeditorAPI.GetInstance(obj.id);
var val=_88f.GetXHTML();
if(val.length==0){
return false;
}else{
if(_88e){
str=val.replace(/^\s+/,"").replace(/\s+$/,"");
if(str.length==0){
return false;
}
}
return true;
}
}else{
return true;
}
}
}
}
}
}
};
_CF_checkdate=function(_891,_892){
_891=_891.replace(/^\s+/,"").replace(/\s+$/,"");
_891=_891=_891.replace(/{d \'/,"").replace(/'}/,"");
if(_892){
if(_891.length==0){
return false;
}
}else{
if(_891.length==0){
return true;
}
}
if(_891.length==0){
return true;
}
isplit=_891.indexOf("/");
splitchr="/";
if(isplit==-1){
isplit=_891.indexOf(".");
splitchr=".";
}
if(isplit==-1){
isplit=_891.indexOf("-");
splitchr="-";
}
if(isplit==-1||isplit==_891.length){
return false;
}
var _893=_891.substring(0,isplit);
if(_893.length==4){
sYear=_891.substring(0,isplit);
isplit=_891.indexOf(splitchr,isplit+1);
if(isplit==-1||(isplit+1)==_891.length){
return false;
}
sMonth=_891.substring((sYear.length+1),isplit);
sDay=_891.substring(isplit+1);
}else{
sMonth=_891.substring(0,isplit);
isplit=_891.indexOf(splitchr,isplit+1);
if(isplit==-1||(isplit+1)==_891.length){
return false;
}
sDay=_891.substring((sMonth.length+1),isplit);
sYear=_891.substring(isplit+1);
}
if((sDay.length==0)||(sMonth.length==0)||(sYear.length==0)){
return false;
}
if(!_CF_checkinteger(sMonth)){
return false;
}else{
if(!_CF_checkrange(sMonth,1,12)){
return false;
}else{
if(!_CF_checkinteger(sYear)){
return false;
}else{
if(sYear.length!=1&&sYear.length!=2&&sYear.length!=4){
return false;
}else{
if(!_CF_checkrange(sYear,0,9999)){
return false;
}else{
if(!_CF_checkinteger(sDay)){
return false;
}else{
if(!_CF_checkday(sYear,sMonth,sDay)){
return false;
}else{
return true;
}
}
}
}
}
}
}
};
_CF_checkeurodate=function(_894,_895){
_894=_894.replace(/^\s+/,"").replace(/\s+$/,"");
_894=_894=_894.replace(/{d \'/,"").replace(/'}/,"");
if(_895){
if(_894.length==0){
return false;
}
}else{
if(_894.length==0){
return true;
}
}
isplit=_894.indexOf("/");
splitchr="/";
if(isplit==-1){
isplit=_894.indexOf(".");
splitchr=".";
}
if(isplit==-1){
isplit=_894.indexOf("-");
splitchr="-";
}
if(isplit==-1||isplit==_894.length){
return false;
}
var _896=_894.substring(0,isplit);
if(_896.length==4){
sYear=_894.substring(0,isplit);
isplit=_894.indexOf(splitchr,isplit+1);
if(isplit==-1||(isplit+1)==_894.length){
return false;
}
sMonth=_894.substring((sYear.length+1),isplit);
sDay=_894.substring(isplit+1);
}else{
sDay=_894.substring(0,isplit);
isplit=_894.indexOf(splitchr,isplit+1);
if(isplit==-1||(isplit+1)==_894.length){
return false;
}
sMonth=_894.substring((sDay.length+1),isplit);
sYear=_894.substring(isplit+1);
}
if(!_CF_checkinteger(sMonth)){
return false;
}else{
if(!_CF_checkrange(sMonth,1,12)){
return false;
}else{
if(!_CF_checkinteger(sYear)){
return false;
}else{
if(!_CF_checkrange(sYear,0,null)){
return false;
}else{
if(!_CF_checkinteger(sDay)){
return false;
}else{
if(!_CF_checkday(sYear,sMonth,sDay)){
return false;
}else{
return true;
}
}
}
}
}
}
};
_CF_checkday=function(_897,_898,_899){
maxDay=31;
if(_898==4||_898==6||_898==9||_898==11){
maxDay=30;
}else{
if(_898==2){
if(_897%4>0){
maxDay=28;
}else{
if(_897%100==0&&_897%400>0){
maxDay=28;
}else{
maxDay=29;
}
}
}
}
return _CF_checkrange(_899,1,maxDay);
};
_CF_checkinteger=function(_89a,_89b){
_89a=_89a.replace(/^\s+/,"").replace(/\s+$/,"");
_89a=_89a.replace(/[$£¥€,~+]?/g,"");
if(_89b){
if(_89a.length==0){
return false;
}
}else{
if(_89a.length==0){
return true;
}
}
var _89c=".";
var _89d=_89a.indexOf(_89c);
if(_89d==-1){
return _CF_checknumber(_89a);
}else{
return false;
}
};
_CF_numberrange=function(_89e,_89f,_8a0,_8a1){
if(_8a1){
if(_89e.length==0){
return false;
}
}else{
if(_89e.length==0){
return true;
}
}
if(_89f!=null){
if(_89e<_89f){
return false;
}
}
if(_8a0!=null){
if(_89e>_8a0){
return false;
}
}
return true;
};
_CF_checknumber=function(_8a2,_8a3){
var _8a4=" .+-0123456789";
var _8a5=" .0123456789";
var _8a6;
var _8a7=false;
var _8a8=false;
var _8a9=false;
_8a2=_8a2.replace(/^\s+/,"").replace(/\s+$/,"");
_8a2=_8a2.replace(/[$£¥€,~+]?/g,"");
if(_8a3){
if(_8a2.length==0){
return false;
}
}else{
if(_8a2.length==0){
return true;
}
}
_8a6=_8a4.indexOf(_8a2.charAt(0));
if(_8a6==1){
_8a7=true;
}else{
if(_8a6<1){
return false;
}
}
for(var i=1;i<_8a2.length;i++){
_8a6=_8a5.indexOf(_8a2.charAt(i));
if(_8a6<0){
return false;
}else{
if(_8a6==1){
if(_8a7){
return false;
}else{
_8a7=true;
}
}else{
if(_8a6==0){
if(_8a7||_8a9){
_8a8=true;
}
}else{
if(_8a8){
return false;
}else{
_8a9=true;
}
}
}
}
}
return true;
};
_CF_checkrange=function(_8ab,_8ac,_8ad,_8ae){
_8ab=_8ab.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8ae){
if(_8ab.length==0){
return false;
}
}else{
if(_8ab.length==0){
return true;
}
}
if(!_CF_checknumber(_8ab)){
return false;
}else{
return (_CF_numberrange((eval(_8ab)),_8ac,_8ad));
}
return true;
};
_CF_checktime=function(_8af,_8b0){
_8af=_8af.replace(/^\s+/,"").replace(/\s+$/,"");
_8af=_8af.replace(/\s+:\s+/,":");
_8af=_8af=_8af.replace(/{t \'/,"").replace(/'}/,"");
if(_8b0){
if(_8af.length==0){
return false;
}
}else{
if(_8af.length==0){
return true;
}
}
var _8b1=_CF_checkregex(_8af,/^((([0-1]?\d)|(2[0-3])):[0-5]?\d)?(:[0-5]?\d)? ?([AP]M|[AP]m|[ap]m|[ap]M)?$/,_8b0);
return _8b1;
};
_CF_checkphone=function(_8b2,_8b3){
_8b2=_8b2.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8b3){
if(_8b2.length==0){
return false;
}
}else{
if(_8b2.length==0){
return true;
}
}
if(_8b2.length==0){
return true;
}
return _CF_checkregex(_8b2,/^(((1))?[ ,\-,\.]?([\\(]?([1-9][0-9]{2})[\\)]?))?[ ,\-,\.]?([^0-1]){1}([0-9]){2}[ ,\-,\.]?([0-9]){4}(( )((x){0,1}([0-9]){1,5}){0,1})?$/,_8b3);
};
_CF_checkzip=function(_8b4,_8b5){
_8b4=_8b4.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8b5){
if(_8b4.length==0){
return false;
}
}else{
if(_8b4.length==0){
return true;
}
}
return _CF_checkregex(_8b4,/^([0-9]){5,5}$|(([0-9]){5,5}(-| ){1}([0-9]){4,4}$)/,_8b5);
};
_CF_checkcreditcard=function(_8b6,_8b7){
_8b6=_8b6.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8b7){
if(_8b6.length==0){
return false;
}
}else{
if(_8b6.length==0){
return true;
}
}
if(_8b6.length==0){
return true;
}
var _8b8=" -";
var _8b9="";
var _8ba;
for(var i=0;i<_8b6.length;i++){
_8ba=_8b8.indexOf(_8b6.charAt(i));
if(_8ba<0){
_8b9+=_8b6.substring(i,(i+1));
}
}
if(_8b9.length<13||_8b9.length>19){
return false;
}
if(_8b9.charAt(0)=="+"){
return false;
}
if(!_CF_checkinteger(_8b9)){
return false;
}
var _8bc=_8b9.length%2==1?false:true;
var _8bd=0;
var _8be;
for(var i=0;i<_8b9.length;i++){
_8be=eval(_8b9.charAt(i));
if(_8bc){
_8be*=2;
_8bd+=(_8be%10);
if((_8be/10)>=1){
_8bd++;
}
_8bc=false;
}else{
_8bd+=_8be;
_8bc=true;
}
}
return (_8bd%10)==0?true:false;
};
_CF_checkssn=function(_8bf,_8c0){
_8bf=_8bf.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8c0){
if(_8bf.length==0){
return false;
}
}else{
if(_8bf.length==0){
return true;
}
}
return _CF_checkregex(_8bf,/^[0-9]{3}(-| )[0-9]{2}(-| )[0-9]{4}$/,_8c0);
};
_CF_checkEmail=function(_8c1,_8c2){
_8c1=_8c1.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8c2){
if(_8c1.length==0){
return false;
}
}else{
if(_8c1.length==0){
return true;
}
}
return _CF_checkregex(_8c1,/^[a-zA-Z_0-9-'\+~]+(\.[a-zA-Z_0-9-'\+~]+)*@([a-zA-Z_0-9-]+\.)+[a-zA-Z]{2,7}$/,_8c2);
};
_CF_checkURL=function(_8c3,_8c4){
_8c3=_8c3.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8c4){
if(_8c3.length==0){
return false;
}
}else{
if(_8c3.length==0){
return true;
}
}
return _CF_checkregex(_8c3.toLowerCase(),/^((http|https|ftp|file)\:\/\/([a-zA-Z0-0]*:[a-zA-Z0-0]*(@))?[a-zA-Z0-9-\.]+(\.[a-zA-Z]{2,3})?(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9-\._\?\,\'\/\+&amp;%\$#\=~])*)|((mailto)\:[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,7})|((news)\:[a-zA-Z0-9\.]*)$/,_8c4);
};
_CF_checkUUID=function(_8c5,_8c6){
_8c5=_8c5.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8c6){
if(_8c5.length==0){
return false;
}
}else{
if(_8c5.length==0){
return true;
}
}
return _CF_checkregex(_8c5,/[A-Fa-f0-9]{8,8}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{16,16}/,_8c6);
};
_CF_checkGUID=function(_8c7,_8c8){
_8c7=_8c7.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8c8){
if(_8c7.length==0){
return false;
}
}else{
if(_8c7.length==0){
return true;
}
}
return _CF_checkregex(_8c7,/[A-Fa-f0-9]{8,8}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{12,12}/,_8c8);
};
_CF_checkBoolean=function(_8c9,_8ca){
_8c9=_8c9.replace(/^\s+/,"").replace(/\s+$/,"");
if(_8ca){
if(_8c9.length==0){
return false;
}
}else{
if(_8c9.length==0){
return true;
}
}
if(_8c9.toUpperCase()=="TRUE"||_8c9.toUpperCase()=="YES"||(_CF_checknumber(_8c9)&&_8c9!="0")){
return true;
}else{
if(_8c9.toUpperCase()=="FALSE"||_8c9.toUpperCase()=="NO"||_8c9=="0"){
return true;
}else{
return false;
}
}
};
_CF_setFormParam=function(_8cb,_8cc,_8cd){
var _8ce="document['"+_8cb+"']['"+_8cc+"']";
var obj=eval(_8ce);
if(obj==undefined){
return false;
}else{
obj.value=_8cd;
return true;
}
};
_CF_checkregex=function(_8d0,_8d1,_8d2){
if(_8d2){
if(_8d0.length==0){
return false;
}
}else{
if(_8d0.length==0){
return true;
}
}
return _8d1.test(_8d0);
};

