function turnOn(input, txt) {
	in1 = document.getElementById(input);
	in1.disabled = false;
	txt = document.getElementById(txt);
	txt.style.color="#4164aa";
}

function turnOff(input, txt) {
	in1 = document.getElementById(input);
	in1.disabled = true;
	in1.value = "";
	txt = document.getElementById(txt);
	txt.style.color="#CCCCCC";
}

function turnOn4b() {
	in1 = document.getElementById('refId1');
	in1.disabled = false;
	in2 = document.getElementById('refId2');
	in2.disabled = false;
	txt = document.getElementById('referyouTxt');
	txt.style.color="#4164aa";
	txt = document.getElementById('refId1Txt');
	txt.style.color="#4164aa";
	txt = document.getElementById('refId2Txt');
	txt.style.color="#4164aa";
}

function turnOff4b() {
	in1 = document.getElementById('refId1');
	in1.disabled = true;
	in2 = document.getElementById('refId2');
	in2.disabled = true;
	txt = document.getElementById('referyouTxt');
	txt.style.color="#CCCCCC";
	txt = document.getElementById('refId1Txt');
	txt.style.color="#CCCCCC";
	txt = document.getElementById('refId2Txt');
	txt.style.color="#CCCCCC";
}

function weddingdateOn(input, txt) 
{
	in1 = document.getElementById(input);
	in1.disabled = false;
	txt = document.getElementById(txt);
	txt.style.color="#CCCCCC";
}

function weddingdateOff(input, txt) 
{
	document.forms.one.weddingmonth.value = "";
	document.forms.one.weddingmonth.disabled = true;
	document.forms.one.weddingdate.value = "";
	document.forms.one.weddingdate.disabled = true;
	document.forms.one.weddingyear.value = "";
	document.forms.one.weddingyear.disabled = true;
}