// JavaScript Document
function initArray() {
this.length=initArray.arguments.length
for (var i=0; i < this.length; i++)
this[i+1] = initArray.arguments[i]
}
//var l=new initArray("83:India:0","84:International:0","15:Mumbai:83");
//var l=new initArray("0:Select-Program","1:PhD-Business Mgmt:0","1:PhD-Pharmacology:0","15:PG-Master of Science:83","1:PG-Master of Law:0","1:PG-Business Administration:0","2:UG-Accounting:0","3:UG-Business Information Systems","4:GC-E-Commerce :0","5:GC-Health Services Mgmt:83","7:UG-Hospitality Mgmt:83","15:GC-Human Resource Mgmt:83","15:UG-Operations Mgmt:83","15:PG-Project Mgmt:83","15:UG-Sales & Marketing:83","15:UG-Security Mgmt:83","15:UG-Small Business Mgmt & Entr:83","15:UG-Tech Mgmt:83","15:UG-Biomedical Engineering Technology:83","15:UG-Biomedical Informatics:83","15:UG-Computer Engineering Tech:83","15:UG-Computer Information Systems:83","15:UG-Electronics & Computer Technology:83","15:UG-Electronics Engineering Tech:83","15:UG-Game & Simulation Programming:83","15:UG-Health Information:83","15:UG-Technology Mgmt:83","15:UG-Information Tech:83","15:PG-Network&Communication Mgnt:83","15:GC-Information Security:83","15:GC-Information system Mgnt:83","15:GC-Network&Communication Mgnt:83","15:UG-Business Administration:0","15:GC-Accounting:0","15:UG-Business Information Systems","15:UG-E-Commerce:0","15:UG-Health Services Mgmt:83","15:UG-Hospitality Mgmt:83","15:UG-Human Resource Mgmt:83","15:UG-Operations Mgmt:83","15:UG-Project Mgmt:83","15:UG-Sales & Marketing:83","15:UG-Security Mgmt:83","15:UG-Small Business Mgmt & Entr:83","15:UG-Technical Mgmt:83","15:UG-Biomedical Engineering Tech:83","15:UG-Biomedical Info:83","15:UG-Computer Engineering Tech:83","15:UG-Computer Info Systems:83","15:UG-Electronics & Computer Tech:83","15:UG-Electronics Engineering Tech:83","15:UG-Game & Simulation Programming:83","15:UG-Health Information:83","15:UG-Information Tech:83","15:UG-Network&Communication Mgnt:83","15:UG-NetworkSystem Admin:83","15:UG-Degree of LLB:83","15:UG-Bachelor of Law:83");
var l=new initArray("0:Select-Program",
"1:PhD-Business Mgmt:0",
"1:PhD-Pharmacology:0",
"15:PhD-Doctor Of Business Admnt:83",
"15:PG-Bachelor of Business Admn:83",
"1:PG-Master of Business Administration:0",
"1:PG-Master of Accounting & Financial Mgmt:0",
"15:PG-Human Resource Mgmt:83",
"15:PG-Project Mgmt:83",
"15:PG-Public Administration:83",
"1:PG-Master of Law:0",
"15:PG-Master of Science in Logstcs & Mgmt:83",
"15:PG-Information system Mgnt:83",
"15:PG-Network&Communication Mgnt:83",
"15:GC-Accounting:0",
"15:GC-Business Administration:0",
"15:GC-Education management:0",
"4:GC-E-Commerce :0",
"4:GC-Entreprenuership :0",
"4:GC-Financial Analysis :0",
"5:GC-Health Services Mgmt:83",
"15:GC-Human Resource Mgmt:83",
"15:GC-Project Mgmt:83",
"15:GC-Information Security:83",
"15:GC-Information system Mgnt:83",
"15:GC-Network&Communication Mgnt:83",
"15:GC-Wireless Communications:83",
"15:UG-Business Administration:0",
"2:UG-Accounting:0",
"3:UG-Business Information Systems",
"15:UG-Health Services Mgmt:83",
"7:UG-Hospitality Mgmt:83",
"15:UG-Human Resource Mgmt:83",
"15:UG-Operations Mgmt:83",
"15:UG-Project Mgmt:83",
"15:UG-Sales & Marketing:83",
"15:UG-Security Mgmt:83",
"15:UG-Small Business Mgmt & Entr:83",
"15:UG-Technical Mgmt:83",
"15:UG-Biomedical Engineering Technology:83",
"15:UG-Biomedical Informatics:83",
"15:UG-Computer Engineering Tech:83",
"15:UG-Computer Information Systems:83",
"15:UG-Electronics & Computer Technology:83",
"15:UG-Electronics Engineering Tech:83",
"15:UG-Game & Simulation Programming:83",
"15:UG-Health Information:83",
"15:UG-Information Tech:83",
"15:UG-Network&Communication Mgnt:83",
"15:UG-NetworkSystem Admin:83",
"15:School-Degree of LLB:83",
"15:School-Bachelor of Law:83",
"15:School-Master of Law:83",
"15:School-Education:83",
"15:School-Health and Human Services:83",
"15:School-Management:83",
"15:School-Psyhcology:83",
"15:School-Programs for West Coast School of Mgmt & Appld Sci:83",
"15:School-Programs for School of Public Policy & Admn:83");


function getLocs1(name,id)
	{
var len = l.length;
var j  = 0;
var jj  = name.name;
//var sel = "any";
var p= new Array();
p = id.split(',');
if(jj=='currentloc'){
    var opt = new Option();
    opt.text="- - - Select a Course - - -";
    opt.value="0";
    name.options[j] = opt;
    j++;
}

for(var i=0; i<=len; i++){
    var s  = l[i];
	//alert(s);
    if(s){
        var parts = s.split(':');
        var opt   = new Option();
 // Below Code changed by Aman To Include Any India and Any International in Preferred Locations Also
       if(parts[2]==0 && jj=='loc') {       
         opt.text=""+parts[1];
         opt.value = parts[0];
		 //alert(opt.text);
         }


        if(parts[2]!=0  && jj=='loc' && parts[0]!=17 && parts[0]!=127 && parts[0]!=128 && parts[0]!=129 && parts[0]!=130 && parts[0]!=8 && parts[0]!=112 && parts[0]!=132){
            opt.text=parts[1];
            opt.value = parts[0];
        }
         if(parts[2]!=0 && jj=='currentloc' && parts[0]!=132 && parts[0]!=133 && parts[0]!=134 && parts[0]!=117 && parts[0]!=125) {
          opt.text=parts[1];
           opt.value = parts[0];
         }
          
        var a=opt.text;
        if(a == ''){ }else{name.options[j]=opt; j++; }
        for(var k=0;k<=p.length;k++){
            if(opt.value==p[k] && p[k]!= ''){
                opt.selected=true;
            }
        }
    }
}
}