<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/css/seotoaster.css'); ?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/js/thickbox/thickbox.css'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/jquery/jquery.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/thickbox/thickbox.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/forms/forms.js'); ?>
<?php echo $this->headScript(); ?>
<script type="text/javascript">
    $(document).ready(function(){
/*  $(".success").click(function(){ hideMessages(); });*/
$(".errors").click(function(){ hideMessages(); });
});
</script>
<?php if(isset($this->redirect) && $this->redirect!=""):   ?>
<script type="text/javascript">
    var tmpredirect = '<?php echo $this->redirect;?>';
    parent.tb_remove();
    top.location = tmpredirect;
</script>
<?php  endif; ?>
<div id="seotoaster" class="adminforms">
<?php   /* if(isset($this->successSave)){ ?>
    <div class="success" style="cursor:pointer;"><strong>Form Successfuly Updated.</strong></div>
<?php } */?>
<?php if(isset($this->errorElements)):  ?>
    <div class="errors" style="cursor:pointer;"><?php echo $this->errorElements;?></div>
<?php endif; ?>
<div id="admineditwhat">{%Edit Form%} "<?php echo $this->name;?>"</div>
        <?php echo $this->form; ?>
<div class="close_window" onclick="parent.tb_remove();"></div>
<input type="hidden" id="hid-main-wsurl" name="hid-main-wsurl" value="<?php echo $this->websiteUrl; ?>" />
</div>