function selectSubCategory(){
	Element.hide('seladvertiser');
	Element.hide('selsignage');
	Element.hide('selactivity');
	var selinterest = $('selinterest').value;
	//alert($('selinterest').value);
	if(selinterest == 'Provider Of Auxilary Service'){
		$('divindustry').innerHTML = "Your Activity";
		Element.show('selactivity');
	}
	else if(selinterest == 'As an Advertiser'){
		$('divindustry').innerHTML = "Your Industry";
		Element.show('seladvertiser');
		
	}
	else if(selinterest =='Setting up Signage Network'){
		$('divindustry').innerHTML = "Your Industry";
		Element.show('selsignage');
		
	}
	
	Element.show('divindustry');
	Element.show('subcat');
}

function submitForm(){
	if(($('txtemail').value == '') || ($('txtfname').value =='')|| ($('txtlname').value =='')|| ($('txtcompany').value =='')|| ($('selcountry').value =='')){
		alert("Please Fill in all the required Fields");
	}else if($('selinterest').value == '-Select Option-'){
		alert("Please Select An Interest Option");
	}else{
		var name = $('selsalute').value+' '+($('txtfname').value).capitalize() +' '+ ($('txtlname').value).capitalize()
		var comment = $('txtcomments').value;var selinterest = $('selinterest').value;
		if(selinterest =='Provider Of Auxilary Service')
			industry = $('selactivity').value;
		if(selinterest == 'As an Advertiser')
			industry = $('seladvertiser').value;
		if(selinterest =='Setting up Signage Network')
			industry = $('selsignage').value;	
		var url = 'contact.php?flag=1&email='+$('txtemail').value+'&name='+name+'&interest='+selinterest+'&industry='+industry+'&comment='+comment+'&company='+$('txtcompany').value+'&country='+$('selcountry').value;
		myAjax  = new Ajax.Request(url,{method :'get',onComplete :showScopeResponse});	
	}
}

//showScopeResponse 	: Injects the HTML Scripts with criteria
function showScopeResponse(req){
	$('divmessage').innerHTML = req.responseText;
	$(form1).reset();
}//end of method