function move(fbox, tbox) {

	var arrFbox = new Array();
	var arrTbox = new Array();
	var arrLookup = new Array();
	var i;
	
	/////  This for loop gets the length from the destination field  /////
	for (i = 0; i < tbox.options.length; i++) {
	
		arrLookup[tbox.options[i].text] = tbox.options[i].value;
		arrTbox[i] = tbox.options[i].text;		
	}
	
	var fLength = 0;
	var tLength = arrTbox.length;	
	
	/////  This for loop gets the length of the source field  ////////////
	for(i = 0; i < fbox.options.length; i++) {
	
		arrLookup[fbox.options[i].text] = fbox.options[i].value;
		
		/////  If the item is selected and not empty  /////////////////////
		if (fbox.options[i].selected && fbox.options[i].value != "") {
				
			arrTbox[tLength] = fbox.options[i].text;
			tLength++;					
		} 
		else {				
			arrFbox[fLength] = fbox.options[i].text;
			fLength++;					
		}	
	}
	
	/////  This alphabetically sorts the array of the items  /////////////
	//arrFbox.sort();
	//arrTbox.sort();
	fbox.length = 0;
	tbox.length = 0;
	var c;
		
	/////  now transfer the items stored in the arrFbox[] array  /////////
	for(c = 0; c < arrFbox.length; c++) {
		
		var no = new Option();
		no.value = arrLookup[arrFbox[c]];
		no.text = arrFbox[c];
		fbox[c] = no;				
	}
	
	/////  now send all the items to the destination field  //////////////
	for(c = 0; c < arrTbox.length; c++) {
		
		var no = new Option();
		no.value = arrLookup[arrTbox[c]];
		no.text = arrTbox[c];
		tbox[c] = no;								
	}
}


function selectAllOptions1(list2)
{ 
  var selObj1 = document.getElementById(list2);
  for (var i=0; i<selObj1.options.length; i++) {
    selObj1.options[i].selected = true;
	//document.write(selObj1.options[i].value);
  }
}

function addMe() {
	
	theValues = document.frmSignup.list2;
	
	for(i = 0; i < theValues.length; i++) {
		
		//alert(theValues[i].value);
		if (document.frmSignup.theNumbers.value == "") {
			document.frmSignup.theNumbers.value = theValues[i].value;
			
		} 
		else {
			document.frmSignup.theNumbers.value += "," + theValues[i].value;			
		}					
	}
	return true;
}
	
function selectAllOptions2(listM2){ 
  	var selObj2 = document.getElementById(listM2);
  	for (var i=0; i<selObj2.options.length; i++) {
    	selObj2.options[i].selected = true;
		//document.write(selObj2.options[i].value);
  	}
}

function addMe2() {
	
	 theValues2 = document.frmSignup.listM2;	 
	 for(q = 0; q < theValues2.length; q++) {	
			
		//alert(theValues[i].value);
		if (   document.frmSignup.theNumbers2.value == ""   ) {
			document.frmSignup.theNumbers2.value = theValues2[q].value;
		} 
		else {
			document.frmSignup.theNumbers2.value += "," + theValues2[q].value;				
		}			
	}	
	return true;
}
	
	
function selectAllOptions3(listE2){ 
  	var selObj3 = document.getElementById(listE2);
  	for (var i=0; i<selObj3.options.length; i++) {
    	selObj3.options[i].selected = true;
		//document.write(selObj3.options[i].value);
  	}
}

function addMe3() {
	theValues3 = document.frmSignup.listE2;
 
 	for(w = 0; w < theValues3.length; w++) {
		
		//alert(theValues[i].value);
		if (   document.frmSignup.theNumbers3.value == ""   ) {
			document.frmSignup.theNumbers3.value = theValues3[w].value;
		} 
		else {
			document.frmSignup.theNumbers3.value += "," + theValues3[w].value;
			
		}				
	}
	return true;
}
	
function selectAllOptions4(listEA2){ 
  	var selObj4 = document.getElementById(listEA2);
  	for (var i=0; i<selObj4.options.length; i++) {
    	selObj4.options[i].selected = true;
		//document.write(selObj.options[i].value);
  	}
}

function addMe4() {
 	theValues4 = document.frmSignup.listEA2;
 
 	for(w = 0; w < theValues4.length; w++) {

		//alert(theValues[i].value);
		if (   document.frmSignup.theNumbers4.value == ""   ) {
			document.frmSignup.theNumbers4.value = theValues4[w].value;
		}
		else {
			document.frmSignup.theNumbers4.value += "," + theValues4[w].value;			
		}			
	}
	return true;
}
	
function selectAllOptions5(listEP2){ 
  	var selObj5 = document.getElementById(listEP2);
  	for (var i=0; i<selObj5.options.length; i++) {
    	selObj5.options[i].selected = true;
		//document.write(selObj.options[i].value);
  	}
}

function addMe5() {
 	theValues5 = document.frmSignup.listEP2;
 
 	for(w = 0; w < theValues5.length; w++) {		
		//alert(theValues[i].value);
		if (   document.frmSignup.theNumbers5.value == ""   ) {
			document.frmSignup.theNumbers5.value = theValues5[w].value;
		} 
		else {
			document.frmSignup.theNumbers5.value += "," + theValues5[w].value;			
		}			
	}
	return true;
}
	
function selectAllOptions6(listC2){ 
  	var selObj6 = document.getElementById(listC2);
  	for (var i=0; i<selObj6.options.length; i++) {
    	selObj6.options[i].selected = true;
		//document.write(selObj.options[i].value);
  	}
}

function addMe6() {
 	theValues6 = document.frmSignup.listC2;
 
 	for(w = 0; w < theValues6.length; w++) {		
		//alert(theValues[i].value);
		if (   document.frmSignup.theNumbers6.value == ""   ) {
			document.frmSignup.theNumbers6.value = theValues6[w].value;
		} 
		else {
			document.frmSignup.theNumbers6.value += "," + theValues6[w].value;			
		}				
	}
	return true;
}

function selectAllOptions7(listRS2){ 
  	var selObj7 = document.getElementById(listRS2);
  	for (var i=0; i<selObj7.options.length; i++) {
    	selObj7.options[i].selected = true;
		//document.write(selObj.options[i].value);
  	}
}

function addMe7() {
 	theValues7 = document.frmSignup.listRS2;
 
 	for(w = 0; w < theValues7.length; w++) {		
		//alert(theValues[i].value);
		if (   document.frmSignup.theNumbers7.value == ""   ) {
			document.frmSignup.theNumbers7.value = theValues7[w].value;
		} 
		else {
			document.frmSignup.theNumbers7.value += "," + theValues7[w].value;			
		}				
	}
	return true;
}

function selectAllOptionsp1(listMS2){ 
  	var selObjp1 = document.getElementById(listMS2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep() {
	theValues = document.frmSignup.listMS2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp.value == ""   ) {
			document.frmSignup.theNumbersp.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp.value += "," + theValues[i].value;
		}							
	}
	return true;
}

function selectAllOptionsp2(listMB2){ 
  	var selObjp1 = document.getElementById(listMB2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep2() {
	theValues = document.frmSignup.listMB2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp2.value == ""   ) {
			document.frmSignup.theNumbersp2.value = theValues[i].value;
		} 
		else {
			document.frmSignup.theNumbersp2.value += "," + theValues[i].value;
		}			
	}	
	return true;
}

function selectAllOptionsp3(listCM2){ 
  	var selObjp1 = document.getElementById(listCM2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep3() {
	theValues = document.frmSignup.listCM2;	
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp3.value == ""   ) {
			document.frmSignup.theNumbersp3.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp3.value += "," + theValues[i].value;
		}								
	}
	return true;
}

function selectAllOptionsp4(list2){ 
  	var selObjp1 = document.getElementById(list2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep4() {
	theValues = document.frmSignup.list2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp4.value == ""   ) {
			document.frmSignup.theNumbersp4.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp4.value += "," + theValues[i].value;
		}
	}
	return true;
}

function selectAllOptionsp5(listM2){ 
  	var selObjp1 = document.getElementById(listM2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep5() {
	theValues = document.frmSignup.listM2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp5.value == ""   ) {
			document.frmSignup.theNumbersp5.value = theValues[i].value;
		} 
		else {
			document.frmSignup.theNumbersp5.value += "," + theValues[i].value;
		}						
	}
	return true;
}

function selectAllOptionsp6(listFV2){ 
  	var selObjp1 = document.getElementById(listFV2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep6() {
	theValues = document.frmSignup.listFV2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp6.value == ""   ) {
			document.frmSignup.theNumbersp6.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp6.value += "," + theValues[i].value;		
		}						
	}
	return true;
}

function selectAllOptionsp7(listE2){ 
  	var selObjp1 = document.getElementById(listE2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep7() {
	theValues = document.frmSignup.listE2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp7.value == ""   ) {
			document.frmSignup.theNumbersp7.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp7.value += "," + theValues[i].value;
		}
	}
	return true;
}

function selectAllOptionsp8(listEA2){ 
  	var selObjp1 = document.getElementById(listEA2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep8() {
	theValues = document.frmSignup.listEA2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp8.value == ""   ) {
			document.frmSignup.theNumbersp8.value = theValues[i].value;
		} 
		else {
			document.frmSignup.theNumbersp8.value += "," + theValues[i].value;
		}						
	}
	return true;
}

function selectAllOptionsp9(listEP2){ 
  	var selObjp1 = document.getElementById(listEP2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep9() {
 	theValues = document.frmSignup.listEP2;
 	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp9.value == ""   ) {
			document.frmSignup.theNumbersp9.value = theValues[i].value;
		} 
		else {
			document.frmSignup.theNumbersp9.value += "," + theValues[i].value;
		}
	}
	return true;
}

function selectAllOptionsp10(listDT2){ 
  	var selObjp1 = document.getElementById(listDT2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep10() {
	theValues = document.frmSignup.listDT2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp10.value == ""   ) {
			document.frmSignup.theNumbersp10.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp10.value += "," + theValues[i].value;
		}				
	}
	return true;	
}
	
function selectAllOptionsp11(listSM2){ 
  	var selObjp1 = document.getElementById(listSM2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep11() {
	theValues = document.frmSignup.listSM2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp11.value == ""   ) {
			document.frmSignup.theNumbersp11.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp11.value += "," + theValues[i].value;
		}
	}
	return true;
}

function selectAllOptionsp12(listDK2){ 
  	var selObjp1 = document.getElementById(listDK2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep12() {
	theValues = document.frmSignup.listDK2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp12.value == ""   ) {
		document.frmSignup.theNumbersp12.value = theValues[i].value;
		} 
		else {
			document.frmSignup.theNumbersp12.value += "," + theValues[i].value;
		}
	}
	return true;
}

function selectAllOptionsp13(listC2){ 
  	var selObjp1 = document.getElementById(listC2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep13() {
	theValues = document.frmSignup.listC2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp13.value == ""   ) {
			document.frmSignup.theNumbersp13.value = theValues[i].value;
		}
		else {
			document.frmSignup.theNumbersp13.value += "," + theValues[i].value;
		}
	}
	return true;
}

function selectAllOptionsp14(listRS2){ 
  	var selObjp1 = document.getElementById(listRS2);
  	for (var i=0; i<selObjp1.options.length; i++) {
    	selObjp1.options[i].selected = true;
  	}
}
function addMep14() {
	theValues = document.frmSignup.listRS2;
	for(i = 0; i < theValues.length; i++) {
		if (   document.frmSignup.theNumbersp14.value == ""   ) {
			document.frmSignup.theNumbersp14.value = theValues[i].value;
		} 
		else {
			document.frmSignup.theNumbersp14.value += "," + theValues[i].value;
		}
	}
	return true;
}
	function srcAddMe() {
		 theValues = document.frmiadvsearch.srchreligion;
		 for(i = 0; i < theValues.length; i++) {
				if (   document.frmiadvsearch.SrcNumbers.value == ""   ) {
					document.frmiadvsearch.SrcNumbers.value = theValues[i].value;
				} else {
					document.frmiadvsearch.SrcNumbers.value += "," + theValues[i].value;
					
				}
								
		}
			return true;
	}
	function srcAddMe2() {
		 theValues = document.frmiadvsearch.srchmtongue;
		 for(i = 0; i < theValues.length; i++) {
				if (   document.frmiadvsearch.SrcNumbers2.value == ""   ) {
					document.frmiadvsearch.SrcNumbers2.value = theValues[i].value;
				} else {
					document.frmiadvsearch.SrcNumbers2.value += "," + theValues[i].value;
					
				}
				
		}
		
			return true;
	
	} 
	function srcAddMe3() {
		 theValues = document.frmiadvsearch.srchdegree;
		 for(i = 0; i < theValues.length; i++) {
				if (   document.frmiadvsearch.SrcNumbers3.value == ""   ) {
					document.frmiadvsearch.SrcNumbers3.value = theValues[i].value;
				} else {
					document.frmiadvsearch.SrcNumbers3.value += "," + theValues[i].value;
					
				}
				
		}
		
			return true;
	
	}     
	function srcAddMe4() {
		 theValues = document.frmiadvsearch.srcharea;
		 for(i = 0; i < theValues.length; i++) {
				if (   document.frmiadvsearch.SrcNumbers4.value == ""   ) {
					document.frmiadvsearch.SrcNumbers4.value = theValues[i].value;
				} else {
					document.frmiadvsearch.SrcNumbers4.value += "," + theValues[i].value;
					
				}
								
		}
			return true;
	} 
     function srcAddMe5() {
		 theValues = document.frmiadvsearch.srchprofession;
		 for(i = 0; i < theValues.length; i++) {
				if (   document.frmiadvsearch.SrcNumbers5.value == ""   ) {
					document.frmiadvsearch.SrcNumbers5.value = theValues[i].value;
				} else {
					document.frmiadvsearch.SrcNumbers5.value += "," + theValues[i].value;
					
				}
				
		}
			return true;
	
	} 
	function srcAddMe6() {
		 theValues = document.frmiadvsearch.srchlookcountry;
		 for(i = 0; i < theValues.length; i++) {
				if (   document.frmiadvsearch.SrcNumbers6.value == ""   ) {
					document.frmiadvsearch.SrcNumbers6.value = theValues[i].value;
				} else {
					document.frmiadvsearch.SrcNumbers6.value += "," + theValues[i].value;
					
				}
								
		}
			return true;
	} 
