/*var new_gallery = new image_gallery();
new_gallery.populate();
//alert(new_gallery.page);
function image_gallery(){
	this.page = 'product_gallery.php';
	this.container = eval('document.getElementById("gallery")');
	this.getData=function(){
		loadXMLDoc(this.page);//alert(document.myData);
		
	}
	this.populate=function(result){
		//alert(this.container);
		alert(result);
		//this.loc = ;//alert(loc);
		//this.container.innerHTML = 'fu';//document.myData;
	}
}
function image_search(){
	
}*/
function make_gallery(qry){
	loadXMLDoc('php/gallery.php'+qry,'process_gallery()');
}
function process_gallery(){
	document.getElementById('gallery').innerHTML = document.myData
}
function viewProduct(id){
	window.location='product.php?product='+id;
}
function go(opt){
var loc='';
//alert(opt);
	for(i=0;i<opt.length;i++){
		val=document.getElementById(opt[i]);
		//alert(val.selectedIndex+' '+val.value);//(!val){continue};
		if(val.selectedIndex!=0)
			loc+=opt[i]+'='+val.value+'&';
		//alert(document.getElementById(opt[i]).selectedIndex);
		//alert(loc);
	}
	window.location=window.location.pathname+'?'+loc;
}


