 var urlAddress = "http://www.lowestpriceblinds.com";
 var pageName = "Lowest Price Blinds";
 function addToFavorites()
  { 
  	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(pageName, urlAddress,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( urlAddress, pageName); 
	} else if(window.opera && window.print) { // Opera Hotlist
		return true; 
	} else  { 
		alert("Sorry! Your browser doesn't support this function."); 
	}
  }
 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function releaseImage(){
	//loadProcessAjax('show_image.php?src=images/index/show_index_default.gif', 'index_image');
	//document.getElementById('show').src='images/index/show_index_default.gif';
	
}

function showImage(img){
	//loadProcessAjax('show_image.php?src=product_images/blinds_type/'+img, 'index_image');
	document.getElementById('show').src='product_images/blinds_type/'+img;
}

function showFloorImage(img){
	//loadProcessAjax('show_image.php?src=product_images/blinds_type/'+img, 'index_image');
	document.getElementById('show').src='product_images/floor_category/'+img;
}



function getQuotes(){
	if(document.getElementById('blinds_id').value!=''){

		var url='order.php?product_id='+document.getElementById('blinds_id').value;
	
		url=url+'&width_1='+document.getElementById('width_1').value;
	
		url=url+'&width_2='+document.getElementById('width_2').value;
	
		url=url+'&height_1='+document.getElementById('height_1').value;
	
		url=url+'&height_2='+document.getElementById('height_2').value;
	
		url=url+'&quantity=1';
	
		location=url;
		
	}else{
		alert('Please select product first!');
	}

}