<!DOCTYPE html>
<html lang="en" class="bg-white bg-light">
<head>  
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
        <title><? echo $header_title.VIS_BRANDING_NAME; ?></title>
        <link href="<?php echo VIS_PATH_STYLE; ?>vis_style.css" rel="stylesheet" />
        <link rel="stylesheet" href="<?php echo VIS_PATH; ?>design/bootstrap.min.css" type="text/css" />
        <link rel="stylesheet" href="<?php echo VIS_PATH; ?>design/animate.css" type="text/css" />
        <!--<link rel="stylesheet" href="<?php echo VIS_PATH; ?>design/font.css" type="text/css" />-->
        <link rel="stylesheet" href="<?php echo VIS_PATH; ?>design/css/vh-icons.css" type="text/css" />
        <link rel="stylesheet" href="<?php echo VIS_PATH; ?>design/css/default.css" type="text/css" />
        <link rel="stylesheet" href="<?php echo VIS_PATH_SCRIPT; ?>bootstrap-select/bootstrap-select.css" type="text/css" />
<body id="bodyv4" class="b-a b-2x" style="border-radius:4px;">
<?  global $vis_language, $request_data; 
    $note='';
    $depts='';
    $checked='';
	//$depts .='<option>'.$vis_language['TXTSELECTDEPARTMENT'].'</option>'; 
    for($i=0;$i<count($departments);$i++) {
        if(isset($department_get) && $department_get == $departments[$i]['department_id']) {
            $selected='selected="selected"';
            $checked=$departments[$i]['department_id'];
            if($departments[$i]['registration']==1 && IS_LOGIN==0) $note=$vis_language['TXTREGISTRATIONREQUIRED'];
        }
        else {
            $selected='';
        }
        $depts.='<option value="'.$departments[$i]['department_id'].'" '.$selected.' >'.$departments[$i]['department_name'].'</option>';
    }
    if($checked=='' && $departments[0]['registration']==1 && IS_LOGIN==0) $note=$vis_language['TXTREGISTRATIONREQUIRED'];?>
    <header class="vis_login_head">
		<? if(isset($operation['message']) && $operation['message']!='') { ?> <script> $("#vis_submit_msg_div").show(); $("#vis_submit_msg_div").html('<? echo $operation['message']; ?>'); </script><? }else { ?> <div id="vis_submit_msg_div" class="alert text-center alert-success" style="display:none"></div>  <? } ?>
	</header>	
<? if($widget_details[1]['content']=='3'){
	if(VIS_VIEW_SELFTICKET!=0) { ?>
   <div class="row">
        <div class="col-md-12">
           <!--<div id="button_div" class="hide">
        	<button id="search_btn" class="btn-rounded btn btn-lg" style="background-color:<?=$widget_details[0]['content']?>; color:#FFF;" onClick="set_size(360,250,'btn');" ><?=$vis_language['TXTWIDGETHELP']?>&nbsp;<i class="vh vh-lg vh-question"></i></button>
           </div>-->
        <div id="search" class="panel-body no-padder show">
            <div class="panel-heading">
                      <div class="clear">
                       	   <h3 class="text-center m-t-sm"><?=$vis_language['TXTHOWCANWEHELP'];?></h3>
                      </div>
            </div> <!-- /.panel-heading -->
                  <div class="form-horizontal" >
                   <div class="col-md-12">
                   <div class="wrapper">
					<form id="vis_selfhelp_form" class="form-horizontal">
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-btn">
                      <button type="button" class="btn btn-lg bg-white b-white btn-icon rounded"><i class="vh vh-lg vh-search"></i></button>
                    </span>
                     <input type="text" id="vis_search_text" name="vis_search_text" onKeyUp="vis_search_selfhelp(this.value);" class="form-control input-lg" placeholder="<? echo $vis_language['TXTWIDGETSEARCHSOLUTIONS']; ?>">
                     <input type="hidden" name="vis_module" value="selfhelp" /><input type="hidden" name="vis_operation" value="selfhelp_search" />
                    </div>
                  </div>
                  <div  id="article" style="height:196px; width:320px !important;" class="wrapper scrollable" >
                    <? if($selfhelp!=-1){?><h4><?=$vis_language['TXTRECENTARTICLES'];?></h4><? }?>
                    <ol id="vis_article" class="l-h m-l-n-md">
                    <? if($selfhelp!=-1){for($s=0;$s<count($selfhelp);$s++){
						echo '<li><a href="javascript:void(0);" class="link" onclick="get_selphelp_detail('.$selfhelp[$s]['article_id'].');">'.$selfhelp[$s]['article_title'].'</a></li>';
					   }}else{
						   echo '<div class="h4">'.$vis_language['TXTWIDNOTHINGTODISPLAY'].'</div>';
					   }?> 
                    </ol>
                    <? if($featured_articles!=-1){?><h4><?=$vis_language['TXTFEATUREDARTICLES'];?></h4><? }?>
                    <ol id="vis_feature" class="l-h m-l-n-md">
                    <? if($featured_articles!=-1){for($f=0;$f<count($featured_articles);$f++){
						echo '<li><a href="javascript:void(0);" class="link" onclick="get_selphelp_detail('.$featured_articles[$f]['article_id'].');">'.$featured_articles[$f]['article_title'].'</a></li>';
					   }}?> 
                    </ol>
                  </div>
                  <div  id="selphelp" style="height:196px; width:320px !important; display:none;" class="wrapper scrollable" >
                    <h4><?=$vis_language['TXTWIDGETSEARCHRESULT'];?></h4>
                    <ol id="vis_selfhelp" class="l-h m-l-n-md">
                    </ol>
                  </div>
                  <div id="selphelp_detail" style="height:196px; width:320px !important; display:none;" class="wrapper scrollable" >
                    <div id="vis_selphelp_detail" class="l-h">                   
                    </div>
                  </div>
                   <div class="line b-b line-lg pull-in b-dark"></div>                   
                  <div class="form-group">
                    <div class="input-group pull-right">
                    <button type="button" class="btn btn-s-xl" style="background-color:<?=$widget_details[2]['content']?>; color:#FFF;" onClick="set_size(360,480,'ticket');"><?=$vis_language['TXTLEAVEAMSG'];?></button>
                    </div>
                  </div>
                  <div class="panel-footer bg-empty">
                    <?= VIS_BRANDING_LINK;?>&nbsp;
                  </div>
                </form>
                </div>
                </div> 
                  </div>
                </div> <!-- id="search" .panel -->
                <div id="ticket" class="panel-body no-padder hide">
                  <div class="panel-heading">
                      <div class="clear">
                            <!--<a id="cross" class="pull-right" href="javascript:void(0);" onClick="set_size(100,50,'closes');"><i class="vh vh-cross"></i></a>-->
                         <a href="javascript:void(0);"><i class="vh vh-arrow-left" onClick="set_size(360,250,'btn');"></i></a>  
                        <h3 class="panel-title text-center m-t-sm"><span class="vh vh-ticket vh-warning"></span>&nbsp;<?=$vis_language['TXTLEAVEAMSG'];?></span></h3>
                    
                      </div>  
                      
                  </div> <!-- /.panel-heading -->
                  <div class="form-horizontal" >
                   <div class="col-md-12">
                   <div class="wrapper">
					<form id="vis_ticket_form" class="form-horizontal">
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-department"></i></span>
                        <select class="form-control input-sm  selectpicker" name="vis_department" id="vis_department" class="form-control input-sm<? if(!is_mobile()) echo ' selectpicker"'; else echo '"'; if(count($departments)>10 && !is_mobile()) echo ' data-live-search="true"';?>" ><? echo $depts; ?></select>
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-user"></i></span>
                        <input type="text" class="form-control input-sm" data-type="text" data-required="true" name="vis_firstname" id="FirstName" placeholder="<? echo $vis_language['TXTFIRSTNAME']; ?>"/>
                    </div>
                  </div>
                  <!--<div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-file-text"></i></span>
                        <input type="text" class="form-control input-sm" data-type="text" data-required="true" name="vis_lastname" id="LastName" placeholder="Last Name"/>
                    </div>
                  </div>-->
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-inbox"></i></span>
                       <input type="email" class="form-control input-sm" data-type="email" data-required="true" name="vis_email" id="PersonalEmail" placeholder="<? echo $vis_language['TXTEMAIL']; ?>"/>
                    </div>
                  </div>
                  <!--<div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-file-text"></i></span>
                        <input type="text" class="form-control input-sm" name="vis_subject" id="vis_subject" placeholder="Subject">
                    </div>
                  </div>-->
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-file-o"></i></span>
                         <textarea class="form-control input-sm" rows="6" name="vis_ticket_post" id="vis_ticket_post" placeholder="<? echo $vis_language['TXTMESSAGE']; ?>"></textarea>           
                    </div>
                  </div>        
                  <div class="form-group">
                    <div class="col-sm-offset-8">
                    <input type="hidden" name="vis_module" id="vis_module" value="ticket" /> <input type="hidden" name="vis_operation" id="vis_operation" value="open_new_ticket" /><input type="hidden" name="vis_status" value="1" /><input type="hidden" name="vis_domain" />
                    <input type="hidden" name="vis_channel" value="5" />
                    <input type="hidden" name="vis_honeypot" id="vis_honeypot" />
                    <span id="wid_success_msg" class="vh-green" style="display:none">
                    </span>
                    <span id="wid_error_msg" class="vh-red" style="display:none">
                    </span>
                    <button id="btn_submit_ticket" style="background-color:<?=$widget_details[2]['content']?>; color:#FFF;" type="button" class="btn btn-md btn-s-sm pull-right" onClick="submit_form(<? echo VIS_HEAD_MENU_VIEWTICKET;?>); "><?=$vis_language['TXTSEND'];?></button>
                      <!--<button type="submit" class="btn btn-default btn-md btn-s-sm" data-toggle="class:hide, show" data-target="#panTwo, #panThree">Send</button>-->
                    </div>
                  </div>
                  <div class="panel-footer bg-empty">
                    <?= VIS_BRANDING_LINK;?>&nbsp;
                  </div>
                </form>
                </div>
                </div> 
                  </div>
                </div>
       </div>
      </div><!-- /.row -->
	  <? }?>
<? }elseif($widget_details[1]['content']=='2'){
		if(VIS_VIEW_SELFTICKET!=0) { ?>
   <div class="row">
        <div class="col-md-12">
           <!--<div id="button_div" class="hide">
        	<button id="search_btn" class="btn-rounded btn btn-lg" style="background-color:<?=$widget_details[0]['content']?>; color:#FFF;" onClick="set_size(360,250,'btn');" ><?=$vis_language['TXTWIDGETHELP']?>&nbsp;<i class="vh vh-lg vh-question"></i></button>
           </div>-->
        <div id="search" class="panel-body no-padder show">
            <div class="panel-heading">
                      <div class="clear">
                       	   <h3 class="text-center m-t-sm"><?=$vis_language['TXTHOWCANWEHELP'];?></h3>
                      </div>
            </div> <!-- /.panel-heading -->
                  <div class="form-horizontal" >
                   <div class="col-md-12">
                   <div class="wrapper">
					<form id="vis_selfhelp_form" class="form-horizontal">
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-btn">
                      <button type="button" class="btn btn-lg bg-white b-white btn-icon rounded"><i class="vh vh-lg vh-search"></i></button>
                    </span>
                     <input type="text" id="vis_search_text" name="vis_search_text" onKeyUp="vis_search_selfhelp(this.value);" class="form-control input-lg" placeholder="<? echo $vis_language['TXTWIDGETSEARCHSOLUTIONS']; ?>">
                     <input type="hidden" name="vis_module" value="selfhelp" /><input type="hidden" name="vis_operation" value="selfhelp_search" />
                    </div>
                  </div>
                  <div  id="article" style="height:230px; width:320px !important;" class="wrapper scrollable" >
                    <? if($selfhelp!=-1){?><h4><?=$vis_language['TXTRECENTARTICLES'];?></h4><? }?>
                    <ol id="vis_article" class="l-h m-l-n-md">
                    <? if($selfhelp!=-1){for($s=0;$s<count($selfhelp);$s++){
						echo '<li><a href="javascript:void(0);" class="link" onclick="get_selphelp_detail('.$selfhelp[$s]['article_id'].');">'.$selfhelp[$s]['article_title'].'</a></li>';
					   }}else{
						   echo '<div class="h4">'.$vis_language['TXTWIDNOTHINGTODISPLAY'].'</div>';
					   }?> 
                    </ol>
                  </div>
                  <div  id="selphelp" style="height:230px; width:320px !important; display:none;" class="wrapper scrollable" >
                    <h4><?=$vis_language['TXTWIDGETSEARCHRESULT'];?></h4>
                    <ol id="vis_selfhelp" class="l-h m-l-n-md">
                    </ol>
                  </div>
                  <div id="selphelp_detail" style="height:230px; width:320px !important; display:none;" class="wrapper scrollable" >
                    <div id="vis_selphelp_detail" class="l-h">                   
                    </div>
                  </div>
                   <div class="line b-b line-lg pull-in b-dark"></div>                   
                  <div class="form-group">
                    <div class="input-group pull-right">
                    <!--<button type="button" class="btn btn-s-xl" style="background-color:<?=$widget_details[2]['content']?>; color:#FFF;" onClick="set_size(360,480,'ticket');"><?=$vis_language['TXTLEAVEAMSG'];?></button>-->
                    </div>
                  </div>
                  <div class="panel-footer bg-empty">
                    <?= VIS_BRANDING_LINK;?>&nbsp;
                  </div>
                </form>
                </div>
                </div> 
                  </div>
                </div> <!-- id="search" .panel -->
       </div>
      </div><!-- /.row -->
	  <? }?>
<? }elseif($widget_details[1]['content']==1){
	if(VIS_VIEW_SELFTICKET!=0) { ?>
   <div class="row">
        <div class="col-md-12">
                <div id="ticket" class="panel-body no-padder show">
                  <div class="panel-heading">
                      <div class="clear">
                            <!--<a id="cross" class="pull-right" href="javascript:void(0);" onClick="set_size(100,50,'closes');"><i class="vh vh-cross"></i></a>-->
                         <!--<a href="javascript:void(0);"><i class="vh vh-arrow-left" onClick="set_size(360,250,'btn');"></i></a>  -->
                        <h3 class="panel-title text-center m-t-sm"><span class="vh vh-ticket vh-warning"></span>&nbsp;<?=$vis_language['TXTLEAVEAMSG'];?></span></h3>
                    
                      </div>  
                      
                  </div> <!-- /.panel-heading -->
                  <div class="form-horizontal">
                   <div class="col-md-12">
                   <div class="wrapper">
                  <form id="vis_ticket_form" class="form-horizontal">
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-department"></i></span>
                        <select class="form-control input-sm  selectpicker" name="vis_department" id="vis_department" class="form-control input-sm<? if(!is_mobile()) echo ' selectpicker"'; else echo '"'; if(count($departments)>10 && !is_mobile()) echo ' data-live-search="true"';?>" ><? echo $depts; ?></select>
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-user"></i></span>
                        <input type="text" class="form-control input-sm" data-type="text" data-required="true" name="vis_firstname" id="FirstName" placeholder="<? echo $vis_language['TXTFIRSTNAME']; ?>"/>
                    </div>
                  </div>
                  <!--<div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-file-text"></i></span>
                        <input type="text" class="form-control input-sm" data-type="text" data-required="true" name="vis_lastname" id="LastName" placeholder="Last Name"/>
                    </div>
                  </div>-->
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-inbox"></i></span>
                       <input type="email" class="form-control input-sm" data-type="email" data-required="true" name="vis_email" id="PersonalEmail" placeholder="<? echo $vis_language['TXTEMAIL']; ?>"/>
                    </div>
                  </div>
                  <!--<div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-file-text"></i></span>
                        <input type="text" class="form-control input-sm" name="vis_subject" id="vis_subject" placeholder="Subject">
                    </div>
                  </div>-->
                  <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="vh vh-file-o"></i></span>
                         <textarea class="form-control input-sm" rows="6" name="vis_ticket_post" id="vis_ticket_post" placeholder="<? echo $vis_language['TXTMESSAGE']; ?>"></textarea>           
                    </div>
                  </div>        
                  <div class="form-group">
                    <div class="col-sm-offset-8">
                    <input type="hidden" name="vis_module" id="vis_module" value="ticket" /> <input type="hidden" name="vis_operation" id="vis_operation" value="open_new_ticket" /><input type="hidden" name="vis_status" value="1" /><input type="hidden" name="vis_domain" />
                    <input type="hidden" name="vis_channel" value="5" />
                    <input type="hidden" name="vis_honeypot" id="vis_honeypot" />
                    <span id="wid_success_msg" class="vh-green" style="display:none">
                    </span>
                    <span id="wid_error_msg" class="vh-red" style="display:none">
                    </span>
                    <button id="btn_submit_ticket" style="background-color:<?=$widget_details[2]['content']?>; color:#FFF;" type="button" class="btn btn-md btn-s-sm pull-right" onClick="submit_form(<? echo VIS_HEAD_MENU_VIEWTICKET;?>); "><?=$vis_language['TXTSEND'];?></button>
                      <!--<button type="submit" class="btn btn-default btn-md btn-s-sm" data-toggle="class:hide, show" data-target="#panTwo, #panThree">Send</button>-->
                    </div>
                  </div>
                  <div class="panel-footer bg-empty" style="height:61px;">
                    <?= VIS_BRANDING_LINK;?>&nbsp;
                  </div>
                </form>
                </div>
                </div> 
                  </div>
                </div>
       </div>
      </div><!-- /.row -->
	  <? }?>
<? }?>
<script src="<?php echo VIS_PATH;?>scripts/jquery.min.js"></script>
<script>
var WID_URL='<?php echo '<p></p><p> -------------<br><span class="text-dark">Submitted from </span>-<i class="text-muted">'.base64_decode($wedget_website_URL).'</i></p>'; ?>';
function validateEmail(email) {
  var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
  return emailReg.test(email);
}
//$('.selectpicker').selectpicker();
var curr_stamp=0;
function submit_form(view_ticket) {
	if(!validateEmail($("#PersonalEmail").val())) {
		$("#wid_success_msg").html('').hide();   
		$("#wid_error_msg").html('Invalid email').show();  
	}else if($("#FirstName").val()=='' || $("#vis_department").val()=='' || $("#vis_ticket_post").val()==''){
		$("#wid_success_msg").html('').hide();   
		$("#wid_error_msg").html('<?=$vis_language['TXTWIDFIELDMISSING'];?>').show();   
	}else{
    if(curr_stamp==0 || (curr_stamp < (Date.now()-10000))){
        curr_stamp = Date.now();
        var tempcustom=Array();
        var i=0;
         $('[id^="field"]').each(function(){
               tempcustom[i]={cid:this.id,value:this.value};
               i=i+1;
            });
        var vis_subject = $("#vis_ticket_post").val().substring(0, 20);
         $.ajax({
            url: 'index.php',
            dataType: 'json',
            data: {'vis_module':"ticket", 'vis_operation':"open_new_ticket", 'vis_firstname':$("#FirstName").val(), 'vis_lastname':'', 'vis_department':$("#vis_department").val(), 'vis_email':$("#PersonalEmail").val(), 'vis_priority':'1','vis_channel':'5','vis_attachments':'', 'vis_type':'1', 'vis_subject': vis_subject, 'vis_ticket_post':$("#vis_ticket_post").val()+WID_URL, 'vis_status':'1', 'vis_status':'1','vis_domain':'1'},
            type: "POST",
            success: function(data) {
				
			    if(data.vis_msg!='')
                {
					$('#vis_ticket_form')[0].reset();
					//$("#ticket").removeClass('show').addClass('hide');  
					$("#wid_error_msg").html('').hide();   
					$("#wid_success_msg").html('<?=$vis_language['TXTWIDRQUESTSUBMITED'];?>').show();   
				    /*if(view_ticket==1)			 
                        alert(data.vis_msg);
                    else
                        alert(data.vis_msg);*/

                }
                /*else if(data.vis_submitted=='false') { window.location = "index.php?/setting/widget/"+data.vis_msg; }
                else if(data.vis_error_msg!='') { $("#vis_submit_msg_div").show(); $("#vis_submit_msg_div").removeClass('alert-success').addClass('alert-danger'); $("#vis_submit_msg_div").html(data.vis_error_msg); window.scrollTo(0,0);}*/	 
            }
        });
    }
	}
}
function vis_search_selfhelp(text_val) {
	
    $.ajax({
        url: 'index.php',
	    data: {'vis_module':"selfhelp", 'vis_operation':"widget_selfhelp_search", 'vis_search_text':text_val },
        type: "POST",
        success: function(data) {
		  	if(data!=''){
				$('#article').hide();
				$('#selphelp').show();
				$("#selphelp_detail").hide(); 
				$("#vis_selfhelp").html(data);
				//set_size(360,450,'search');
			}else{
				//alert('tejas');
				$('#article').hide();
				$('#selphelp').show();
				$("#vis_selfhelp").html('<?= '<div class="h4 text-center">'.$vis_language['TXTWIDNORECORDFOUND'].'</div>';?>'); 
				$("#selphelp_detail").hide(); 
				//set_size(360,200,'btn');
			}
        }
    });
}
function get_selphelp_detail(article_id) {
    $.ajax({
        url: 'index.php',
	    data: {'vis_module':"selfhelp", 'vis_operation':"widget_selfhelp_search", 'vis_article_id':article_id },
        type: "POST",
        success: function(data) {
		    if(data!=''){
				$("#article").hide();
				$('#selphelp').hide();
				$("#selphelp_detail").show(); 
				$("#vis_selphelp_detail").html(data);
			}else{
				$("#article").show();
				$("#vis_selfhelp").html('').show(); 
				$("#selphelp_detail").hide();
				//set_size(360,250,'btn'); 
			}
        }
    });
}

/*$(document).ready(function(){
	var height = $('#gBtn').height();
	 var width = $('#gBtn').width();
	 //alert(height+'='+width);
	 var myIframe = parent.document.getElementById("ifr");
			myIframe.height = height+'%';
			myIframe.width = width+'%';
 }); */
 function set_size(pwidth, pheight, div_area){
			//alert(pwidth+'*'+pheight);
			if(div_area=='btn'){
			  /*var myIframe = parent.document.getElementById("ifr");

			  myIframe.height = pheight+'px';
			  myIframe.width = pwidth+'px';*/
			  //$("#bodyv4").addClass("b-a b-2x bg-white");
			  $("#wid_success_msg").hide();
			  $("#article").show();
			  $("#selphelp").hide();
			  $("#search").removeClass('hide').addClass('show');
			  $("#ticket").removeClass('show').addClass('hide');   
			  $('#button_div').hide();
			  //$("#selphelp").hide(); 
			  $("#selphelp_detail").hide();
			  $('#vis_search_text').val(''); 
			}
			
			if(div_area=='ticket'){
			 /* var myIframe = parent.document.getElementById("ifr");
			  myIframe.height = pheight+'px';
			  myIframe.width = pwidth+'px';*/
			  $("#ticket").removeClass('hide').addClass('show');
			  $("#search").removeClass('show').addClass('hide');  
			  $('#button_div').hide();
			}
			/*if(div_area=='closes'){
			  var myIframe = parent.document.getElementById("ifr");
			  myIframe.height = pheight+'px';
			  myIframe.width = pwidth+'px';
			  $("#bodyv4").removeAttr('class');
			  $("#search").removeClass('show').addClass('hide');  
			  $('#button_div').show();
			}*/
			/*if(div_area=='closet'){
			  var myIframe = parent.document.getElementById("ifr");
			  myIframe.height = pheight+'px';
			  myIframe.width = pwidth+'px';
			  $("#bodyv4").removeAttr('class');
			  $("#ticket").removeClass('show').addClass('hide');  
			  $('#button_div').show();
			}*/
 }    
</script>