function checkSubAttributes ( aid, divid )
{
	var url = document.location.toString ( );
	var jax = new bajax ( );
	jax.openUrl ( url, 'post', true );
	jax.addVar ( 'action', 'getsubattributes' );
	jax.addVar ( 'current', aid );
	jax.addVar ( 'divid', divid );
	jax.divid = divid;
	jax.onload = function ( )
	{
		var product = this.divid.split ( '_' )[1];
		var res = this.getResponseText ( ).split ( '<!--separator-->' );
		document.getElementById ( this.divid ).innerHTML = res[ 0 ];
		if ( parseFloat ( res[1].split ( ' ' )[1] ) > 0 )
			document.getElementById ( 'Price_' + product ).innerHTML = res[1];
	}
	jax.send ( );
}

