var converters=new Array();

converters[0]=new Array();
converters[0]['frombox']='AA';
converters[0]['tobox']=['MP3'];
converters[0]['filename']=['aa-to-mp3-converter.shtml'];
converters[1]=new Array();
converters[1]['frombox']='AAC';
converters[1]['tobox']=['MP3'];
converters[1]['filename']=['acc-to-mp3-converter.shtml'];

converters[2]=new Array();
converters[2]['frombox']='AIF';
converters[2]['tobox']=['MP3'];
converters[2]['filename']=['aif-to-mp3-converter.shtml'];

converters[3]=new Array();
converters[3]['frombox']='AIFF';
converters[3]['tobox']=['MP3'];
converters[3]['filename']=['aiff-to-mp3-converter.shtml'];

converters[4]=new Array();
converters[4]['frombox']='AMOR SWF';
converters[4]['tobox']=['Video'];
converters[4]['filename']=['amor-swf-to-video-converter.shtml'];

converters[5]=new Array();
converters[5]['frombox']='AMR';
converters[5]['tobox']=['MP3'];
converters[5]['filename']=['amr-to-mp3-converter.shtml'];

converters[6]=new Array();
converters[6]['frombox']='Audio';
converters[6]['tobox']=['MIDI'];
converters[6]['filename']=['audio-to-midi-converter.shtml'];

converters[7]=new Array();
converters[7]['frombox']='AVI';
converters[7]['tobox']=['DIVX','DVD','MP4','MPEG4','PSP','WMA'];
converters[7]['filename']=['avi-to-divx-converter.shtml','avi-to-dvd-converter.shtml','avi-to-mp4-converter.shtml','avi-to-mpeg4-converter.shtml','avi-to-psp-converter.shtml','avi-to-wma-converter.shtml'];

converters[8]=new Array();
converters[8]['frombox']='CD';
converters[8]['tobox']=['MP3'];
converters[8]['filename']=['cd-to-mp3-converter.shtml'];

converters[9]=new Array();
converters[9]['frombox']='CDA';
converters[9]['tobox']=['MP3'];
converters[9]['filename']=['cda-to-mp3-converter.shtml'];

converters[10]=new Array();
converters[10]['frombox']='Cucusoft DVD';
converters[10]['tobox']=['Zune'];
converters[10]['filename']=['cucusoft-dvd-to-zune-converter.shtml'];

converters[11]=new Array();
converters[11]['frombox']='Direct MIDI';
converters[11]['tobox']=['MP3'];
converters[11]['filename']=['direct-midi-to-mp3-converter.shtml'];

converters[12]=new Array();
converters[12]['frombox']='DVD';
converters[12]['tobox']=['3GP','CD','MP3','MP4','MPEG4','PSP','PS3','WMV','ZUNE'];
converters[12]['filename']=['dvd-to-3gp-converter.shtml','dvd-to-cd-converter.shtml','dvd-to-mp3-converter.shtml','dvd-to-mp4-converter.shtml','dvd-to-mpeg4-converter.shtml','dvd-to-psp-converter.shtml','dvd-to-ps3-converter.shtml','dvd-to-wmv-converter.shtml','dvd-to-zune-converter.shtml'];

converters[13]=new Array();
converters[13]['frombox']='FLAC';
converters[13]['tobox']=['MP3'];
converters[13]['filename']=['flac-to-mp3-converter.shtml'];

converters[14]=new Array();
converters[14]['frombox']='FLV';
converters[14]['tobox']=['3GP','DVD','MP4','MPEG4','Video','WMV','WMA'];
converters[14]['filename']=['flv-to-3gp-converter.shtml','flv-to-dvd-converter.shtml','flv-to-mp4-converter.shtml','flv-to-mpeg4-converter.shtml','flv-to-video-converter.shtml','flv-to-wmv-converter.shtml','flv-to-wma-converter.shtml'];

converters[15]=new Array();
converters[15]['frombox']='IFO';
converters[15]['tobox']=['AVI'];
converters[15]['filename']=['ifo-to-avi-converter.shtml'];

converters[16]=new Array();
converters[16]['frombox']='MID';
converters[16]['tobox']=['MP3'];
converters[16]['filename']=['mid-to-mp3-converter.shtml'];

converters[17]=new Array();
converters[17]['frombox']='MIDI';
converters[17]['tobox']=['MP3'];
converters[17]['filename']=['midi-to-mp3-converter.shtml'];

converters[18]=new Array();
converters[18]['frombox']='MOV';
converters[18]['tobox']=['DVD'];
converters[18]['filename']=['mov-to-dvd-converter.shtml'];

converters[19]=new Array();
converters[19]['frombox']='MOYEA SWF';
converters[19]['tobox']=['MP3'];
converters[19]['filename']=['moyea-swf-to-mp3-converter.shtml'];

converters[20]=new Array();
converters[20]['frombox']='MP3';
converters[20]['tobox']=['AAC','Audio','CDA','M4A','OGG','QCP','WMA','WMV'];
converters[20]['filename']=['mp3-to-aac-converter.shtml','mp3-to-audio-converter.shtml','mp3-to-cda-converter.shtml','mp3-to-m4a-converter.shtml','mp3-to-ogg-converter.shtml','mp3-to-qcp-converter.shtml','mp3-to-wma-converter.shtml','mp3-to-wmv-converter.shtml'];

converters[21]=new Array();
converters[21]['frombox']='MP4';
converters[21]['tobox']=['AVI','MOV','MP3','WAV','WMA','WMV'];
converters[21]['filename']=['mp4-to-avi-converter.shtml','mp4-to-mov-converter.shtml','mp4-to-mp3-converter.shtml','mp4-to-wav-converter.shtml','mp4-to-wma-converter.shtml','mp4-to-wmv-converter.shtml'];

converters[22]=new Array();
converters[22]['frombox']='MPC';
converters[22]['tobox']=['MP3'];
converters[22]['filename']=['mpc-to-mp3-converter.shtml'];

converters[23]=new Array();
converters[23]['frombox']='MPEG';
converters[23]['tobox']=['AVI','DVD','MP4'];
converters[23]['filename']=['mpeg-to-avi-converter.shtml','mpeg-to-dvd-converter.shtml','mpeg-to-mp4-converter.shtml'];

converters[24]=new Array();
converters[24]['frombox']='MPEG4';
converters[24]['tobox']=['MP3','WMV'];
converters[24]['filename']=['mpeg4-to-mp3-converter.shtml','mpeg4-to-wmv-converter.shtml'];

converters[24]=new Array();
converters[24]['frombox']='MPG';
converters[24]['tobox']=['DVD','MP4'];
converters[24]['filename']=['mpg-to-dvd-converter.shtml','mpg-to-mp4-converter.shtml'];

converters[25]=new Array();
converters[25]['frombox']='Protected WMA';
converters[25]['tobox']=['MP3'];
converters[25]['filename']=['protected-wma-to-mp3-converter.shtml'];

converters[26]=new Array();
converters[26]['frombox']='RAX';
converters[26]['tobox']=['MP3'];
converters[26]['filename']=['rax-to-mp3-converter.shtml'];

converters[27]=new Array();
converters[27]['frombox']='RM';
converters[27]['tobox']=['WMV'];
converters[27]['filename']=['rm-to-wmv-converter.shtml'];

converters[28]=new Array();
converters[28]['frombox']='RMVB';
converters[28]['tobox']=['DVD'];
converters[28]['filename']=['rmvb-to-dvd-converter.shtml'];

converters[29]=new Array();
converters[29]['frombox']='SWF';
converters[29]['tobox']=['MP3','Video'];
converters[29]['filename']=['swf-to-mp3-converter.shtml','swf-to-video-converter.shtml'];

converters[30]=new Array();
converters[30]['frombox']='Tape';
converters[30]['tobox']=['CD'];
converters[30]['filename']=['tape-to-cd-converter.shtml'];

converters[31]=new Array();
converters[31]['frombox']='VCD';
converters[31]['tobox']=['DVD'];
converters[31]['filename']=['vcd-to-dvd-converter.shtml'];

converters[32]=new Array();
converters[32]['frombox']='Video';
converters[32]['tobox']=['DVD','GIF','MP4','Zune'];
converters[32]['filename']=['video-to-dvd-converter.shtml','video-to-gif-converter.shtml','video-to-mp4-converter.shtml','video-to-zune-converter.shtml'];

converters[33]=new Array();
converters[33]['frombox']='VOB';
converters[33]['tobox']=['AVI','MP4','WMV'];
converters[33]['filename']=['vob-to-avi-converter.shtml','vob-to-mp4-converter.shtml','vob-to-wmv-converter.shtml'];

converters[34]=new Array();
converters[34]['frombox']='WAV';
converters[34]['tobox']=['CDA','WMA','MP3'];
converters[34]['filename']=['wav-to-cda-converter.shtml','wav-to-wma-converter.shtml','wav-to-mp3-converter.shtml'];

converters[35]=new Array();
converters[35]['frombox']='WMA';
converters[35]['tobox']=['MP3','WAV'];
converters[35]['filename']=['wma-to-mp3-converter.shtml','wma-to-wav.shtml'];

converters[36]=new Array();
converters[36]['frombox']='WMV';
converters[36]['tobox']=['GIF'];
converters[36]['filename']=['wmv-to-gif-converter.shtml'];

converters[37]=new Array();
converters[37]['frombox']='Xilisoft DivX';
converters[37]['tobox']=['DVD'];
converters[37]['filename']=['xilisoft-divx-to-dvd-converter.shtml'];

converters[38]=new Array();
converters[38]['frombox']='Xilisoft DVD';
converters[38]['tobox']=['MP4'];
converters[38]['filename']=['xilisoft-dvd-to-mp4-converter.shtml'];

converters[39]=new Array();
converters[39]['frombox']='XVID';
converters[39]['tobox']=['DVD'];
converters[39]['filename']=['xvid-to-dvd-converter.shtml'];

converters[40]=new Array();
converters[40]['frombox']='YouTube';
converters[40]['tobox']=['MP3','PSP'];
converters[40]['filename']=['youtube-to-mp3-converter.shtml','youtube-to-psp-converter.shtml'];

window.onload=function() {initBoxes('frombox','tobox');}

function initBoxes(box1,box2) {
var frombox=document.getElementById(box1);
var tobox=document.getElementById(box2);
for (i=0; i<converters.length; i++) {
  var x=document.createElement('option');
  var y=document.createTextNode(converters[i]['frombox']);
  if (window.attachEvent) { // for IE
  x.setAttribute('value',y.nodeValue);
  }
  x.appendChild(y);
  frombox.appendChild(x);
}

frombox.onchange=function() {
  if(this.value!="") {
   var list=document.getElementById(box2);
   while (list.childNodes[0]) {
    list.removeChild(list.childNodes[0])
   }
   fillBox2(tobox,this.value);
   }
  }

fillBox2(tobox,frombox.value);
}
function fillBox2(box2,frombox) {
for (i=0; i<converters.length; i++) {
  if (converters[i]['frombox']==frombox) {
   var tobox=converters[i]['tobox'];
  }
}
for (i=0; i<tobox.length; i++) {
  var x=document.createElement('option');
  var y=document.createTextNode(tobox[i]);
  x.appendChild(y);
  box2.appendChild(x);
  }
}

function fn_submit()
{
	document.frmconverter.action=converters[document.frmconverter.frombox.selectedIndex]['filename'][document.frmconverter.tobox.selectedIndex];
	document.frmconverter.submit();
}
