
function makeSelection()
{
	var oTopWinOpener = top.window.opener;
	
	try{
		var iParams = makeSelection.arguments.length;		
		switch(iParams){
			case 2:				
				if(makeSelection.arguments[1] == ''){
					oTopWinOpener.SelectOption(makeSelection.arguments[0],'');
				}else{						
					oTopWinOpener.SelectOption(makeSelection.arguments[1],makeSelection.arguments[0]);
				}
				break;
			case 4:
				var oform = oTopWinOpener.document.forms[makeSelection.arguments[2]];
												
				if(makeSelection.arguments[1] == ''){
					oTopWinOpener.SelectOption(makeSelection.arguments[0],'',oform, makeSelection.arguments[3]);
				}else{					
					oTopWinOpener.SelectOption(makeSelection.arguments[1],makeSelection.arguments[0],oform, makeSelection.arguments[3]);
				}
				break;
			default:
				//Do nothing
				break;
		}
		top.window.close();
	}catch(ex){		
		//alert(ex.description);
		top.window.close();		
	}
}
