// NebuCart - The JavaScript Shopping Cart
// by Nebulus Designs
//
// Copyright 1999-2001 all rights reserved.

// None of this script may be redistributed or sold
// without the authors express consent.
// Violations of copyright will be prosecuted.

// If you would like to use NebuCart,
// email us at nebucart@nebulus.org
// or visit http://nebucart.nebulus.org

// ********************************************
// NebuCart Ordering Option Buttons	          *
// ********************************************
// DO NOT CHANGE ANYTHING BELOW THIS LINE!    *
// ********************************************

var multiOptions = 0;

if(usePrint){ multiOptions++; }
if(useForm || useGateway && useSecure){ multiOptions++; }
if(useForm || useGateway && useUnsecure){ multiOptions++; }
if(useSecure || useUnsecure || usePrint){
	if(multiOptions > 1){
		document.write('<font face=' + myFont + ' size=-1><b>Choose your ordering option:</b></font><br>');
	}
	if(usePrint || useForm || useGateway){
		document.write('<table cellpadding=1 cellspacing=1 border=0><tr>');
	}
	if(usePrint && printFormText != ''){
		document.write('<td><font size=-1><input type="button" value="' + printFormText      + '" onClick="Validate(\'\',0)"></font></td>');
	}
	if(useForm && useUnsecure && unsecureFormText != ''){
		document.write('<td><font size=-1><input type="button" value="' + unsecureFormText   + '" onClick="Validate(COform,0)"></font></td>');
	}
	if(useGateway && useUnsecure && unsecureCreditText != ''){
		document.write('<td><font size=-1><input type="button" value="' + unsecureCreditText + '" onClick="Validate(COgateway,0)"></font></td>');
	}
	if(usePrint || useForm || useGateway){
		document.write('</tr></table>');
	}
	if((useForm || useGateway) && useSecure){
		document.write('<table cellpadding=1 cellspacing=1 border=0><tr>');
		if(useForm && secureFormText != ''){
			document.write('<td><font size=-1><input type="button" value="' + secureFormText   + '" onClick="Validate(COsecureForm,1)"></font></td>');
		}
		if(useGateway && secureCreditText != ''){
			document.write('<td><font size=-1><input type="button" value="' + secureCreditText + '" onClick="Validate(COsecureGateway,1)"></font></td>');
		}
		document.write('</tr></table>');
	}
} else {
	document.write('<font face=arial,helvetica size=-1>');
	document.write('ERROR: Ordering options are misconfigured<br>');
	document.write('Please contact the <a href="mailto:' + myEmail + '?subject=Shopping cart configuration error">webmaster</a>.');
	document.write('</font>');
}

document.write('<p>');
document.write('<font size=-1>');
document.write('<input type="reset" value="'  + clearFormText + '">&nbsp\;&nbsp\;');
document.write('<input type="button" value="' + backText      + '" onClick="history.back();">');
document.write('</font>');