var iFoundIndex;
var sFoundTextSubject;
var sFoundTextDivision;
function fChangeSubjectList(){
	
	//ContactForm_msgDivision  water
	var ContactForm_msgDivision = getById("division");
	//ContactForm_msgSubject	customer
	var ContactForm_msgSubject = getById("subject");
	var oForm = getById("contactForm");
    var bFound = false;
    for(i=0;i<ContactForm_msgSubject.options.length;i++){
        if(ContactForm_msgSubject.options[i].value=='customer'){
			
            bFound = true;
            iFoundIndex = i;
            sFoundTextSubject = ContactForm_msgSubject.options[i].text;
			
        }
    }
	
    if(ContactForm_msgDivision.options[ContactForm_msgDivision.options.selectedIndex].value=='water'){
        if(bFound){
            ContactForm_msgSubject.options[iFoundIndex]=null;            
        }
    }
    else{
        if(!bFound){
            var dmc = document.createElement("option"); 
            dmc.text = sFoundTextSubject ; 
            dmc.value = 'customer'; 
            if(!document.all){ 
                before= ContactForm_msgSubject.options[iFoundIndex]; 
            }
            else{ 
                before=iFoundIndex; 
            } 
            ContactForm_msgSubject.add(dmc,before);
        }
    }    
}
function fChangeDivisionList(){
	//ContactForm_msgDivision  water
	var ContactForm_msgDivision = getById("division");
	//ContactForm_msgSubject	customer
	var ContactForm_msgSubject = getById("subject");
	var oForm = getById("contactForm");
    var bFound = false;
    for(i=0;i<ContactForm_msgDivision.options.length;i++){
        if(ContactForm_msgDivision.options[i].value=='water'){
            bFound = true;
            iFoundIndex = i;
            sFoundTextDivision = ContactForm_msgDivision.options[i].text;
        }
    }
    if(ContactForm_msgSubject.options[ContactForm_msgSubject.options.selectedIndex].value=='customer'){
        if(bFound){
            ContactForm_msgDivision.options[iFoundIndex]=null;            
        }
    }
    else{
        if(!bFound){
            var dmc = document.createElement("option"); 
            dmc.text = sFoundTextDivision ; 
            dmc.value = 'water'; 
            if(!document.all){ 
                before= ContactForm_msgDivision.options[iFoundIndex]; 
            }
            else{ 
                before=iFoundIndex; 
            } 
            ContactForm_msgDivision.add(dmc,before);
        }
    }  

}