function prov()
{
	if(document.getElementById('search_query').value==''){
		alert('Empty search. Enter nah');
		return false;
	}
}

function openCD(cd)
{
	win= window.open("showcd?cd="+cd
	  ,"","scrollbars=yes,toolbar=0,width=600,height=500,status=0,left=100,top=10");
	win.focus();
}

function onmov(i)
{
 document.getElementById('tr'+i).style.background='#7F7246';
}

function onmou(i)
{
 document.getElementById('tr'+i).style.background='black';
}


function search() {
	if(opener.document){
		razd = document.getElementById('search_by').value;
		str = document.getElementById('searchtxt').value;
		po = document.getElementById('search_s').value;
		if(str=='')	return false;
		opener.document.searchform.action = razd;
		opener.document.getElementById('searchtxt').value = str;
		opener.document.getElementById('search_po').value = po;
		opener.document.searchform.submit();
	}
	return false;
}


function subscribe()
{
  mail = document.getElementById('email').value;
  if (mail=='') { return false;}
  win  = window.open('http://sfcollector.ru/subscribe/?mail='+mail,'Subscribe','toolbar=0,width=250,height=200,status=0,left=100,top=100');
  win.focus();
}

function chstype(sel)
{
	d = document.getElementById('kishki');
	if(sel=='merch'){
		d.innerHTML = "<select name='search_merch' id='search_s' class='autocomplete'>"+
		"<option value='Type' >Типу одежды</option><option value='Artist' >Исполнителю</option></select>";
			new Autocompleter.SelectBox('search_s');
	}
	if(sel=='cd'){
		d.innerHTML = "<select name='search_cd' id='search_s' class='autocomplete'>"+
		"<option value='Artist' >Исполнителю</option><option value='Label' >Лейблу</option></select>";
			new Autocompleter.SelectBox('search_s');
	}
	if(sel=='other'){
		d.innerHTML = "<input type=text value='Любому' id='search_s' class=intxt disabled style='font-weight:bold;color:black;'><br>";
	}
}
