function forgot_password(){
	createPopUp(500, 180, true, false, 'center', this, 'forgot_password', true, '/account/reset/');
}

// Form Scripts

	function form_submit(form, e){
		
		var key_code;
		
		if(window.event) key_code = window.event.keyCode;
		else if (e) key_code = e.which;
		else return true;
		
		if(key_code == 13){
			form.submit();
			return false;
		} else {
			return true;	
		}
		
	}
	
	function checkbox_click(checkbox){
		checkbox.checked = !checkbox.checked;
	}

// International Shipping

	function shipping_methods(shipping_country){
		
		$.getJSON('/com/controller/shipping_methods.cfm?shipping_country='+shipping_country, {},
			function(response){
				
				$("#shipping_method").children().remove();
				$.each(response.methods.id,
					   function(i,id){
						   $("#shipping_method").append($("<option />").val(response.methods.id[i]).text(response.methods.value[i]));
					   }
				);
				$('#shipping_method').resetSS();
				
			}
		);
		
	}
	
// Filter Scripts

	function filter_click(checkbox){
		checkbox.checked = !checkbox.checked;
		document.filter_form.submit();
	}
	
	function catalog_sort(sortby){
		
		if(sortby == 'price_highlow'){
			document.getElementById('sortform_sort_by').value = 'price';
			document.getElementById('sortform_sort_order').value = 'DESC';
		} else if (sortby == 'price_lowhigh'){
			document.getElementById('sortform_sort_by').value = 'price';
			document.getElementById('sortform_sort_order').value = 'ASC';
		} else if (sortby == 'bestseller'){
			document.getElementById('sortform_sort_by').value = 'bestseller';
			document.getElementById('sortform_sort_order').value = 'DESC';
		} else if (sortby == 'popularity'){
			document.getElementById('sortform_sort_by').value = 'popularity';
			document.getElementById('sortform_sort_order').value = 'DESC';
		} else if (sortby == 'newest'){
			document.getElementById('sortform_sort_by').value = 'newest';
			document.getElementById('sortform_sort_order').value = 'DESC';
		}
		
		document.sort_form.submit();
		
	}

// Quick View Scripts

	function quickview_show(id){
		
		/*
		thumbnail = document.getElementById('thumbnail_'+id);

		eval("thumbnail_over" + id + " = true");
		eval("quickview_over" + id + " = false");
		
		if(!document.getElementById('quickview_'+id)){
		
			quickview = document.createElement("div");
		
			quickview.id = "quickview_" + id;
		
			quickview.style.position = "relative";
			quickview.style.top = "55px";
			quickview.style.marginBottom = "-25px";
			quickview.style.width = "100px";
			quickview.style.textAlign = "center";
			
			quickview.onmouseover = function(){
				eval("thumbnail_over" + id + " = true");
				eval("quickview_over" + id + " = true");
				this.style.cursor = 'pointer';
			}
			quickview.onmouseout = function(){
				eval("quickview_over" + id + " = false");
				quickview_remove(id);
			}
			quickview.onclick = function(){
				eval("quickview_over" + id + " = false"); 
				quickview_hide(id);
				createPopUp(500, 500, true, false, 'center', this, 'quickview_window', true, '/item/quick_view.cfm?id='+id);
			}
			
			quickview.innerHTML = "<img src='/images/quickview.png' class='png' width='100' height='25' border='0' /></a><br />";
			thumbnail.parentNode.insertBefore(quickview, thumbnail);
			
		}
		*/
		
	}
	
	function quickview_hide(id){
		
		/*
		eval("thumbnail_over" + id + " = false");
		quickview = document.getElementById('quickview_'+id);
		if(quickview && !eval("quickview_over"+id) && !eval("thumbnail_over"+id)){
			setTimeout('quickview_remove('+id+');', 10);
		}
		*/
		
	}
	
	function quickview_remove(id){
		quickview = document.getElementById('quickview_'+id);
		if(quickview && !eval("quickview_over"+id) && !eval("thumbnail_over"+id)) quickview.parentNode.removeChild(quickview);
	}
