<!--
function createRequest() {
	try {
		request = new XMLHttpRequest();
	} catch (trymicrosoft) {
		try {
			request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (othermicrosoft) {
			try {
				request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (failed) {
				request = null;
			}
		}
	}
if (request == null)
	alert("Error creating request object!");
}
function focusElement(elemName){
	document.verify.getElementById(elemName).focus();
}
function clearOrder() {
	createRequest();
	var url = "includes/clear_orders.php";
	request.open("GET", url, true);
	request.onreadystatechange = postClear;
	request.send(null);
}
function postClear() {
	if (request.readyState == 4) {
		var content = request.responseText;
		if (content=='Failure') {
			alert('<b>Error message.<\/b>');
		} else {
			location.href = '../index.php';
		}
	}
}
function verifySize() {
	// Verify first name
	var size = document.getElementById('size').value;
	if (size=='no size') {
		setTimeout("focusElement('size')",0);
		alert('Please select a size and click the Add To Cart button.');
		return false;
	}
}
function showRecord(k) {
	abbWindow = window.open('popup.php?sku='+k, 'abbWin1', 'scrollbars=yes,resizable=yes,width=620,height=400');
	}

function showInstructions() {
	abbWindow = window.open('instructions.php', 'abbWin2', 'scrollbars=yes,resizable=yes,width=490,height=660');
	}

function showFeedback() {
	abbWindow = window.open('../feedback/index.php', 'abbWin3', 'scrollbars=yes,resizable=yes,width=500,height=600');
	}
function showEcard() {
	abbWindow = window.open('../ecard/index.php', 'abbWin4', 'scrollbars=yes,resizable=yes,width=620,height=600');
	}
function cancelButton(name) {
	location.href=name;
	}
 -->