protected function renderHTML()
    {
        $formHTML = FormRenderer::render($this);
        $otherHTML = $this->rendercontextmenu();


        if (preg_match('/iPad/si', $_SERVER['HTTP_USER_AGENT']) ||
                preg_match('/iPhone/si', $_SERVER['HTTP_USER_AGENT'])) {
            $otherHTML.="
        		<script>
				var a=document.getElementsByTagName('a');
				for(var i=0;i<a.length;i++)
				{
					if(a[i].getAttribute('href').indexOf('javascript:')==-1
					&& a[i].getAttribute('href').indexOf('#')==-1)
						{
						    a[i].onclick=function()
						    {
							    try{
						    		show_loader();
						    	}catch(e){
						    		
						    	}
						        window.location=this.getAttribute('href');
						        return false
						    }
						}else{
						}
				} 
				</script>       		
        		";
        }
        if (!$this->parentFormName) {
            if (($viewObj = $this->getWebpageObject()) != null)
                $viewObj->lastRenderedForm = $this->objectName;
        }
        return $formHTML . "\n" . $otherHTML;
    }