// 
// begin ++++++++++++++++++++++++++++++++++
function round_decimals(original_number,decimals){
 var result1 = original_number * Math.pow(10,decimals);
 var result2 = Math.round(result1);
 var result3 = result2 / Math.pow(10,decimals);
 return pad_with_zeros(result3,decimals);
}
function pad_with_zeros(rounded_value,decimal_places){
 var value_string = rounded_value.toString();
 var decimal_location = value_string.indexOf(".");
 if (decimal_location == -1){
  decimal_part_length = 0;
  value_string += decimal_places > 0 ? "." :"";
 }else{
  decimal_part_length = value_string.length - decimal_location - 1;
 }
 var pad_total = decimal_places - decimal_part_length;
 if(pad_total > 0){
  for (var counter = 1;counter <= pad_total;counter++){
   value_string += "0";
  }
 }
 return value_string;
}
//end  +++++++++++++++++++++++

//
// begin ++++++++++++++++++++++
function show_buynow(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"15\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"13\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}
// end ++++++++++++++++++++++++++

// 
// begin +++++++++++++++++++++++++++++++++++++

function show_buynow3(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var now_price  = round_decimals( now_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<p><b><center><font color=\"#FF0000\">" + "$" + now_price + " </font></center></b></p>");
		document.write("<input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"images/button_in_cart.gif\">");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"15\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"13\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_price(p_psecode,type){//
	var promotion = 1;   //
	var proportion = 1.00;  //
	var rise = 1.10;     //
	var rise_price = price[p_psecode][0] * proportion * rise;
	var now_price  = price[p_psecode][0] * proportion;
	var save_price = rise_price - now_price;
	rise_price = round_decimals( rise_price ,2);
	now_price  = round_decimals( now_price  ,2);
	save_price = round_decimals( save_price ,2);

	if (promotion != 0){
		if (type != 0){
			document.write("List Price: <strike>US $" + rise_price + "</strike><br>");
			document.write("Today's Price: US $" + now_price + "<br>");
			document.write("You save: <span class=\"style3\">$" + save_price + "</span><br>");
		}else{
			document.write("US $" + now_price + "");
		}
	}
	else{
		//
		document.write("US $" + now_price + "");
	}
}

function show_price2(p_psecode,p_psecode2,type){//
	var promotion = 1;   //
	var proportion = 1.00;  //
	var rise = 1.10;     //
	var rise_price = price[p_psecode][0] * proportion * rise;
	var now_price  = (eval(price[p_psecode][0])+eval(price[p_psecode2][0])) * proportion;
	var save_price = rise_price - now_price;
	rise_price = round_decimals( rise_price ,2);
	now_price  = round_decimals( now_price  ,2);
	save_price = round_decimals( save_price ,2);
	
	if (promotion != 0){
		if (type != 0){
			//document.write("Reg .price: <strike>US $" + rise_price + "</strike><br>");
			document.write("US $" + now_price + "");
			//document.write("You save: <span class=\"style3\">$" + save_price + "</span><br>");
		}else{
			document.write("US $" + now_price + "");
		}
	}
	else{
		//
		document.write("US $" + now_price + "");
	}
}
///-net add to sum----------------------add "battery + charger" or "battery + adapter"========sum

function show_buynow2(p_psecode,p_psecode2,imagepath){
	var proportion = 1.00; //
	var now_price;	    //
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var now_price2 = Math.round(price[p_psecode2][0] * proportion * 100)/100;
	var now_price = eval(now_price) + eval(now_price2);
	var now_price  = round_decimals( now_price ,2);
    var now_price2  = now_price*0.98;
    var now_price2  = round_decimals( now_price2 ,2);
 if ((price[p_psecode] != "0" && price[p_psecode][1] == "1") && (price[p_psecode2] != "0" && price[p_psecode2][1] == "1")) {
        document.write("<font size=\"1\"><b>Total List Price: </b></font><s>$" + now_price + "</s><b><br><font size=\"1\">Buy Together Today: </font><font color=\"#FF0000\">$" + now_price2 + "</font></b><br> ");
        document.write("<input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/buy2.gif\">");
        document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "+" + p_psecode2 + "\">");
        document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price2 + "\">");
  		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"25\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"25\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("Sorry, out of stock now!");
		}
}

function show_buynow4(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"11.99\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"10\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

/*function show_buynow4(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var now_price  = round_decimals( now_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"price\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"15\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"10\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}*/

function show_buynow5(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var now_price  = round_decimals( now_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<p><b><center><font color=\"#FF0000\">" + "$" + now_price + " </font></center></b></p>");
		document.write("<input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"images/button_in_cart.gif\">");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"11.99\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"10\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow6(p_psecode){
	var proportion = 0.71574; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "&#8364;" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "&#8364;" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "&#8364;" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globalmotherboards@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"10.75\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"7.20\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"EUR\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"EU\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow7(p_psecode){
	var proportion = 0.62523; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "&pound;" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "&pound;" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "&pound;" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globalmotherboards@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"9.38\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"6.30\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"GBP\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"GB\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow8(p_psecode,p_psecode2,imagepath){
	var proportion = 1.00; //
	var now_price;	    //
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var now_price2 = Math.round(price[p_psecode2][0] * proportion * 100)/100;
	var now_price = eval(now_price) + eval(now_price2);
	var now_price  = round_decimals( now_price ,2);
    var now_price2  = now_price*0.98;
    var now_price2  = round_decimals( now_price2 ,2);
 if ((price[p_psecode] != "0" && price[p_psecode][1] == "1") && (price[p_psecode2] != "0" && price[p_psecode2][1] == "1")) {
        document.write("<font size=\"1\"><b>Total List Price: </b></font><s>$" + now_price + "</s><b><br><font size=\"1\">Buy Together Today: </font><font color=\"#FF0000\">$" + now_price2 + "</font></b><br> ");
        document.write("<input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/buy2.gif\">");
        document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "+" + p_psecode2 + "\">");
        document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price2 + "\">");
  		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"14\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"14\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("Sorry, out of stock now!");
		}
}

function show_buynow9(p_psecode){
	var proportion = 1.11140; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globalmotherboards@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"16.67\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"11.10\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"CAD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"CA\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow10(p_psecode){
	var proportion = 1.27135; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globalmotherboards@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"19.07\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"12.7\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"AUD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"AU\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow11(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"7\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"7\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow12(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<br><span class=\"discount\"><em>Holiday Deals! All Products Save Up to 45%! Brand New, 1 Year Warranty and 30 Days Money Back Guarantee Every Item!</em></span>");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"6\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"6\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}

function show_buynow13(p_psecode){
	var proportion = 1.00; //
	var now_price;	    //
	var rise = 1.82;
	var now_price  = Math.round(price[p_psecode][0] * proportion * 100)/100;
	var rise_price = price[p_psecode][0] * proportion * rise;
	var save_price = rise_price - now_price;
	var now_price  = round_decimals( now_price ,2);
	var rise_price = round_decimals( rise_price ,2);
	var save_price = round_decimals( save_price ,2);
	if (price[p_psecode] != "0" && price[p_psecode][1] == "1"){
		document.write("<span class=\"discount1\">Original Price:</span> <span class=\"price1\"><s>"+ "$" + rise_price + "</s>&nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">Today's Price:</span> <span class=\"price2\">"+ "$" + now_price + " &nbsp;&nbsp;</span>");
		document.write("<br><span class=\"discount1\">You Save:</span> <span class=\"price3\">"+ "$" + save_price + " &nbsp;&nbsp;</span>");
		document.write("<br><input name=\"Submit\" type=\"image\" value=\"Submit\" src=\"../images/button_in_cart.gif\">");
		document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + p_psecode + "\">");
		document.write("<input type=\"hidden\" name=\"amount\" value=\"" + now_price + "\">");
		document.write("<input type=\"hidden\" name=\"business\" value=\"globallaptopbatteries@gmail.com\">");
		document.write("<input type=\"hidden\" name=\"shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"shipping2\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"no_shipping\" value=\"0\">");
		document.write("<input type=\"hidden\" name=\"page_style\" value=\"PayPal\">");
		document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
		document.write("<input type=\"hidden\" name=\"lc\" value=\"US\">");
		document.write("<input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\">");
		document.write("<input type=\"hidden\" name=\"add\" value=\"1\">");
		document.write("<input type=\"hidden\" name=\"cmd\" value=\"_cart\">");
	}
	else{
		document.write("<span class=\"price\">"+"Sorry, out of stock now!" + "</span>");
		//document.write("<span class=\"style3\">Out of stock</span>");
	}
}