function attrSelectSwap()
{
	if (document.getElementById('attrSelect').options[document.getElementById('attrSelect').selectedIndex].id)
	{
	document.getElementById('selectAttrImage').src=document.getElementById('attrSelect').options[document.getElementById('attrSelect').selectedIndex].id;
	}
}


function showBilling() {
if(document.getElementById('billingCheck').checked == true)
  { document.getElementById('billingFields').className = 'visible'; }
if(document.getElementById('billingCheck').checked == false)
  { document.getElementById('billingFields').className = 'hidden'; }
}

function checkoutQuestions() {
	if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'hotel')
	{
		document.getElementById('hotel').className = 'visible';
	} else { 
		document.getElementById('hotel').className = 'hidden';
	}

	if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'hyatt')
	{
		document.getElementById('hyatt').className = 'visible';
	} else { 
		document.getElementById('hyatt').className = 'hidden';
	}

if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'condo')
{document.getElementById('condo').className = 'visible';}
else
{document.getElementById('condo').className = 'hidden';}

if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'cruise')
{document.getElementById('cruise').className = 'visible';}
else
{document.getElementById('cruise').className = 'hidden';}

if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'home')
{document.getElementById('home').className = 'visible';}
else
{document.getElementById('home').className = 'hidden';}

if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'myhome')
{document.getElementById('myhome').className = 'visible';}
else
{document.getElementById('myhome').className = 'hidden';}

if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == 'business')
{document.getElementById('business').className = 'visible';}
else
{document.getElementById('business').className = 'hidden';}

if (document.getElementById('chkoutSelect').options[document.getElementById('chkoutSelect').selectedIndex].value == '#')
{document.getElementById('select2').selected = true;
document.getElementById('select2').selectedIndex = 0;
document.getElementById('select3').selected = true;
document.getElementById('select3').selectedIndex = 0;
document.getElementById('select4').selected = true;
document.getElementById('select4').selectedIndex = 0;
document.getElementById('select5').selected = true;
document.getElementById('select5').selectedIndex = 0;
document.getElementById('select6').selected = true;
document.getElementById('select6').selectedIndex = 0;
document.getElementById('select7').selected = true;
document.getElementById('select7').selectedIndex = 0;
document.getElementById('select8').selected = true;
document.getElementById('select8').selectedIndex = 0;
document.getElementById('select9').selected = true;
document.getElementById('select9').selectedIndex = 0;
document.getElementById('select10').selected = true;
document.getElementById('select10').selectedIndex = 0;
document.getElementById('select11').selected = true;
document.getElementById('select11').selectedIndex = 0;
}

}


function savedcartsMain() {
if (document.getElementById('savedcartsSelectMain').options[document.getElementById('savedcartsSelectMain').selectedIndex].value == 'optionA')
document.getElementById('optionA').className = 'visible';
else
document.getElementById('optionA').className = 'hidden';

if (document.getElementById('savedcartsSelectMain').options[document.getElementById('savedcartsSelectMain').selectedIndex].value == 'optionB')
document.getElementById('optionB').className = 'visible';
else
document.getElementById('optionB').className = 'hidden';
}

function savedcartsA(){
if (document.getElementById('savedcartsOptionA').options[document.getElementById('savedcartsOptionA').selectedIndex].value == 'savecart')
document.getElementById('savecart').className = 'visible';
else
location.href = document.getElementById('savedcartsOptionA').options[document.getElementById('savedcartsOptionA').selectedIndex].value;

if (document.getElementById('savedcartsOptionA').options[document.getElementById('savedcartsOptionA').selectedIndex].value != 'savecart')
document.getElementById('savecart').className = 'hidden';
}

function savedcartsB() {
location.href = document.getElementById('savedcartsOptionB').options[document.getElementById('savedcartsOptionB').selectedIndex].value;
}

function destinationReset() {
document.getElementById('chkoutSelect').selected = true;
document.getElementById('chkoutSelect').selectedIndex = 0;
document.getElementById('select2').selected = true;
document.getElementById('select2').selectedIndex = 0;
document.getElementById('select3').selected = true;
document.getElementById('select3').selectedIndex = 0;
document.getElementById('select4').selected = true;
document.getElementById('select4').selectedIndex = 0;
document.getElementById('select5').selected = true;
document.getElementById('select5').selectedIndex = 0;
document.getElementById('select6').selected = true;
document.getElementById('select6').selectedIndex = 0;
document.getElementById('select7').selected = true;
document.getElementById('select7').selectedIndex = 0;
document.getElementById('select8').selected = true;
document.getElementById('select8').selectedIndex = 0;
document.getElementById('select9').selected = true;
document.getElementById('select9').selectedIndex = 0;
document.getElementById('select10').selected = true;
document.getElementById('select10').selectedIndex = 0;
document.getElementById('select11').selected = true;
document.getElementById('select11').selectedIndex = 0;}


function radioCheck(me,group)
{ var checked = me.checked;
if (checked) for (var i = 1; i < arguments.length; i++) {
var ck = document.getElementById(arguments[i]);
if (ck) ck.checked = false;
}
me.checked = checked;
}

function DateSpecific() {
if (document.getElementById('date_specific').checked == true)
{document.getElementById('prior_delivery').checked = false;}
else if (document.getElementById('prior_delivery').checked == true)
{document.getElementById('date_specific').checked = false;}
}
