function Update_Cart(products_id, url, min_qty){	
		
	//$('#response').show();
	$('#response').html('<strong>Saving...</strong>');
	
	$.post(url+"files/ajax.php?a=addCart", {
		product_id: products_id,
		product_qty: "1"
		//product_size: $('#size'+products_id).val(),
		//product_comment: $('#comments'+products_id).val()
	}, function(response){
		$('#shopping_response').html("<strong>"+unescape(response)+"</strong>");
		$('#shopping_response').html("Added in Cart");
		window.location.href=url+'shopping_cart.php';
		//$('#response'+products_id).fadeOut(20000);
	});
	return false;
}	
function copy_value(){
	//alert($('#chkBox').attr("checked"));	
	if($('#chkBox').attr("checked")==true){
		$('#shipping_name').val($('#billing_name').val());
		$('#shipping_city').val($('#billing_city').val());
		$('#shipping_address').val($('#billing_address').val());
		$('#shipping_state').val($('#billing_state').val());
		$('#shipping_postcode').val($('#billing_postcode').val());
		$('#shipping_state').val($('#billing_state').val());
		$('#shipping_country').val($('#billing_country').val());
	}
	else {
		$('#shipping_name').val("");
		$('#shipping_city').val("");
		$('#shipping_address').val("");
		$('#shipping_state').val("");
		$('#shipping_postcode').val("");
		$('#shipping_state').val("");
		$('#shipping_country').val("");	
	}
}
function report_ad(url){	
	$('#response').show();
	$('#response').html('<strong>Sending...</strong>');
	
	$.post(url, {
		pCode: $('#pCode').val(),
		your_name: $('#your_name').val(), 
		your_email: $('#your_email').val(),
		contact_no: $('#contact_no').val(),
		
		message: $('#message').val()
		
	}, function(response){
		
		$('#response').html("<strong>"+unescape(response)+"</strong>");
		
		$('#your_name').val(""); 
		$('#your_email').val("");
		$('#contact_no').val("");
		$('#message').val("");
		//$('#response').html("Added in Cart");
		
		//$('#response'+products_id).fadeOut(20000);
	});
	return false;
}
function tell_friend(url){	
	$('#response1').show();
	$('#response1').html('<strong>Sending...</strong>');
	
	$.post(url, {
		pCode: $('#pCode').val(),
		your_name: $('#your_name').val(), 
		your_email: $('#your_email').val(),
		friends_name: $('#friends_name').val(),
		friends_email: $('#friends_email').val(),
		message: $('#message').val()
		
	}, function(response){
		
		$('#response1').html("<strong>"+unescape(response)+"</strong>");
		
		$('#your_name').val(""); 
		$('#your_email').val("");
		$('#friends_name').val("");
		$('#friends_email').val("");
		$('#message').val("");
		//$('#response').html("Added in Cart");
		
		//$('#response'+products_id).fadeOut(20000);
	});
	return false;
}

function contact_buyer(url){	
	$('#response1').show();
	$('#response1').html('<strong>Sending...</strong>');
	
	$.post(url, {
		title: $('#title').val(),
		uId: $('#uId').val(),
		message: $('#message').val()
		
	}, function(response){
		
		$('#response1').html("<strong>"+unescape(response)+"</strong>");
		
		$('#title').val(""); 
		$('#message').val("");
		//$('#response').html("Added in Cart");
		
		//$('#response'+products_id).fadeOut(20000);
	});
	return false;
}
/**************************quick_quote*****************************************/
function validate_form(){
			var flag=0;
			
			$('.q1').removeClass('error_border');
			if($('#quick_name').val()==""){
				$('#quick_name').addClass('error_border');
				flag=1;
			}
			if($('#quick_email').val()==""){
				$('#quick_email').addClass('error_border');
				flag=1;
			}
			if($('#quick_subject').val()==""){
				$('#quick_subject').addClass('error_border');
				flag=1;
			}
			if($('#quick_message').val()==""){
				$('#quick_message').addClass('error_border');
				flag=1;
			}
			if($('#security_code').val()==""){
				$('#security_code').addClass('error_border');
				flag=1;
			}
			if($('#security_code').val()!=$('#hdnSecurity').val()){
				$('#security_code').addClass('error_border');
				flag=1;
			}
			if(flag==1)return false;
		}
		
		
		/**************************quick_quote home page*****************************************/
		
		
function validate_formHomePage(){
			var flag=0;
			
			$('.q1').removeClass('error_border');
			if($('#quick_name').val()=="Name"){
				$('#quick_name').addClass('error_border');
				flag=1;
			}
			if($('#quick_email').val()=="Email"){
				$('#quick_email').addClass('error_border');
				flag=1;
			}
			if($('#quick_phone').val()=="Phone"){
				$('#quick_phone').addClass('error_border');
				flag=1;
			}
			if($('#quick_message').val()=="Message"){
				$('#quick_message').addClass('error_border');
				flag=1;
			}
			
			if(flag==1)return false;
		}
