<!--
var illus_id='';
var styleId='';

function getAvailableSubject(illustrator) {
	illus_id=illustrator;
	var gURL = 'ajaxDropSubject.php?illus_id='+illus_id;
	//create the Cross-browser XMLHttpRequest object
	if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc 
		xmlhttp=new XMLHttpRequest();
		if (xmlhttp.overrideMimeType) {
			xmlhttp.overrideMimeType('text/xml');
		}	
		xmlhttp.onreadystatechange=loadSubject;
		xmlhttp.open("GET", gURL, true);
		xmlhttp.send(null);
	} else if (window.ActiveXObject) { //IE 
		xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
		if (xmlhttp) {
			xmlhttp.onreadystatechange=loadSubject;
			xmlhttp.open('GET', gURL, false);
			xmlhttp.send();
		}
	}
	// order is not ready if we just changed item style
	document.getElementById('buttons').style.display='none';
	if (styleId != '') {
		// we could have changed the shoe style after selecting a size - reset the colors
		getAvailableStyle('');
	}
}

// function to handle asynchronus call
function loadSubject() {
	if (xmlhttp.readyState==4) { 
		if (xmlhttp.status==200) { 
			document.getElementById('subject').innerHTML=xmlhttp.responseText;
			if (xmlhttp.responseText.indexOf('disabled')<=0) {
				document.getElementById('subject').focus();
			}	
		}
	}
}

function getAvailableStyle(pSize) {
	styleId=pSize;
	if (pSize=='') {
		var gURL = 'ajaxDropStyle.php?illus_id=""';
	}else{
		var gURL = 'ajaxDropStyle.php?illus_id='+illus_id+'&onderwerp_id='+styleId;
	}	
	//create the Cross-browser XMLHttpRequest object
	if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc 
		xmlhttp=new XMLHttpRequest();
		if (xmlhttp.overrideMimeType) {
			xmlhttp.overrideMimeType('text/xml');
		}	
		xmlhttp.onreadystatechange=loadStyle;
		xmlhttp.open("GET", gURL, true);
		xmlhttp.send(null);
	} else if (window.ActiveXObject) { //IE 
		xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
		if (xmlhttp) {
			xmlhttp.onreadystatechange=loadStyle;
			xmlhttp.open('GET', gURL, false);
			xmlhttp.send();
		}
	}
}

// function to handle asynchronus call
function loadStyle() {
	if (xmlhttp.readyState==4) { 
		if (xmlhttp.status==200) { 
			document.getElementById('style').innerHTML=xmlhttp.responseText;
			if (xmlhttp.responseText.indexOf('disabled')<=0) {
				document.getElementById('style').focus();
			}
		}
	}
}


//-->