function whole_login(u,p) {
	$(".whole_left_column").load("php_scripts/whole_login.php?username="+u+"&password="+p);
}
function load_prod_info(i) {
	$('#product_info').load('php_scripts/getproduct.php?q='+i);
}
function ship_op(v) {
	$('#shipping_options').load('php_scripts/shipping_options.php?v='+v);
	$('#ship_preview').load('php_scripts/shipping_options.php?s='+v);
}
function wholesale_totals(s,bs,o) {
	$('#totals').load('php_scripts/updatetotal_w_tax.php?s='+s+'&bs='+bs+'&o='+o);
}
function whole_apply(bn,bl,bu,ti,ba,bc,bs,bz,sa,sc,ss,sz,ph,web,em,com) {
	$.post("php_scripts/wholesale_apply.php", {
		bill_name: bn,
		bill_lname: bl,
		business: bu,
		tax_id: ti,
		bill_street: ba,
		bill_city: bc,
		bill_state: bs,
		bill_zip: bz,
		ship_street: sa,
		ship_city: sc,
		ship_state: ss,
		ship_zip: sz,
		phone: ph,
		website: web,
		bill_email: em,
		comments: com
	},
   function(data){
	 $('.whole_apply').html(data);
   });
}

function forgot(){
	$(".whole_left_column").load("php_scripts/forgot_pass.php");
}

function pass_reset(e) {
	$('.whole_left_column').load('php_scripts/forgot_pass.php?e='+e);
}
function activate(u,p,pp,k,e) {
	$.post("php_scripts/activate_whole.php", {
		username: u,
		pass: p,
		confirm_pass: pp,
		email: e,
		key: k
	},
   function(data){
	 $('.reset_back').html(data);
   });
}

function reset_pass(p,pp,k,e) {
	$.post("php_scripts/reset_pass.php", {
		pass: p,
		confirm_pass: pp,
		email: e,
		key: k
	},
   function(data){
	 $('.reset_back').html(data);
   });
}
function info_display() {
	$('.my_info_left_column').load('php_scripts/info_display.php');
}

function edit_info(bn,bl,bu,ti,ba,bc,bs,bz,sa,sc,ss,sz,ph,web,em) {
	$.post("php_scripts/edit_info.php", {
		bill_name: bn,
		bill_lname: bl,
		business: bu,
		tax_id: ti,
		bill_street: ba,
		bill_city: bc,
		bill_state: bs,
		bill_zip: bz,
		ship_street: sa,
		ship_city: sc,
		ship_state: ss,
		ship_zip: sz,
		phone: ph,
		website: web,
		bill_email: em
	},
   function(data){
	 $('.my_info_left_column').html(data);
   });
}
function ord_details(o) {
	$('.my_orders_right').load('php_scripts/ord_details.php?o='+o);
}
function orderlist() {
	$('.my_orders_right').load('php_scripts/orderlist.php');
}
function product_reveal() {
	$('.collection_content').show();
	$('.collection_image').animate({
		top: '-593'
	}, 300);
}
