<script type ="text/javascript" >
var VISA = 0
var MC = 1
var AE = 2
var DISCOVER = 3
var A = new Array{true, true, true, false};
var B = new Array{true, false, true, false};
var C = new Array{true, true, false, true};
if (A[VISA] && B[VISA] && C [VISA]) {
// VISA is the common type
}
if (A[MC] && B[MC] && C [MC]) {
// MC is the common type
}
if (A[DISCOVER] && B[DISCOVER] && C [DISCOVER]) {
// MC is the common type
}
if (A[DISCOVER] && B[DISCOVER] && C [DISCOVER]) {
// MC is the common type
}
</script>
var VISA = 0
var MC = 1
var AE = 2
var DISCOVER = 3
var A = new Array{true, true, true, false};
var B = new Array{true, false, true, false};
var C = new Array{true, true, false, true};
if (A[VISA] && B[VISA] && C [VISA]) {
// VISA is the common type
}
if (A[MC] && B[MC] && C [MC]) {
// MC is the common type
}
if (A[DISCOVER] && B[DISCOVER] && C [DISCOVER]) {
// MC is the common type
}
if (A[DISCOVER] && B[DISCOVER] && C [DISCOVER]) {
// MC is the common type
}
</script>