function scAvailabilityCheck( self, code )
{
	// get selected options
	/*var usePrint = false
	var ColorID  = document.getElementById( 'option-Color' );
	if ( !ColorID )	{
		var ColorID = document.getElementById( 'option-Print' );
		usePrint = true;
	}*/
	var SizeID = document.getElementById( 'option-Sizes' );
	if ( /*!ColorID ||*/ !SizeID )
		return true;
	//var Color = ColorID.options[ ColorID.selectedIndex ].value.replace( /\s*\([\+|-]\d+(\.\d+)?\)$/, '' );
	var Size  = SizeID.options[ SizeID.selectedIndex ].value.replace( /\s*\([\+|-]\d+(\.\d+)?\)$/, '' );
	// write tmp loading text
	var loading = document.getElementById( 'inv-loading-text' );
	loading.innerHTML = 'Checking current inventory...';
	// build options string
	//var optStr = 'code=' + code + '&options1=' + ( usePrint ? 'Print' : 'Color' )  + '|' + Color + '&options2=Size|' + Size;
	var optStr = 'code=' + code + '&options1=Sizes|' + Size;
	// submit form
	var availCheckScr = document.getElementById( 'availability-check-script' );
	var script  = document.createElement( 'script' );
	script.type = 'text/javascript';
	script.src  = 'http://site.shoeocean.com/solidcactus/inventory/availability.php?' + optStr;
	availCheckScr.appendChild( script );
	return false;
}

/*
window.onerror = function(){
	document.forms['add-to-cart'].onsubmit = function () { return true; };
	document.getElementById( 'submit' ).click();
}
*/