function openimg(url) 
{
	var features = 'top=10,left=10,toolbar=n o,resizable=no,menubar=no,location=no,status=yes,s crollbars=no';
	window.open(url,"Picture",features);
}

function quantity()
{
	var qu;
	qu = document.buy.amount.value;
	if (qu>0) return true;
	else
	{
		alert("You need to insert a valid quantity");
		return false;
	}
}

function term()
{
	if (document.paypal.terms.checked==true) return true;
	else
	{
		alert("To complete your purchase you must accept the 'Universal Terms of Service' by checking the 'Universal Terms of Service' checkbox on this page.");
		return false;
	}
}


function hidediv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){//if they are 'see' divs
if (document.getElementById) // DOM3 = IE5, NS6
divs[i].style.visibility="hidden";// show/hide
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'hidden';
else // IE 4
document.all.hideshow.divs[i].visibility = 'hidden';
}
}
}

function showdiv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){
if (document.getElementById)
divs[i].style.visibility="visible";
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'visible';
else // IE 4
document.all.hideshow.divs[i].visibility = 'visible';
}
}
} 

function hide()
{
hidediv("first");
document.paypal.custom.value = "";
}

function show()
{
showdiv("first");
}

