function ViewHeader(rawQuery, query, field) {
	document.write('<div id="VideoViewHeader">');
	document.write('<div><a href="/"><img src="http://s.f.indexsite.net/IndexSite/logo.png" alt="Indexsite" /></a></div>');
	document.write('<form method="post" action="/search">');
	document.write('<input type="text" name="query" value="'+query+'" class="query" />');
	document.write('<input type="hidden" name="site" value="music" />');
	document.write('<input type="hidden" name="language" value="english" />');
	document.write(' <input type="submit" name="commit" class="button" value="Search music" /><br />');
	
	document.write(' <input ');
	if (field != 'title' && field != 'artist' && field != 'composer' && field != 'album' && field != 'genre' && field != 'lyric') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_sall" value="" /><label for="music_sall">All</label>');
	
	document.write(' <input ');
	if (field == 'title') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_stitle" value="title" /><label for="music_stitle">Title</label>');

	
	document.write(' <input ');
	if (field == 'artist') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_sartist" value="artist" /><label for="music_sartist">Artist</label>');	
	
	
	document.write(' <input ');
	if (field == 'composer') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_scomposer" value="composer" /><label for="music_scomposer">Composer</label>');
	
	document.write(' <input ');
	if (field == 'album') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_salbum" value="album" /><label for="music_salbum">Album</label>');
	
	document.write(' <input ');
	if (field == 'genre') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_sgenre" value="genre" /><label for="music_sgenre">Genre</label>');
	
	document.write(' <input ');
	if (field == 'lyric') document.write(' checked="checked" ');
	document.write('type="radio" name="field" id="music_slyric" value="lyric" /><label for="music_slyric">Lyric</label>');	
	
	//document.write(' <a href="/advanced_search/'+rawQuery+'">Advanced search</a>');
	document.write('</form>');
	document.write('</div>');
	document.write('<div class="clear"></div>');
}

function player(divId, asx) {
	document.getElementById(divId).innerHTML = '<object width="340" height="280" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param value="' + asx + '" name="URL"/><param value="100" name="playCount"/><param value="true" name="showStatusbar"/><param value="1" name="autoStart"/><param value="100" name="volume"/><param value="0" name="enableContextMenu"/><param value="1" name="showdisplay"/><param value="0" name="enableErrorDialogs"/><param value="1" name="autorewind"/><param value="1" name="ShowControls"/><embed width="340" height="280" name="Player" src="' + asx + '" volume="70" playCount="100" autorewind="1" enabled="1" enablecontextmenu="0" showdisplay="1" showcontrols="1" showstatusbar="1" pluginspage="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" autostart="1" type="application/x-mplayer2"/></object>';
}