
function fillClass(){ 
 // this function is used to fill the Class list on load
addOption(document.drop_list.Class, "WEDDING DRESS", "Wedding Dress", "");
addOption(document.drop_list.Class, "BRIDESMAID", "Bridesmaid", "");
addOption(document.drop_list.Class, "FLOWER GIRL", "Flower Girl", "");

}

function SelectDesigner(){
// ON selection of Class this function will work

removeAllOptions(document.drop_list.Designer);
addOption(document.drop_list.Designer, "", "Choose a Designer", "");

document.drop_list.Silhouette.style.visibility = 'hidden';
document.drop_list.Silhouette.style.display = 'none';
document.drop_list.Neckline.style.visibility = 'hidden';
document.drop_list.Neckline.style.display = 'none';

if(document.drop_list.Class.value == 'WEDDING DRESS'){
document.drop_list.Silhouette.style.visibility = 'visible';
document.drop_list.Silhouette.style.display = '';
document.drop_list.Neckline.style.visibility = 'visible';
document.drop_list.Neckline.style.display = '';
addOption(document.drop_list.Designer,"MAGGIE SOTTERO", "MAGGIE SOTTERO");
addOption(document.drop_list.Designer,"PRONOVIAS", "PRONOVIAS");
addOption(document.drop_list.Designer,"ENZOANI BLUE", "ENZOANI BLUE");
addOption(document.drop_list.Designer,"PALOMA BLANCA", "PALOMA BLANCA");
addOption(document.drop_list.Designer,"ESSENCE OF AUSTRALIA", "ESSENCE OF AUSTRALIA");
addOption(document.drop_list.Designer,"SAN PATRICK", "SAN PATRICK");
addOption(document.drop_list.Designer,"WTOO BRIDES", "WATTERS");
addOption(document.drop_list.Designer,"MIKAELLA", "MIKAELLA");
addOption(document.drop_list.Designer,"ALFRED ANGELO", "ALFRED ANGELO");
addOption(document.drop_list.Designer,"ALFRED SUNG", "ALFRED SUNG");
addOption(document.drop_list.Designer,"JAI", "JAI"); 
addOption(document.drop_list.Designer,"ELEGANCE", "ELEGANCE");
addOption(document.drop_list.Designer,"JASMINE", "JASMINE");
}
if(document.drop_list.Class.value == 'BRIDESMAID'){
addOption(document.drop_list.Designer,"JIM HJELM", "JIM HJELM");
addOption(document.drop_list.Designer,"AFTER SIX", "AFTER SIX");
addOption(document.drop_list.Designer,"ALFRED ANGELO", "ALFRED ANGELO");
addOption(document.drop_list.Designer,"ALFRED SUNG", "ALFRED SUNG");
addOption(document.drop_list.Designer,"B2", "B2");
addOption(document.drop_list.Designer,"BELSOIE", "BELSOIE");
addOption(document.drop_list.Designer,"DESSY", "DESSY"); 
addOption(document.drop_list.Designer,"JORDAN", "JORDAN");


}
if(document.drop_list.Class.value == 'FLOWER GIRL'){
addOption(document.drop_list.Designer,"LITTLE MAIDEN", "LITTLE MAIDEN");
addOption(document.drop_list.Designer,"MORI LEE", "MORI LEE");
addOption(document.drop_list.Designer,"US ANGELS", "US ANGELS");

}
if(document.drop_list.Class.value == 'Mother of Bride'){
addOption(document.drop_list.Designer,"AVANTI", "AVANTI");
addOption(document.drop_list.Designer,"CAMERON BLAKE", "CAMERON BLAKE");
addOption(document.drop_list.Designer,"JASMINE", "JASMINE");
addOption(document.drop_list.Designer,"JASMINE BRIDAL", "JASMINE BRIDAL");
addOption(document.drop_list.Designer,"JOSIE", "JOSIE");
addOption(document.drop_list.Designer,"MONTAGE", "MONTAGE");
addOption(document.drop_list.Designer,"PARTY TIME", "PARTY TIME");
addOption(document.drop_list.Designer,"SCALA", "SCALA");
addOption(document.drop_list.Designer,"UNIQUE", "UNIQUE");
addOption(document.drop_list.Designer,"URSULA", "URSULA");

}
}
////////////////// 

function SelectPriceRange(){
// ON selection of Class this function will work

removeAllOptions(document.drop_list.PriceRange);
addOption(document.drop_list.PriceRange, "", "Choose a Price Range", "");

if(document.drop_list.Class.value == 'Wedding Dress'){
addOption(document.drop_list.PriceRange,"Less than $500", "Less than $500");
addOption(document.drop_list.PriceRange,"$501 to $1000", "$501 to $1000");
addOption(document.drop_list.PriceRange,"$1001 to $1500", "$1001 to $1500");
addOption(document.drop_list.PriceRange,"$1501 to $2000", "$1501 to $2000");
addOption(document.drop_list.PriceRange,"Over 2000", "Over 2000");
}

if(document.drop_list.Class.value == 'Bridesmaid'){
addOption(document.drop_list.PriceRange,"Less than $200", "Less than $200");
addOption(document.drop_list.PriceRange,"$201 to $250", "$201 to $250");
addOption(document.drop_list.PriceRange,"$251 to $300", "$251 to $300");
addOption(document.drop_list.PriceRange,"$301 to $350", "$301 to $350");
addOption(document.drop_list.PriceRange,"Over $350", "Over $350");
}

if(document.drop_list.Class.value == 'Mother of Bride'){
addOption(document.drop_list.PriceRange,"Less than $300", "Less than $300");
addOption(document.drop_list.PriceRange,"$301 to $400", "$301 to $400");
addOption(document.drop_list.PriceRange,"$401 to $500", "$401 to $500");
addOption(document.drop_list.PriceRange,"$501 to $600", "$501 to $600");
addOption(document.drop_list.PriceRange,"Over $600", "Over $600");
}

if(document.drop_list.Class.value == 'Flower Girl'){
addOption(document.drop_list.PriceRange,"Less than $100", "Less than $100");
addOption(document.drop_list.PriceRange,"$101 to $150", "$101 to $150");
addOption(document.drop_list.PriceRange,"$151 to $200", "$151 to $200");
addOption(document.drop_list.PriceRange,"$201 to $251", "$201 to $251");
addOption(document.drop_list.PriceRange,"Over $250", "Over $250");
}
}

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}
