var site_url = 'http://www.michaeljames.co.za/';
function getCat(sc,ud) {
	$(ud).innerHTML="loading...";
	url = $(sc).options[$(sc).selectedIndex].value;
	url = site_url+'index2.php?option=com_salegetcats&amp;no_html=1&amp;id='+url;
	var d = new Ajax(url, {	method: 'get', update: $(ud) }).request();
}
function getOpt(sc,ud) {
	$(ud).innerHTML="loading...";
	$('man_select').innerHTML = "<div style='float:left;width:155px;'>&nbsp;</div>";
	$('mod_select').innerHTML = "<div style='float:left;width:155px;'>&nbsp;</div>";
	url = $(sc).options[$(sc).selectedIndex].value;
	url = site_url+'index2.php?option=com_salegetopt&amp;id='+url;
	new Ajax(url, {	method: 'get', update: $(ud) }).request();
}
function getOptS(sc,ud) {
	$(ud).innerHTML="loading...";
	$('mod_select').innerHTML = "<div style='float:left;width:155px;'>&nbsp;</div>";
	url = $(sc).options[$(sc).selectedIndex].value;
	url = site_url+'index2.php?option=com_salegetopt&amp;sec='+url;
	new Ajax(url, {	method: 'get', update: $(ud) }).request();
}
function getMod(sc,ud) {
	$(ud).innerHTML="loading...";
	url = $(sc).options[$(sc).selectedIndex].value;
	url = site_url+'index2.php?option=com_salegetmod&amp;id='+url;
	new Ajax(url, {	method: 'get', update: $(ud) }).request();
}
function getMan(sc,ud) {
	$(ud).innerHTML="loading...";
	$('mod_select').innerHTML = "";
	url = $(sc).options[$(sc).selectedIndex].value;
	sec = $('sectionList').options[$('sectionList').selectedIndex].value;
	url = site_url+'index2.php?option=com_salegetman&amp;id='+url+'&amp;sec='+sec;
	new Ajax(url, {	method: 'get', update: $(ud) }).request();
}
function getCities(sc,ud) {
	$(ud).innerHTML="loading...";
	url = $(sc).options[$(sc).selectedIndex].value;
	url = site_url+'index2.php?option=com_salegetcities&amp;id='+url;
	new Ajax(url, {	method: 'get', update: $(ud) }).request();
}
