function SetNameLocation(Name,Row,Column)
{document.LANSA._NAME.value=Name;document.LANSA._ROW.value=Row;document.LANSA._COLUMN.value=Column;document.LANSA._CALFLD.value=Name;return;}
function SetSelect(HTMLName, Name,Row,Column,Select)
{document.LANSA._SELECT.value=Select;SetNameLocation(Name,Row,Column);document.LANSA._CALFLD.value=HTMLName;return;}
function HandleSubmit()
{document.LANSA.submit();}

function HandleEvent(Proc,Func){document.LANSA._PROCESS.value=Proc;document.LANSA._FUNCTION.value=Func;HandleSubmit();}
function he(p,r){HandleEvent(p,r);}
function ha(f){he('SCMAINT',f);}
function hm(f){he('SCHOME',f);}
function GotoLeague(ID){sfv('SLEAGUE',ID);hm('SCHM110');}
function GotoGame(ID){sfv('SGAME',ID);hm('SCHM121');}
function GotoGroupEmail(ET,SR,EI,BP,BF,FD){sfv('AEMLTYPE',ET);sfv('ASTDRENTRY',SR);sfv('SEMLID',EI);sfv('ABACKPROC',BP);sfv('ABACKFUNC',BF);sfv('LFUNCDESC',FD);ha('SCMN190');}
function GotoHome(){hm('SCHM010');}
function GotoLocation(ID){sfv('SLOCATION',ID);hm('SCHM140');}
function GotoSport(ID){sfv('ASPORT',ID);hm('SCHM020');}
function GotoSearchResults(ID){sfv('SSRCHPAGE',ID);Recall();}//goto results page from search function.
function GotoSearch(){sfv('ASTDRENTRY','');sfv('SSRCHPAGE',0);sfv('LSRCHSPRT','ALL');sfv('LSRCHTXT','');sfv('LSRCHSTATE','');sfv('LSRCHCNTRY','');hm('SCHM030');}//Clear fields before new search.
function GotoTeam(ID){sfv('STEAM',ID);hm('SCHM210');}
function GotoInfo(ID){if (ID != ''){sfv('AINFOTYPE',ID);hm('SCHM025');};}
function Rentry(val){sfv('ASTDRENTRY',val);}
function upload(Entity, ID_Field){document.LANSA._CALFLD.value=ID_Field;var ref ='/nd/upload.mac/main?entity='+Entity+'&league='+gfv('SLEAGUE')+'&season='+gfv('SSEASON')+'&team='+gfv('STEAM')+'&game='+gfv('SGAME')+'&person='+gfv('SPERSON')+'&add_person='+gfv('SWWWPERSON')+'&sessionid='+gfv('SESSID');var opt = "scrollbars=yes,resizable=yes,status=yes,height=350,width=520,screenY=50,screenX=50"; var win = window.open(ref,"_blank", opt);}
function SetUploadValue(TheValue){sfv(document.LANSA._CALFLD.value, TheValue);document.LANSA.ASTDRENTRY.value='U'; Recall();} //"U" is "upload"
function GoPro(){var ref = '/cgi-bin/lansaweb?procfun+scpay+scpy300+' + gfv('APARTITION') +  '+funcparms+LEAGUE(S0090):' + gfv('SLEAGUE') + '+' + 'TEAM(S0090):' + gfv('STEAM');var opt = "scrollbars=yes,resizable=yes,status=yes,height=550,width=750,screenY=50,screenX=50";var win = window.open(ref,"prompt", opt);}
