/* --------- © 2005 Studio2net ----------------------- */

var id=new Array();
var ua='aol.com';
var au='valway';
var ppty='http://bertoiastudio.com/thankyou.html';
var ppcc='USD';
var ppcr='http://bertoiastudio.com/';
var ppgif='/store/bt1.gif';
var mmgif='/store/bt2.gif';
var vcgif='/store/bt3.gif';
var desc=0; // View 0=no, 1=yes

//-------------------------------------------------------

function mip(i){
var hto;
var item=id[i].split("|");

if ( item[0] == 0 ) 
document.write('<b>Out of Stock</b>');

else if (item.length > 2)
{
dip(i);
return ;
} 

else {
hto='<B>Price: $'+item[0] +'</B><br> '; 
if (desc) hto=hto+'<span class="vw11"><b>'+item[1]+'</b></span> '; 
hto=hto+'<table border="0" cellspacing="5" cellpadding="5"><tr><td class="edg3"> ';
hto=hto+'<form action="/store/mip.php" method="post"> '; 
hto=hto+'<input type="hidden" name="item_name" value="'+item[1]+'"> '; 
hto=hto+'<input type="hidden" name="amount" value="'+item[0] +'"> '; 
hto=hto+'<input class="nob" type="image" src="'+mmgif +'" border="0" name="submit" '; 
hto=hto+'alt="Make payment by mail"> '; 
hto=hto+'</form></td><td class="edg3"> '; 
 
hto=hto+'<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> '; 
hto=hto+'<input type="hidden" name="cmd" value="_cart"> '; 
hto=hto+'<input type="hidden" name="business" value="'+au+'@'+ua+'"> '; 
hto=hto+'<input type="hidden" name="item_name" value="'+item[1]+'"> '; 
hto=hto+'<input type="hidden" name="amount" value="'+item[0] +'"> '; 
hto=hto+'<input type="hidden" name="return" value="'+ppty+'"> '; 
hto=hto+'<input type="hidden" name="cancel_return" value="'+ppcr +'"> '; 
hto=hto+'<input type="hidden" name="no_note" value="1"> '; 
hto=hto+'<input type="hidden" name="currency_code" value="'+ppcc +'"> '; 
hto=hto+'<input class="nob" type="image" src="'+ppgif +'" border="0" name="submit" alt="Make secure payments online with PayPal"> '; 
hto=hto+'<input type="hidden" name="add" value="1"> '; 
hto=hto+'</form></td></tr></table> '; 

document.open();
document.write(hto);
document.close();
}
} 
//
function cvu() {
var hto;

hto='<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> '; 
hto=hto+'<input type="hidden" name="cmd" value="_cart"> '; 
hto=hto+'<input type="hidden" name="business" value="'+au+'@'+ua+'"> '; 
hto=hto+'<input class="nob" type="image" src="'+vcgif +'" border="0" name="submit" alt="View PayPal Cart"> '; 
hto=hto+'<input type="hidden" name="display" value="1"> '; 
hto=hto+'</form> '; 

document.open();
document.write(hto);
document.close();
}

// DROPDOWN
function dip(i){
var hto;
var item=id[i].split("|");

hto='<B>Price: $'+item[0] +'</B><br> '; 
if (desc) hto=hto+'<span class="vw11"><b>'+item[1]+'</b></span><br> '; 
hto=hto+'<table border="0" cellspacing="5" cellpadding="5"><tr><td class="edg3"> '; 
hto=hto+'<form action="/store/mip.php" method="post"> '; 
hto=hto+'<input type="hidden" name="item_name" value="'+item[1]+'"> '; 
hto=hto+'<input type="hidden" name="amount" value="'+item[0] +'"> ';
hto=hto+'<input class="nob" type="image" src="'+mmgif +'" border="0" name="submit" '; 
hto=hto+'alt="Make payment by mail"> '; 
hto=hto+'</form></td><td class="edg3"> '; 

hto=hto+'<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> '; 
hto=hto+'<input type="hidden" name="cmd" value="_cart"> '; 
hto=hto+'<input type="hidden" name="business" value="'+au+'@'+ua+'"> '; 
hto=hto+'<input type="hidden" name="item_name" value="'+item[1]+'"> '; 
hto=hto+'<input type="hidden" name="amount" value="'+item[0] +'"> '; 
hto=hto+'<input type="hidden" name="on0" value="Size">'; 
hto=hto+'<select name="os0"> '; 
for (var x=2; x < item.length ; x++)
hto=hto+'<option value="'+item[x] +'">'+ item[x]; 
hto=hto+'</select>'; 
hto=hto+'<input type="hidden" name="return" value="'+ppty+'"> '; 
hto=hto+'<input type="hidden" name="cancel_return" value="'+ppcr +'"> '; 
hto=hto+'<input type="hidden" name="no_note" value="1"> '; 
hto=hto+'<input type="hidden" name="currency_code" value="'+ppcc +'"> '; 
hto=hto+'<input class="nob" type="image" src="'+ppgif +'" border="0" name="submit" alt="Make secure payments online with PayPal"> '; 
hto=hto+'<input type="hidden" name="add" value="1"> '; 
hto=hto+'</form></td></tr></table> '; 

document.open();
document.write(hto);
document.close();

}
