// JavaScript Document
function SendForm() {
	frm = document.Compose;
	frm.submit();
}

function switch_lang(_lang) {
	var _lpath = window.location.pathname; 

	if (_lpath.substring(1, 8) == 'cgi-bin') {
		_lqstr = window.location.search.substring(1);

		var npos = _lqstr.indexOf('Lang=');
		if (npos != -1) {
			_lqstr = _lqstr.replace(_lqstr.substring(npos, npos + 7), 'Lang='+ _lang);
			}
		else {
			_lqstr = _lqstr + '&Lang='+ _lang;
			}

		document.location = _lpath +'?'+ _lqstr;
		return false;

		}
	else {
		if (_lang == 'es') {
			_lpath = _lpath.substring(3);
			}
		else {
			_lpath = '/en'+ _lpath;
			}
		window.location = _lpath;
		}
}