var raiz='http://www.electronicaa2.com'; 



function redondea(sVal, nDec){
		var n = parseFloat(sVal);
		var s = "0.00";
		if (!isNaN(n)){
		 n = Math.round(n * Math.pow(10, nDec)) / Math.pow(10, nDec);
		 s = String(n);
		 s += (s.indexOf(".") == -1? ".": "") + String(Math.pow(10, nDec)).substr(1);
		 s = s.substr(0, s.indexOf(".") + nDec + 1);
		}
		return s;
   }
   
   

   function cart(){
    	$('#carrito').load(raiz+'/pops/carrito.php');
   }
   

