function checkCreditCard() {
missinginfo = "";


if (document.form.CardNumber.value == "" && document.form.CardNumber.value.length != 16) {
missinginfo += "\n     - 16 Digit Credit Card Number";
}

if (document.form.CVV.value == "") {
missinginfo += "\n     - Credit Card Validation Value";
}

if (document.form.NameOnCreditCard.value == "") {
missinginfo += "\n     - Name on the Credit Card";
}


if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and press submit again!";
alert(missinginfo);
return false;
}
else 
return true;
}

function checkCreditCard_Organization() {
missinginfo = "";

if(document.form.PaymentType[0].checked){

	if (document.form.CardNumber.value == "" && document.form.CardNumber.value.length != 16) {
	missinginfo += "\n     - 16 Digit Credit Card Number";
	}
	
	if (document.form.CVV.value == "") {
	missinginfo += "\n     - Credit Card Validation Value";
	}
	
	if (document.form.NameOnCreditCard.value == "") {
	missinginfo += "\n     - Name on the Credit Card";
	}
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and press submit again!";
alert(missinginfo);
return false;
}
else 
return true;
}


function clearCreditCard_Organization() {
	
	document.form.CardNumber.value = "";
	document.form.CVV.value =  "";
	document.form.NameOnCreditCard.value = "";
	
	document.form.CardNumber.style.backgroundColor = "#EDEDED";
	document.form.CVV.style.backgroundColor = "#EDEDED";
	document.form.NameOnCreditCard.style.backgroundColor = "#EDEDED";
	document.form.CardType.style.backgroundColor = "#EDEDED";
	document.form.MonthExpire.style.backgroundColor = "#EDEDED";
	document.form.YearExpire.style.backgroundColor = "#EDEDED";
	document.form.CardNumber.disabled=true;
	document.form.CVV.disabled=true;
	document.form.NameOnCreditCard.disabled=true;
	document.form.CardType.disabled=true;
	document.form.MonthExpire.disabled=true;
	document.form.YearExpire.disabled=true;

}

function openCreditCard_Organization() {
	
	//document.form.CardNumber.value = "";
	//document.form.CVV.value = = "";
	//document.form.NameOnCreditCard.value = "";
	
	document.form.CardNumber.style.backgroundColor = "#FFFFFF";
	document.form.CVV.style.backgroundColor = "#FFFFFF";
	document.form.NameOnCreditCard.style.backgroundColor = "#FFFFFF";
	document.form.CardType.style.backgroundColor = "#FFFFFF";
	document.form.MonthExpire.style.backgroundColor = "#FFFFFF";
	document.form.YearExpire.style.backgroundColor = "#FFFFFF";
	document.form.CardNumber.disabled=false;
	document.form.CVV.disabled=false;
	document.form.NameOnCreditCard.disabled=false;
	document.form.CardType.disabled=false;
	document.form.MonthExpire.disabled=false;
	document.form.YearExpire.disabled=false;

}

