// JavaScript Document
function ShowList(){
open("printlist.asp","ShowList","location=no,toolbar=no,status=no,titlebar=no,menubar=yes,width=600,height=400,scrollbars=yes");
}

function checkmax(qty, maximum){
	if(qty.value > maximum) {
		alert('This item is limited to a quantity of ' + maximum + ' per line');
		qty.value = maximum;
	}
}

function getStr() {
var cr = String.fromCharCode(10);


myStr = '- The Apple products I am purchasing are for my own personal, educational and/or research use. Personal use means that I have physical possession and ownership of the equipment.'  + cr + cr + '- I understand I cannot return or exchange the Apple products purchased under this agreement except as detailed at http://kb.wisc.edu/showroom/2623' + cr + cr + '- I understand that within any Academic year (July 1 - June 30), I am eligible to buy only one Apple desktop and one Apple laptop.' + cr + cr + 'Press OK if you accept the terms or Cancel if you do not.';
	if (confirm(myStr)) {
		return 1;
	}else {
		return 0;
	}

}

function creditcard(cnt){
	if(1==0 && cnt > 1) {
		if (getStr()){
			if (confirm('You have a Apple Computer and other items in your shopping cart. Do you want DoIT to install any of the items on your order?'+ String.fromCharCode(13) + String.fromCharCode(13) + 						'Click OK for Installation. Otherwise, click Cancel to continue with order payment.')) {
				window.location.href='payinstall.asp?login=P';
			} else {
				window.location.href='paycust.asp';
			}
		}
	} else {
		if (getStr()) {
			window.location.href='payperscard_cn.asp';
		}
	}
}
function procurecard(){
	if (1==0 && confirm('You have an Apple Computer and other items in your shopping cart. 	Would you like some of the items installed?'+ String.fromCharCode(13) + String.fromCharCode(13) + 			'Please press OK for Installation or Cancel to submit payment information')) {
		window.location.href='payinstall.asp?login=D';
	} else {
		window.location.href='paydeptcard_cn.asp';
	}
}
function reqcard(){
	if (1==0 && confirm('You have a Apple Computer and other items in your shopping cart. Do you want DoIT to install any of the items on your order?' + String.fromCharCode(13) + String.fromCharCode(13) + 	'Click OK for Installation. Otherwise, click Cancel to continue with order payment')) {
		window.location.href='payinstall.asp?login=D';
	} else {
		window.location.href='paydept_req.asp';
	}
}