function explodeArray(item,delimiter, ct) {
  tempArray=new Array(1);
  var Count=0;
  var tempString=new String(item);

  while (tempString.indexOf(delimiter)>0) {
    tempArray[Count]=tempString.substr(0,tempString.indexOf(delimiter));
    tempString=tempString.substr(tempString.indexOf(delimiter)+1,tempString.length-tempString.indexOf(delimiter)+1); 
    Count=Count+1
  }

  tempArray[Count]=tempString;
  var bit=tempArray.length;


var col=0;
document.bollo.selectman.options.length=1;

while(col<bit){

var strthis=tempArray[col];
var strarr=strthis.split(',');
var thisone=strarr[0];
var thistwo=strarr[1];
var thisthree=strarr[2];

var gostr="gateway.php?cat="+thisone;
col++;
var optionObj = new Option(thistwo, gostr);
document.bollo.selectman.options[thisthree] = optionObj;

if (thisone==ct) {
var done=1;
//document.bollo.selectman.options[thisthree].selected = true;
}

}

//document.bollo.selectman.options[thisone].selected = true;


var opt = new Option('Select Event Type', 'pp');
document.bollo.selectman.options[0] = opt;

if (done!=1)
{
document.bollo.selectman.options[0].selected = true;
}
}



function getTo(it, red, day, month, year){

if (it=='tt') 
{
alert("Please select a Product Type first and then a Product Brand.");
}
else if (it=='pp') 
{
alert("Please select an Event Type or click All.");
}
else
{
it=it+"&redd="+red+"&day="+day+"&month="+month+"&year="+year;
location.href=(it);
}
}

function jump1(page){aPopUp=window.open(page,'TradeonlyHelp','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=470,height=300')} 



function jump2(page){aPopUp2=window.open('perspop.php?id='+page,'Contact','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=240,height=320')} 