
function CheckFields(objID) {
	var elem = document.getElementById(objID).elements;
	
	for(var a = 0; a < elem.length; a++) {
		if(!elem[a].getAttribute("checkMandatory")) {
			continue;
		}

		if(elem[a].value == '' || elem[a].value == ' ') {
			alert('Please complete the ' + elem[a].getAttribute("checkMandatory") + ' before continuing.');
			elem[a].focus();
			return false;
		}
	}
	return true;
}

function OpenDialog(payload) {
	payload += '&KeepThis=true&TB_iframe=true&width=700&height=550';
	tb_show(null, payload, false);
}

function ConfirmRedirect(msg, payload) {
	if(confirm(msg)) {
		window.location = payload;
	}
}

function Toggle_FlashVideo() {
	$('#ProductVideoIntro').fadeOut('slow');
}

function Toggle_FadeInVideoIntro() {
	$('#ProductVideoIntro').fadeIn(2000);
}

