function fnSearch(){
var strQueryString = "?type="+document.sortfrm.type.options[document.sortfrm.type.selectedIndex].value+"&color="+document.sortfrm.color.options[document.sortfrm.color.selectedIndex].value+"&varietal="+document.sortfrm.varietal.options[document.sortfrm.varietal.selectedIndex].value+"&nav="+document.getElementById('nav').value+"&product_type="+document.getElementById('product_type').value+"&country="+document.sortfrm.country.options[document.sortfrm.country.selectedIndex].value+"&region="+document.sortfrm.region.options[document.sortfrm.region.selectedIndex].value+"&price="+document.sortfrm.price.options[document.sortfrm.price.selectedIndex].value+"&vintage="+document.getElementById('vintage').value+"&future="+document.getElementById('future').value+"&code="+document.getElementById('code').value+"&speciality="+document.getElementById('speciality').value+"&cult_wine="+document.getElementById('cult_wine').value+"&appl="+document.getElementById('appl').value+"&size="+document.getElementById('size').value+"&rate="+document.getElementById('rate').value+"&points="+document.getElementById('points').value+"&advsearch="+document.getElementById('advsearch').value;
	location = strQueryString ;	
}
function fnWineSearch(){

var strQueryString = "?type="+document.sortfrm.type.options[document.sortfrm.type.selectedIndex].value+"&color="+document.sortfrm.color.options[document.sortfrm.color.selectedIndex].value+"&varietal="+document.sortfrm.varietal.options[document.sortfrm.varietal.selectedIndex].value+"&nav="+document.getElementById('nav').value+"&product_type="+document.getElementById('product_type').value+"&country="+document.sortfrm.country.options[document.sortfrm.country.selectedIndex].value+"&region="+document.sortfrm.region.options[document.sortfrm.region.selectedIndex].value+"&price="+document.sortfrm.price.options[document.sortfrm.price.selectedIndex].value+"&vintage="+document.getElementById('vintage').value+"&future="+document.getElementById('future').value+"&code="+document.getElementById('code').value+"&speciality="+document.getElementById('speciality').value+"&cult_wine="+document.getElementById('cult_wine').value+"&appl="+document.getElementById('appl').value+"&size="+document.getElementById('size').value+"&rate="+document.getElementById('rate').value+"&points="+document.getElementById('points').value+"&advsearch="+document.getElementById('advsearch').value;
	location = strQueryString ;	
}

function fnSpiritSearch(){
var strQueryString = "?type="+document.sortfrm.type.options[document.sortfrm.type.selectedIndex].value+"&color="+document.sortfrm.color.options[document.sortfrm.color.selectedIndex].value+"&varietal="+document.sortfrm.varietal.options[document.sortfrm.varietal.selectedIndex].value+"&nav="+document.getElementById('nav').value+"&product_type="+document.getElementById('product_type').value+"&country="+document.sortfrm.country.options[document.sortfrm.country.selectedIndex].value+"&region="+document.sortfrm.region.options[document.sortfrm.region.selectedIndex].value+"&price="+document.sortfrm.price.options[document.sortfrm.price.selectedIndex].value+"&vintage="+document.getElementById('vintage').value+"&future="+document.getElementById('future').value+"&code="+document.getElementById('code').value+"&speciality="+document.getElementById('speciality').value+"&cult_wine="+document.getElementById('cult_wine').value+"&appl="+document.getElementById('appl').value+"&size="+document.getElementById('size').value+"&rate="+document.getElementById('rate').value+"&points="+document.getElementById('points').value+"&advsearch="+document.getElementById('advsearch').value;
	location = strQueryString ;	
}

function fnwineSearch(){
//alert(document.getElementById('textfield').value);
//alert(document.sortfrm.textfield.value);
	var strQueryString = "?type="+document.sortfrm.type.options[document.sortfrm.type.selectedIndex].value+"&color="+document.sortfrm.color.options[document.sortfrm.color.selectedIndex].value+"&varietal="+document.sortfrm.varietal.options[document.sortfrm.varietal.selectedIndex].value+"&country="+document.sortfrm.country.options[document.sortfrm.country.selectedIndex].value+"&region="+document.sortfrm.region.options[document.sortfrm.region.selectedIndex].value+"&appl="+document.sortfrm.appl.options[document.sortfrm.appl.selectedIndex].value+"&vintage="+document.sortfrm.vintage.options[document.sortfrm.vintage.selectedIndex].value+"&size="+document.sortfrm.size.options[document.sortfrm.size.selectedIndex].value+"&price="+document.sortfrm.price.options[document.sortfrm.price.selectedIndex].value+"&speciality="+document.sortfrm.speciality.options[document.sortfrm.speciality.selectedIndex].value+"&future="+document.sortfrm.future.options[document.sortfrm.future.selectedIndex].value+"&rate="+document.sortfrm.rate.options[document.sortfrm.rate.selectedIndex].value+"&points="+document.sortfrm.points.options[document.sortfrm.points.selectedIndex].value+"&cat="+document.sortfrm.cat.value+"&textfield="+document.getElementById('textfield').value ;
	location = strQueryString ;	
}

function fnspiritSearch(){
	var strQueryString = "?type="+document.sortfrm.type.options[document.sortfrm.type.selectedIndex].value+"&s_class="+document.sortfrm.s_class.options[document.sortfrm.s_class.selectedIndex].value+"&s_country="+document.sortfrm.s_country.options[document.sortfrm.s_country.selectedIndex].value+"&s_region="+document.sortfrm.s_region.options[document.sortfrm.s_region.selectedIndex].value+"&vintage="+document.sortfrm.vintage.options[document.sortfrm.vintage.selectedIndex].value+"&size="+document.sortfrm.size.options[document.sortfrm.size.selectedIndex].value+"&price="+document.sortfrm.price.options[document.sortfrm.price.selectedIndex].value+"&speciality="+document.sortfrm.speciality.options[document.sortfrm.speciality.selectedIndex].value+"&future="+document.sortfrm.future.options[document.sortfrm.future.selectedIndex].value+"&rate="+document.sortfrm.rate.options[document.sortfrm.rate.selectedIndex].value+"&points="+document.sortfrm.points.options[document.sortfrm.points.selectedIndex].value+"&cat="+document.sortfrm.cat.value +"&textfield="+document.getElementById('textfield').value ;
	location = strQueryString ;	
}

function sortby(fld){
	document.sortfrm.ordby.value=fld;
	var stype=document.sortfrm.stype.value;

	if(stype==2 || !stype ){
		document.sortfrm.stype.value=1;
	}else if(stype==1){
		document.sortfrm.stype.value=2;
	}
	document.sortfrm.submit();
}

function gotoshopcart(pasku){
   var pasku=pasku;
   document.frm1.pid.value=pasku;
   document.frm1.submit();
   return true;
}

