public function getHTMLSelect($attributes = '',$currentlang = '',$orignames = false) {
		$html = '<select '.$attributes.'>';
		
		foreach ($this->getUsedLanguages() as $code=>$lang) {
			$html .= '<option value="'.$code.'" ';
			
			if ($currentlang == $code) {
				$html .= 'selected';
			}
			
			$html .= '>';
			
			if ($orignames) {
				$html .= $lang['origname'];
			} else {
				$html .= $lang['name'];
			}
		}
		
		$html .= '</select>';
		
		return $html;
	}