public function render()
    {
    	$value = $this->text ? $this->getText() : $this->value;
        $fromList   = array();
        $this->getFromList($fromList);
        $valueArr = explode(',', $this->value);
        $style = $this->getStyle();
        $func = $this->getFunction();
        $id = $this->objectName;
        $selectedStr = '';

        $selectedStr = $value;

        foreach ($fromList as $option)
        {
            $test = array_search($option['val'], $valueArr);
            if (!($test === false))
            {
                $selectedStr = $option['txt'] ;
                break;
            }
        }
        
        if($selectedStr=="0" || $selectedStr==null){
        	$selectedStr = $this->blankOption;
        }

        if ($this->getLink())
        {
            $link = $this->getLink();            
            $sHTML = "<a id=\"$id\" href=\"$link\" $func $style>" . $selectedStr . "</a>";
        }
        else
            $sHTML = "<span $func $style>" . $selectedStr . "</span>";

        if($this->backgroundColor)
        {
            	$bgcolor = $this->getBackgroundColor();
       			if($bgcolor){
            		$sHTML = "<div style=\"background-color:#".$bgcolor.";text-indent:10px;\" >$sHTML</div>";
            	}
        }            
        return $sHTML;
    }