 
         return {
             (control) in partObj[key] = control.text.toInt()
+            control.layer.borderColor = UIColor.clearColor().CGColor
+            control.layer.borderWidth = 0.0
+            control.layer.cornerRadius = 0.0
         }
     }
 

    }

    public func redErrMsg(control: UITextField, errMsg: [String]) {
        control.layer.borderColor = UIColor.redColor().CGColor
        control.layer.borderWidth = 1.0
        control.layer.cornerRadius = 5.0


        return {
            (control) in partObj[key] = control.text
            control.layer.borderColor = UIColor.clearColor().CGColor
            control.layer.borderWidth = 0.0
            control.layer.cornerRadius = 0.0
        }
    }

