var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects. 
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}

function processSearchItem(obj, pre) {
	if (!ValidateForm(obj)) {
		return false;
	}
	
	var pre;
	var keyword = obj.rv_txtKeyword.value;
	obj.rv_txtKeyword.value = keyword;
  	  	
	if (pre != 'index') {
		var pricerange = obj.cmbPrice.value;
		var artist = obj.cmbArtist.value;
		obj.cmbPrice.value = pricerange;
		obj.cmbArtist.value = artist;
		var paramStr = '?artist='+obj.cmbArtist.value+'&pricerange='+obj.cmbPrice.value+'&keyword='+obj.rv_txtKeyword.value;
	}
	else
	{
    var paramStr = '?keyword='+keyword;
  }
	
	//obj.action = SITE_PATH + 'marketplace/search_results.php?rand=' + Math.random();	
	//obj.submit();

	var fragment_url = SITE_PATH + 'marketplace/search_results.php'+paramStr;
	//alert (fragment_url);
	xmlhttp.open('GET', fragment_url);
	document.location = SITE_PATH + 'marketplace/search_results.php'+paramStr;
	xmlhttp.send(null);	
}