function showsub(p, c)
{
var url = 'select.php';
var pars = 'action=list2&pid=' + p + '&cid=' + c;
var myAjax = new Ajax.Request(
url,
{
method: 'get',
parameters: pars,
onComplete: showResponse
});
}
function showResponse(originalRequest)
{
//put returned XML in the textarea
$('list2_div').innerHTML = originalRequest.responseText;
$('vars_div').innerHTML = '<table border="0" cellpadding="0" cellspacing="0"><tr><td><select name="select3" size="4" style="height:100px;width:170px;"></select></td><td  width="33" align="center"><img src="images/product/icon.gif" width="11" height="11"/></td><td><select name="select4" size="4" style="height:100px;width:170px;"></select></td></tr></table>';
}

function showvars(o,v1,v2)
{
var url = 'select.php';
var pars = 'action=vars&cid=' + o + '&var1=' + v1 + '&var2=' + v2;
var myAjax = new Ajax.Request(
url,
{
method: 'get',
parameters: pars,
onComplete: showResponse2
});
}
function showResponse2(originalRequest)
{
//put returned XML in the textarea
$('vars_div').innerHTML = originalRequest.responseText;
}
