function alertValue(){
	//Sets the variable for the main category
	var selId=document.getElementById("category").selectedIndex;
	//Sets the variable for each option from the main category
	var selOpt=document.getElementsByTagName("option")[selId].value;
	//Sets the variable for the subcategory
	var t=document.getElementById("subcategory");
	
	//Creates an Option for the sub category
	var opt0=document.createElement('option');
	var opt1=document.createElement('option');
	var opt2=document.createElement('option');
	var opt3=document.createElement('option');
	var opt4=document.createElement('option');
	var opt5=document.createElement('option');
	
	//Checks the sub category for any previous options and deletes them
	for (i=1;i<=6;i++){
		t.remove(t.options[i]);
    }
	
	//If Statement creates sub options for each option selected in the main category
    if(selOpt == "hardware"){
		opt1.text='Desktop'
		opt2.text='Server'
		opt3.text='Printer'
		opt4.text='Other'
	}else if(selOpt == "software"){
		opt1.text='Website'
		opt2.text='Email'
		opt3.text='Office Application'
		opt4.text='Other'
	}else if(selOpt == "network"){
		opt1.text='Switch'
		opt2.text='Router'
		opt3.text='Wireless'
		opt4.text='Other'
	}else if(selOpt == "security"){
		opt1.text='Antivirus'
		opt2.text='Antispam'
		opt3.text='Firewall'
		opt4.text='Other'
	}else if(selOpt == "profsvc"){
		opt1.text='Design'
		opt2.text='Consulting'
		opt3.text='Training'
		opt4.text='Project Management'
		opt5.text='Other'
	}
	
	//sets default option
	opt0.text='Choose One...'
	opt0.value=""
	
	//Adds the options to the sub category
	try{
		t.add(opt0,null);
		t.add(opt1,null); // standards compliant
		t.add(opt2,null);
		t.add(opt3,null);
		t.add(opt4,null);
		t.add(opt5,null);
	}catch(ex){
		t.add(opt1); // IE only
		t.add(opt2);
		t.add(opt3);
		t.add(opt4);
	}
}