jQuery(function ($) {
var $el=jQuery("#form-contact .kv-hint-special");if($el.length){$el.each(function(){$(this).activeFieldHint()});}
jQuery('#form-contact').yiiActiveForm([{"id":"onlineadmission-name","name":"name","container":".field-onlineadmission-name","input":"#onlineadmission-name","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Name cannot be blank."});yii.validation.string(value, messages, {"message":"Name must be a string.","max":100,"tooLong":"Name should contain at most 100 characters.","skipOnEmpty":1});}},{"id":"onlineadmission-fname","name":"fname","container":".field-onlineadmission-fname","input":"#onlineadmission-fname","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Full Name cannot be blank."});}},{"id":"onlineadmission-email","name":"email","container":".field-onlineadmission-email","input":"#onlineadmission-email","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Email cannot be blank."});yii.validation.string(value, messages, {"message":"Email must be a string.","max":50,"tooLong":"Email should contain at most 50 characters.","skipOnEmpty":1});yii.validation.email(value, messages, {"pattern":/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/,"fullPattern":/^[^@]*<[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?>$/,"allowName":false,"message":"Email is not a valid email address.","enableIDN":false,"skipOnEmpty":1});}},{"id":"onlineadmission-mobile","name":"mobile","container":".field-onlineadmission-mobile","input":"#onlineadmission-mobile","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Phone No cannot be blank."});yii.validation.string(value, messages, {"message":"Phone No must be a string.","max":10,"tooLong":"Phone No should contain at most 10 characters.","skipOnEmpty":1});}},{"id":"onlineadmission-course","name":"course","container":".field-onlineadmission-course","input":"#onlineadmission-course","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Course cannot be blank."});}},{"id":"onlineadmission-amount","name":"amount","container":".field-onlineadmission-amount","input":"#onlineadmission-amount","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Amount cannot be blank."});yii.validation.number(value, messages, {"pattern":/^\s*[+-]?\d+\s*$/,"message":"Amount must be an integer.","min":4999,"tooSmall":"Amount must be no less than 4999.","skipOnEmpty":1});}},{"id":"onlineadmission-address","name":"address","container":".field-onlineadmission-address","input":"#onlineadmission-address","validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Address cannot be blank."});}}], []);
krajeeYiiConfirm('krajeeDialog');
});