// x and y are both integers
var x = 0;
var y = 6;
var remainder = x % y;
if (remainder == 0){
alert(x+" is a multiple of "+y+". You can checkout now.");
var allowCheckout = 1;
} else {
alert(x+" is not a multiple of "+y+". You cannot checkout now.");
var allowCheckout = 0;
}
if (allowCheckout == 1){
//alert("checkout allowed");
$("input#checkout.btn").css("display","block");
} else {
//alert("checkout not allowed");
$("input#checkout.btn").css("display","none");
}