<?php /* Smarty version Smarty-3.1.8, created on 2019-10-17 17:14:10
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/frontend/mini/Form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14924510795da86922976448-62615444%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ab177f8da9d62941dd9c653b30e549bbd82dd4cf' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/frontend/mini/Form.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14924510795da86922976448-62615444',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'commonMetaTitle' => 0,
    'commonSiteName' => 0,
    'commonMetaDescription' => 0,
    'commonMetaKeywords' => 0,
    'view_styles' => 0,
    'language' => 0,
    'elementType' => 0,
    'resultForm' => 0,
    'formDisable' => 0,
    'captchaValidation' => 0,
    'formKey' => 0,
    'fieldAlignment' => 0,
    'resultElement' => 0,
    'element' => 0,
    'key' => 0,
    'extraAttributes' => 0,
    'attributeType' => 0,
    'formElementID' => 0,
    'increment' => 0,
    'enableCaptcha' => 0,
    'enable_captcha' => 0,
    'listStyle' => 0,
    'listLabel' => 0,
    'listDiv' => 0,
    'view_images' => 0,
    'enableAgreement' => 0,
    'uniqueID' => 0,
    'formElementName' => 0,
    'agreementText' => 0,
    'formElementLabel' => 0,
    'formElementSubText' => 0,
    'validateRule' => 0,
    'fieldSize' => 0,
    'layout' => 0,
    'limitMax' => 0,
    'tabindex' => 0,
    'formValidationMessage' => 0,
    'allowedExtensions' => 0,
    'extension' => 0,
    'ext' => 0,
    'formElementValue' => 0,
    'options' => 0,
    'linkWith' => 0,
    'formElementDesc' => 0,
    'nextAttributeType' => 0,
    'btnDiv' => 0,
    'submitButtonValue' => 0,
    'disableFormMessage' => 0,
    'compiled_js_path' => 0,
    'common_frontend_js' => 0,
    'common_js' => 0,
    'elementRule' => 0,
    'rule' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da86922b312b7_95860526',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da86922b312b7_95860526')) {function content_5da86922b312b7_95860526($_smarty_tpl) {?><!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" class="no-js"> <!--<![endif]--><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if ($_smarty_tpl->tpl_vars['commonMetaTitle']->value){?><?php echo $_smarty_tpl->tpl_vars['commonMetaTitle']->value;?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['commonSiteName']->value;?>
<?php }?></title>
<meta name="Description" content="<?php echo $_smarty_tpl->tpl_vars['commonMetaDescription']->value;?>
" />
<meta name="viewport" content="width=device-width">
<meta name="Keywords" content="<?php echo $_smarty_tpl->tpl_vars['commonMetaKeywords']->value;?>
" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
			
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/form-list.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jquery-ui-1.8.19.custom.css" />

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</head>
<body ng-controller="SearchCtrl">
<script type="text/javascript">
 var emailmsg='<?php echo $_smarty_tpl->tpl_vars['language']->value['errEmailID'];?>
';
$('#subscEmailID').each(function() {										
			var email = $('#subscEmailID').val();			
			if(email == emailmsg)
			{
			var default_value = $(this).val();			
			$(this).focus(function() {	
				if(this.value == default_value) {	
					this.value = '';	
				}	
			});	
			$(this).blur(function() {	
				if(this.value == '') {	
					this.value = default_value;	
				}	
			});
			}
			else
			{	
				return false
			}
		});

</script> 
<?php if (isset($_smarty_tpl->tpl_vars['elementType']->value)&&is_array($_smarty_tpl->tpl_vars['elementType']->value)){?>
<?php if (in_array('state',$_smarty_tpl->tpl_vars['elementType']->value)&&in_array('country',$_smarty_tpl->tpl_vars['elementType']->value)){?>
	<script>
	var stateCache={};
	function listStateAjax(countryFieldID,elements)
		{
		elements=elements.split(",");
		var stateFieldID=elements[0];
		var provinceFieldID=elements[1];
		
		var countryID=$(""+countryFieldID).val();
		$("[rel='"+provinceFieldID+"']").val('');
		if(countryID>0){	
			if($.isEmptyObject(stateCache[countryID])){
				var data = new Object();
				data.countryID 	= countryID;
				data.stateID 	= $("[rel='"+stateFieldID+"']").val();
				$.ajax({
					url: GLOBAL_BASE_PATH + "/form/ajaxState/",
					type: "POST",
					cache: true,
					data: data,
					success: function (data) {
						data=$.trim(data);
						stateCache[countryID]=data;
						if(data!=''){
							$("#li_"+stateFieldID).removeClass('hide');
							$("#li_"+provinceFieldID).addClass('hide');
							$("[rel='"+provinceFieldID+"']").val('-');
							var label=$("[rel='"+stateFieldID+"']").attr('label');
							$("[rel='"+stateFieldID+"']").html("<option value>"+label+"</option>"+data);
						}
						else{
							$("#li_"+stateFieldID).addClass('hide');
							$("#li_"+provinceFieldID).removeClass('hide');
							$("[rel='"+stateFieldID+"']").html("<option value=0>"+label+"</option>");
						} 
						/*var label=$("[rel='"+stateFieldID+"']").attr('label');
						$("[rel='"+stateFieldID+"']").html("<option value>"+label+"</option>"+data);*/
					}
					});
			}
			else{
				var data=stateCache[countryID];
				if(data!=''){
					$("#li_"+stateFieldID).removeClass('hide');
					$("#li_"+provinceFieldID).addClass('hide');
					var label=$("[rel='"+stateFieldID+"']").attr('label');
					$("[rel='"+stateFieldID+"']").html("<option value>"+label+"</option>"+data);
					$("[rel='"+provinceFieldID+"']").val('-');
				}
				else{
					$("#li_"+stateFieldID).addClass('hide');
					$("#li_"+provinceFieldID).removeClass('hide');
					$("[rel='"+stateFieldID+"']").html("<option value=0>"+label+"</option>");
				}
				/* var label=$("[rel='"+stateFieldID+"']").attr('label');
				$("[rel='"+stateFieldID+"']").html("<option value>"+label+"</option>"+data); */
			}
		}
		else if(countryID==0){
			$("[rel='"+stateFieldID+"']").html("<option value='0'><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOther'];?>
</option>"+data);
		}
		if(countryID==''){
			var label=$("[rel='"+stateFieldID+"']").attr('label');
			$("[rel='"+stateFieldID+"']").html("<option >"+label+"</option>");
		}
	
	}
	</script>
	<?php }?>
<?php }?>
<!-- Begin : Outer Pane -->
<div id="main"> 
  <!-- Begin : Header Pane--> 
  <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
  
  <!-- End : Header -->
  <div id="content-wrapper" ng-show="!query" > 
    <!-- Begin : Content Pane -->
    <div class="container light-bg padding clearfix">
	 <div id="common_message"></div>
     
      
             <a name="formFocus"></a>
              <h3 class="margin-bottom"><?php echo (($tmp = @$_smarty_tpl->tpl_vars['resultForm']->value['formName'])===null||$tmp==='' ? '' : $tmp);?>
</h3>
              
            
			<?php if (isset($_smarty_tpl->tpl_vars['resultForm']->value)&&!(($tmp = @$_smarty_tpl->tpl_vars['formDisable']->value)===null||$tmp==='' ? '' : $tmp)){?>
			<!-- Begin : Visa Payment --> 
			  <?php $_smarty_tpl->tpl_vars["labelPlacement"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resultForm']->value['labelPlacement'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["submitButtonValue"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['submitButtonValue'], null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["fieldAlignment"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['fieldAlignment'], null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["formKey"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['formKey'], null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["fieldAlignment"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['fieldAlignment'], null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["elementRule"] = new Smarty_variable(json_decode($_smarty_tpl->tpl_vars['resultForm']->value['elementRule']), null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["enableCaptcha"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['enableCaptcha'], null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["enableAgreement"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['enableAgreement'], null, 0);?>
			  <?php $_smarty_tpl->tpl_vars["agreementText"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultForm']->value['agreementText'], null, 0);?>
                          <?php $_smarty_tpl->tpl_vars["captchaValidation"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resultForm']->value['captchaValidation'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
                          <?php if ($_smarty_tpl->tpl_vars['captchaValidation']->value==''){?>
                                <?php $_smarty_tpl->tpl_vars["captchaValidation"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['errBusSecurityCode'], null, 0);?>
                          <?php }?>
			  
              <?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['formKey']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"oorjitForm_".$_tmp1,'method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

			  <fieldset>
				<div class="<?php if ($_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_two_column'){?> <?php }elseif($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_one_column'){?>left_align_one_column <?php }elseif($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column'){?> left_align_two_column <?php }elseif($_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_one_column'){?> top_align_one_column <?php }?>">
					<ul class="clearfix">
					<?php $_smarty_tpl->tpl_vars["increment"] = new Smarty_variable(1, null, 0);?>
					<?php  $_smarty_tpl->tpl_vars['element'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['element']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resultElement']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['element']->key => $_smarty_tpl->tpl_vars['element']->value){
$_smarty_tpl->tpl_vars['element']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['element']->key;
?>
						<?php $_smarty_tpl->tpl_vars["formElementID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementID'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formID'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["attributeType"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['attributeType'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["nextAttributeType"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resultElement']->value[$_smarty_tpl->tpl_vars['key']->value+1]['attributeType'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["uniqueID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['uniqueID'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementLabel"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementLabel'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["attributeOrder"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['attributeOrder'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["validateRule"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['validateRule'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["extraAttributes"] = new Smarty_variable(json_decode($_smarty_tpl->tpl_vars['element']->value['extraAttributes']), null, 0);?>
						
						<?php $_smarty_tpl->tpl_vars["limitMax"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->limitMax)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["tabindex"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->tabindex)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["layout"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->layout)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["allowedExtensions"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->allowedExtensions)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["fieldLayout"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->fieldLayout)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["allowUserChoice"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->allowUserChoice)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["linkWith"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->linkWith)===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementDetailID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementDetailID'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementDesc"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementDesc'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementSubText"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementSubText'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementPlaceHolder"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementPlaceHolder'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementValue"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementValue'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["options"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['options'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["optionID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formElementOptionID'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formValidationMessage"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['element']->value['formValidationMessage'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["formElementName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['attributeType']->value).("_")).($_smarty_tpl->tpl_vars['formElementID']->value), null, 0);?>
						
						<?php if ($_smarty_tpl->tpl_vars['attributeType']->value!='province'){?>
							<?php $_smarty_tpl->tpl_vars["increment"] = new Smarty_variable($_smarty_tpl->tpl_vars['increment']->value+1, null, 0);?>
						<?php }?>

						<?php if ($_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_two_column'){?>      
							<?php $_smarty_tpl->tpl_vars["listStyle"] = new Smarty_variable("col-xs-12 col-sm-6", null, 0);?>
							<?php $_smarty_tpl->tpl_vars["listLabel"] = new Smarty_variable('', null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listDiv"] = new Smarty_variable('', null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["btnDiv"] = new Smarty_variable('', null, 0);?>

		                <?php }elseif($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_one_column'){?>
			                <?php $_smarty_tpl->tpl_vars["listStyle"] = new Smarty_variable("col-xs-12", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listLabel"] = new Smarty_variable("col-xs-12 col-sm-2", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listDiv"] = new Smarty_variable("col-xs-12 col-sm-10", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["btnDiv"] = new Smarty_variable("col-xs-12 col-sm-10", null, 0);?>

		                <?php }elseif($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column'){?>
			                <?php $_smarty_tpl->tpl_vars["listStyle"] = new Smarty_variable("col-xs-12 col-md-6", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listLabel"] = new Smarty_variable("col-xs-12 col-sm-4", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listDiv"] = new Smarty_variable("col-xs-12 col-sm-8", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["btnDiv"] = new Smarty_variable("col-md-10 col-sm-8 rmv-padding", null, 0);?>

		                <?php }elseif($_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_one_column'){?>
			                <?php $_smarty_tpl->tpl_vars["listStyle"] = new Smarty_variable("col-xs-12", null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listLabel"] = new Smarty_variable('', null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["listDiv"] = new Smarty_variable('', null, 0);?>
			                <?php $_smarty_tpl->tpl_vars["btnDiv"] = new Smarty_variable('', null, 0);?>
		                <?php }?>


		                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->size)===null||$tmp==='' ? '' : $tmp)=='small'){?>   
			                <?php $_smarty_tpl->tpl_vars["fieldSize"] = new Smarty_variable("col-xs-4", null, 0);?>
		                <?php }elseif((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->size)===null||$tmp==='' ? '' : $tmp)=='medium'){?>   
			                <?php $_smarty_tpl->tpl_vars["fieldSize"] = new Smarty_variable("col-xs-6", null, 0);?>
		                <?php }elseif((($tmp = @$_smarty_tpl->tpl_vars['extraAttributes']->value->defaults->size)===null||$tmp==='' ? '' : $tmp)=='large'){?>   
			                <?php $_smarty_tpl->tpl_vars["fieldSize"] = new Smarty_variable("col-xs-12", null, 0);?>
		                <?php }?>

						
						<?php if ($_smarty_tpl->tpl_vars['attributeType']->value=='submit'&&$_smarty_tpl->tpl_vars['enableCaptcha']->value=='Yes'&&$_smarty_tpl->tpl_vars['enable_captcha']->value=='Yes'){?>
						<li class="<?php echo $_smarty_tpl->tpl_vars['listStyle']->value;?>
 clearfix fltNo">
							
							<div class="<?php echo $_smarty_tpl->tpl_vars['listLabel']->value;?>
 rmv-padding">
									<label>
										<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSecurityCode'];?>
 <span class="mndty">*</span>
									</label>
							
							
							</div>
                            <div class="field captcha <?php echo $_smarty_tpl->tpl_vars['listDiv']->value;?>
 rmv-padding">
                            	<div class="pull-left margin-bottom">
									<img width="100"  height="25" hspace="0"  class="pull-left"  id="captchaCode" marginwidth="0" marginheight="0"  />
									<img src="<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
/reload_icon_captcha.png" hspace="0" class="pull-left margin-horizontal"  vspace="0" id="reload_icon_captcha" style="cursor:pointer;"  marginheight="0" height="18" marginwidth="0"/>
                            	</div>
                            	<div class="pull-left">
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"oorjitFormSecurityCode",'autocomplete'=>"off",'name'=>"oorjitFormSecurityCode",'class'=>"form-control",'maxlength'=>"12",'validate'=>"required",'validate_event'=>"submit",'error'=>$_smarty_tpl->tpl_vars['captchaValidation']->value),$_smarty_tpl);?>

								</div>
							
								<span style="display:none">
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"hidImageCaptchaCode",'name'=>"hidImageCaptchaCode",'class'=>"hidden-variable"),$_smarty_tpl);?>

								</span>
								
							</div>
						</li>
						<?php }?>
						
						<?php if ($_smarty_tpl->tpl_vars['enableAgreement']->value=='Yes'&&$_smarty_tpl->tpl_vars['attributeType']->value=='submit'){?>
							<li class="<?php echo $_smarty_tpl->tpl_vars['listStyle']->value;?>
 clearfix fltNo <?php if ($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column'||$_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_two_column'){?>col-md-12<?php }?>" id="li_<?php echo $_smarty_tpl->tpl_vars['uniqueID']->value;?>
" data-name="agreement" >
							
							<div class="<?php echo $_smarty_tpl->tpl_vars['listLabel']->value;?>
 rmv-padding <?php if ($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column'){?>col-md-2<?php }?>">
																											
									</div>
							<div class="cms_area default-style <?php echo $_smarty_tpl->tpl_vars['listDiv']->value;?>
 rmv-padding <?php if ($_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column'){?>col-md-10<?php }?>">
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'value'=>"1",'caption'=>"<label for='".($_smarty_tpl->tpl_vars['formElementName']->value)."'>".($_smarty_tpl->tpl_vars['agreementText']->value)."*</label>",'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errAgreement'])),$_smarty_tpl);?>
 
									</div>
										
							</li>
						<?php }?>
						
						
						<li class="<?php echo $_smarty_tpl->tpl_vars['listStyle']->value;?>
 form-group clearfix <?php if ($_smarty_tpl->tpl_vars['attributeType']->value=='submit'){?> fltNo <?php }?><?php if ($_smarty_tpl->tpl_vars['attributeType']->value=='province'){?> hide<?php }?> <?php if (($_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_two_column'||$_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column')&&$_smarty_tpl->tpl_vars['increment']->value%2){?> go-left<?php }?>" id="li_<?php echo $_smarty_tpl->tpl_vars['uniqueID']->value;?>
" data-name="<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
" data-elementid="<?php echo $_smarty_tpl->tpl_vars['formElementID']->value;?>
">
							<?php if ($_smarty_tpl->tpl_vars['attributeType']->value!='submit'&&$_smarty_tpl->tpl_vars['attributeType']->value!='html'&&$_smarty_tpl->tpl_vars['attributeType']->value!='agreement'){?>
									
									<div class="<?php echo $_smarty_tpl->tpl_vars['listLabel']->value;?>
 rmv-padding">
										<label>
											<?php echo $_smarty_tpl->tpl_vars['formElementLabel']->value;?>
 
											<?php if ($_smarty_tpl->tpl_vars['formElementSubText']->value!=''){?>
												<span class="icon-set info-icon" title="<?php echo $_smarty_tpl->tpl_vars['formElementSubText']->value;?>
"></span>
											<?php }?>
											<?php if (strstr($_smarty_tpl->tpl_vars['validateRule']->value,"required")){?>
												<span class="mndty">*</span>
											<?php }?>
										</label>
									
									</div>

							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['attributeType']->value=='html'){?>
								<div class="<?php echo $_smarty_tpl->tpl_vars['listLabel']->value;?>
 rmv-padding">
									<label>&nbsp;</label>
								</div>
							<?php }?>

							
							
							<div class="field <?php echo $_smarty_tpl->tpl_vars['fieldSize']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['listDiv']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['layout']->value;?>
 rmv-padding"> 
								<?php if ($_smarty_tpl->tpl_vars['attributeType']->value=='text'||$_smarty_tpl->tpl_vars['attributeType']->value=='email'||$_smarty_tpl->tpl_vars['attributeType']->value=='text_opt'||$_smarty_tpl->tpl_vars['attributeType']->value=='province'||$_smarty_tpl->tpl_vars['attributeType']->value=='website'){?>
								
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'maxlength'=>$_smarty_tpl->tpl_vars['limitMax']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control textbox ",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['formElementValue']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
									
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='password'){?>
								
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->password(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control textbox ",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['formElementValue']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
									
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='date'){?>
									
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control textbox ",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['formElementValue']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
									<script type="text/javascript">
											//<![CDATA[
                                            $(document).ready(function(){
												$("#<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
").datepicker();
											});
											//]]>
									</script>	
								
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='file'){?>
									
									<?php  $_smarty_tpl->tpl_vars['ext'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ext']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['allowedExtensions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ext']->key => $_smarty_tpl->tpl_vars['ext']->value){
$_smarty_tpl->tpl_vars['ext']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['ext']->key;
?>
										<?php if ($_smarty_tpl->tpl_vars['key']->value>0){?>
											<?php $_smarty_tpl->tpl_vars['extension'] = new Smarty_variable((($_smarty_tpl->tpl_vars['extension']->value).(",")).($_smarty_tpl->tpl_vars['ext']->value), null, 0);?>
										<?php }else{ ?>
											<?php $_smarty_tpl->tpl_vars['extension'] = new Smarty_variable($_smarty_tpl->tpl_vars['ext']->value, null, 0);?>
										<?php }?>
									<?php } ?>
									<?php if ($_smarty_tpl->tpl_vars['extension']->value!=''){?>
										<?php if ($_smarty_tpl->tpl_vars['formElementValue']->value!=''){?>
											<?php $_smarty_tpl->tpl_vars['validateRule'] = new Smarty_variable((((($_smarty_tpl->tpl_vars['formElementValue']->value).("~*")).($_smarty_tpl->tpl_vars['formElementName']->value)).("->isFileType->")).($_smarty_tpl->tpl_vars['extension']->value), null, 0);?>
										<?php }else{ ?>
											<?php $_smarty_tpl->tpl_vars['validateRule'] = new Smarty_variable((($_smarty_tpl->tpl_vars['formElementName']->value).("->isFileType->")).($_smarty_tpl->tpl_vars['extension']->value), null, 0);?>
										<?php }?>
										<?php if ($_smarty_tpl->tpl_vars['formValidationMessage']->value!=''){?>
											<?php $_smarty_tpl->tpl_vars['formValidationMessage'] = new Smarty_variable((((($_smarty_tpl->tpl_vars['formValidationMessage']->value).("~*")).($_smarty_tpl->tpl_vars['language']->value['errFileExtension'])).("-")).($_smarty_tpl->tpl_vars['extension']->value), null, 0);?>
										<?php }else{ ?>
											<?php $_smarty_tpl->tpl_vars['formValidationMessage'] = new Smarty_variable((($_smarty_tpl->tpl_vars['language']->value['errFileExtension']).("-")).($_smarty_tpl->tpl_vars['extension']->value), null, 0);?>
										<?php }?>
									<?php }?>
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control textbox ",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['formElementValue']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
								
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='select'){?>
								
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control listbox",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>$_smarty_tpl->tpl_vars['options']->value,'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
								
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='select_multiple'){?>
								
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control listbox",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>$_smarty_tpl->tpl_vars['options']->value,'multiple'=>"multiple",'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
								
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='radio'){?>
									<div class="col"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"customradio",'seperator'=>"</div><div class='col'>",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>$_smarty_tpl->tpl_vars['options']->value,'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
								</div>
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='checkbox'){?>
								
									<div class="col"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>'','seperator'=>"</div><div class='col'>",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>$_smarty_tpl->tpl_vars['options']->value,'label'=>"true",'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
										
								</div>
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='image'){?>
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'value'=>'','validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value,'size_caption'=>($_smarty_tpl->tpl_vars['language']->value['lblMaximumFileSize']),'types_caption'=>"<br/>".($_smarty_tpl->tpl_vars['language']->value['lblFileTypes'])),$_smarty_tpl);?>

										

										
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='country'){?>
									
									<?php if ($_smarty_tpl->tpl_vars['linkWith']->value!=''){?>
										
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control listbox",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>$_smarty_tpl->tpl_vars['options']->value,'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'onchange'=>"listStateAjax('#".($_smarty_tpl->tpl_vars['formElementName']->value)."','".($_smarty_tpl->tpl_vars['linkWith']->value)."')",'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
											<script type="text/javascript">
											//<![CDATA[
                                            listStateAjax('#<?php echo $_smarty_tpl->tpl_vars['formElementName']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['linkWith']->value;?>
');
											//]]>
											</script>

									<?php }else{ ?>
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control listbox",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>$_smarty_tpl->tpl_vars['options']->value,'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
									<?php }?>
								
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='state'){?>
									
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control listbox",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'options'=>"->".($_smarty_tpl->tpl_vars['formElementValue']->value),'label'=>($_smarty_tpl->tpl_vars['formElementValue']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 

								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='businesstype'){?>		
										
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'class'=>"form-control listbox",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'value'=>($_smarty_tpl->tpl_vars['optionID']->value),'content'=>$_smarty_tpl->tpl_vars['options']->value,'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
										
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='textarea'){?>
								
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>$_smarty_tpl->tpl_vars['formElementName']->value,'rel'=>$_smarty_tpl->tpl_vars['uniqueID']->value,'tabindex'=>$_smarty_tpl->tpl_vars['tabindex']->value,'class'=>"form-control textarea01",'rows'=>"5",'validate'=>($_smarty_tpl->tpl_vars['validateRule']->value),'cols'=>"45",'value'=>($_smarty_tpl->tpl_vars['formElementValue']->value),'error'=>$_smarty_tpl->tpl_vars['formValidationMessage']->value),$_smarty_tpl);?>
 
								
									
								<?php }elseif($_smarty_tpl->tpl_vars['attributeType']->value=='html'){?>
								
									<h2><?php echo $_smarty_tpl->tpl_vars['formElementLabel']->value;?>
 </h2>
									<div class="cms_area default-style">
										<p>
											<?php echo html_entity_decode($_smarty_tpl->tpl_vars['formElementDesc']->value);?>

										</p> 
									</div>
								
								
								<?php }?>
							</div>
						</li>

						<?php if (($_smarty_tpl->tpl_vars['fieldAlignment']->value=='top_align_two_column'||$_smarty_tpl->tpl_vars['fieldAlignment']->value=='left_align_two_column')&&$_smarty_tpl->tpl_vars['increment']->value%2&&$_smarty_tpl->tpl_vars['nextAttributeType']->value!='province'){?>
							<li class="col-xs-12 element-three ui-draggable clearfix"></li>
						<?php }?>

						<?php if ($_smarty_tpl->tpl_vars['attributeType']->value=='submit'){?>aaaaaaaaaaaaaaaaaaaaaaaaaa
						<li class="col-xs-12 <?php echo $_smarty_tpl->tpl_vars['btnDiv']->value;?>
 pull-right">
							<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['submitButtonValue']->value;?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitForm",'class'=>"custom-button01 btn btn-primary",'value'=>$_tmp2),$_smarty_tpl);?>
 
						</li>
						<?php }?>
					<?php } ?>
					</ul>
                    </div>
              </fieldset>
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 
			<?php }else{ ?>
				<h3><?php echo $_smarty_tpl->tpl_vars['disableFormMessage']->value;?>
</h3>
			<?php }?>

	
		<?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['formKey']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"oorjitForm_".$_tmp3),$_smarty_tpl);?>

     
    </div>
    <!-- End : Content Pane --> 
  </div>
  <!-- Begin : Footer	Pane --> 
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
  <!-- End : Footer Pane --> 
</div>
<!-- End : Outer Pane --> 
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_start(array('name'=>($_smarty_tpl->tpl_vars['compiled_js_path']->value)."/form.js"),$_smarty_tpl);?>

   <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_frontend_js']->value)."/captcha.page.js"),$_smarty_tpl);?>

   <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_js']->value)."/uploadImage.plugin.js"),$_smarty_tpl);?>

 <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_end(array(),$_smarty_tpl);?>
 
<script>
<?php if (isset($_smarty_tpl->tpl_vars['elementRule']->value)){?>
<?php  $_smarty_tpl->tpl_vars['rule'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rule']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['elementRule']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['rule']->key => $_smarty_tpl->tpl_vars['rule']->value){
$_smarty_tpl->tpl_vars['rule']->_loop = true;
?>
	$("[name='<?php echo $_smarty_tpl->tpl_vars['rule']->value->elementTrigger;?>
']").change(function(){
		<?php if ($_smarty_tpl->tpl_vars['rule']->value->elementTriggerRule=='IS'){?>
		
			<?php if ($_smarty_tpl->tpl_vars['rule']->value->recieverAction=='SHOW'){?>
				if(this.value=='<?php echo $_smarty_tpl->tpl_vars['rule']->value->elementTriggerValue;?>
'){
					$("#li_<?php echo $_smarty_tpl->tpl_vars['rule']->value->reciever;?>
").show();
				}
				else{
					$("#li_<?php echo $_smarty_tpl->tpl_vars['rule']->value->reciever;?>
").hide();
				}
			<?php }?>
			
			<?php if ($_smarty_tpl->tpl_vars['rule']->value->recieverAction=='HIDE'){?>
				if(this.value=='<?php echo $_smarty_tpl->tpl_vars['rule']->value->elementTriggerValue;?>
'){
					$("#li_<?php echo $_smarty_tpl->tpl_vars['rule']->value->reciever;?>
").hide();
				}
				else{
					$("#li_<?php echo $_smarty_tpl->tpl_vars['rule']->value->reciever;?>
").show();
				}
			<?php }?>
		<?php }?>
	});
	
	<?php if ($_smarty_tpl->tpl_vars['rule']->value->recieverAction=='SHOW'){?>
		$("#li_<?php echo $_smarty_tpl->tpl_vars['rule']->value->reciever;?>
").hide();
	<?php }elseif($_smarty_tpl->tpl_vars['rule']->value->recieverAction=='HIDE'){?>
		$("#li_<?php echo $_smarty_tpl->tpl_vars['rule']->value->reciever;?>
").show();
	<?php }?>
<?php } ?>
<?php }?>
var editImageTitle	="<?php echo $_smarty_tpl->tpl_vars['language']->value['lbleditImageTitle'];?>
";

</script>
</body>
</html>

<?php }} ?>