﻿function TargetChoose(Name, ID) 
{
    var tt = getElementById_s('ctl00$ContentPlaceHolder1$txtTarget');
    tt.value = Name;    
    var htID = getElementById_s('ctl00$ContentPlaceHolder1$HiddenTargetID');    
    htID.value = ID;
    window.parent.hidePopWin(true);
}

// getElementById - Special to handle quirky browsers  
function getElementById_s(id){  
     var obj = null;  
     if(window.parent.document.getElementById){  
          obj = window.parent.document.getElementById(id);  
     }
     if(obj == null){  
          obj = window.parent.document.all[id];  
     }  
     return obj;  
}