Let Subject be the field and the values are seperated with semicolumns.The
name of the array is x.
//The value of subject is assigned to temp variable
temp = temp+";"
//initializing the array
var x=new Array();