	   
	function mt(){ 
		window.open('/ru/system/feedback.php','new','width=550,height=400,toolbar=1');
	}  
	function listen(){
		window.open('/ru/system/mplayer.php','new','width=408,height=181,toolbar=0, resizable=0, status=0,menubar=0,top=200,left=400');
	}
	
	function vote(parentElemId, form, key_word,songTitle,artistName){
	// Create new JsHttpRequest object.
	   var req = new JsHttpRequest();
	// Code automatically called on load finishing.
		document.getElementById(parentElemId).innerHTML = '<img src="/images/loading.gif" border="0" alt=""/>';
	   req.onreadystatechange = function() {
	   if (req.readyState == 4) {
		// Write result to page element (_RESULT become responseJS). 
		var answ = req.responseJS.answer;
		if(answ=='yes'){answ='Да';}
		if(answ=='no'){answ='Нет';}
		document.getElementById(parentElemId).innerHTML = '<span class="'+req.responseJS.answer+'">'+answ+'</span>';
		}
	}
	// Prepare request object (automatically choose GET or POST).
		req.open(null, '/ru/system/chartvote.php', true);
	// Send data to backend.
		req.send( { q: document.getElementById(form), title:songTitle, artist:artistName, keyword:key_word } );
	}
	
	function getVoteCount(){
		// Create new JsHttpRequest object.
		   var req = new JsHttpRequest();
		// Code automatically called on load finishing.
			//document.getElementById(parentElemId).innerHTML = '<img src="/images/loading.gif" border="0" alt=""/>';
		   req.onreadystatechange = function() {
		   if (req.readyState == 4) {
			// Write result to page element (_RESULT become responseJS). 
			var answ = req.responseJS.answer;
			document.getElementById('countVotes').innerHTML = 'Всего голосов на этой неделе: '+answ+'<br>';
			document.getElementById('countVotes').style.textAlign='right';
			document.getElementById('countVotes').style.fontWeight='bold';
			document.getElementById('countVotes').style.padding='10px';
			}
		}
		// Prepare request object (automatically choose GET or POST).
			req.open(null, '/ru/system/getVoteCount.php', true);
		// Send data to backend.
			req.send({ q: document.getElementById('countVotesForm'), channel:'dfm', getcountvotes:'get'});
	}
	function getFlirtContent(){
		// Create new JsHttpRequest object.
		   var req = new JsHttpRequest();
		// Code automatically called on load finishing.
		   req.onreadystatechange = function() {
		   if (req.readyState == 4) {
			// Write result to page element (_RESULT become responseJS). 
			var answ = req.responseJS.answer;
				document.getElementById('flirtContent').innerHTML = answ+'<br>';
			}
		}
		// Prepare request object (automatically choose GET or POST).
			req.open(null, '/ru/system/getFlirtContent.php', true);
		// Send data to backend.
			req.send({ q: document.getElementById('flirtForm'), channel:'dfm', getcountvotes:'get'});
	}	