function initButtons()
{window.parent.document.getElementById('COPY').style.display="none";window.parent.document.getElementById('BACK').style.display="block";window.parent.document.getElementById('SAVE').style.display="none";window.parent.document.getElementById('NEW').style.display="none";window.parent.document.getElementById('DELETE').style.display="none";window.parent.document.getElementById('NEXTROW').style.display="none";window.parent.document.getElementById('PREVROW').style.display="none";window.parent.document.getElementById('RESET').style.display="none";if(isObject(window.parent.document.getElementById('DESIGN')))
window.parent.document.getElementById('DESIGN').style.display="none";window.parent.document.getElementById('PRINT').style.display="none";window.parent.document.getElementById('PREVIEW').style.display="none";if(gScreenFlwoID=="")
window.parent.document.getElementById('FORWARD').style.display="none";else
window.parent.document.getElementById('FORWARD').style.display="block";}
function callerinitbuttons()
{if(isObject(window.parent.document.getElementById('COPY')))
window.parent.document.getElementById('COPY').style.display="none";if(isObject(window.parent.document.getElementById('START')))
window.parent.document.getElementById('START').style.display="none";if(isObject(window.parent.document.getElementById('BSUAED')))
window.parent.document.getElementById('BSUAED').style.display="none";if(isObject(window.parent.document.getElementById('HELP')))
window.parent.document.getElementById('HELP').style.display="none";if(isObject(window.parent.document.getElementById('ABOUT')))
window.parent.document.getElementById('ABOUT').style.display="none";if(isObject(window.parent.document.getElementById('BACK')))
window.parent.document.getElementById('BACK').style.display="none";if(isObject(window.parent.document.getElementById('SAVE')))
window.parent.document.getElementById('SAVE').style.display="none";if(isObject(window.parent.document.getElementById('NEW')))
window.parent.document.getElementById('NEW').style.display="none";if(isObject(window.parent.document.getElementById('DELETE')))
window.parent.document.getElementById('DELETE').style.display="none";if(isObject(window.parent.document.getElementById('NEXTROW')))
window.parent.document.getElementById('NEXTROW').style.display="none";if(isObject(window.parent.document.getElementById('PREVROW')))
window.parent.document.getElementById('PREVROW').style.display="none";if(isObject(window.parent.document.getElementById('RESET')))
window.parent.document.getElementById('RESET').style.display="none";if(isObject(window.parent.document.getElementById('DESIGN')))
window.parent.document.getElementById('DESIGN').style.display="none";if(isObject(window.parent.document.getElementById('PRINT')))
window.parent.document.getElementById('PRINT').style.display="none";if(isObject(window.parent.document.getElementById('FORWARD')))
window.parent.document.getElementById('FORWARD').style.display="none";}
function initPortletButtons()
{var vwin=window.parent;vwin.document.getElementById('BACK').style.display="block";disableEnableToolbarButton(vwin.document.getElementById("NEW"),false);disableEnableToolbarButton(vwin.document.getElementById("DELETE"),true);disableEnableToolbarButton(vwin.document.getElementById("RESET"),true);disableEnableToolbarButton(vwin.document.getElementById("SAVE"),true);disableEnableToolbarButton(vwin.document.getElementById("PRINT"),true);disableEnableToolbarButton(vwin.document.getElementById("PREVIEW"),true);disableEnableToolbarButton(vwin.document.getElementById("NEXTROW"),true);disableEnableToolbarButton(vwin.document.getElementById("PREVROW"),true);disableEnableToolbarButton(vwin.document.getElementById("COPY"),true);disableEnableToolbarButton(vwin.document.getElementById("HELP"),false);if(gScreenFlwoID=="")
window.parent.document.getElementById('FORWARD').style.display="none";else
window.parent.document.getElementById('FORWARD').style.display="block";}
function childFrameHasChanges()
{return fieldValuesHasChanges();}
function checkMessageBar()
{try
{if(isFieldMessagePresent())
return false;vWindow=getBrowserWindow();if(vWindow.gErrorInMessages||gErrorInMessages)
return false;}
catch(e){}
return true;}
function saveTabContents()
{var submitBtn=null;var submitBtns=document.getElementsByName("submit")
if(submitBtns.length==0)
submitBtns=document.getElementsByName("SAVESR");if(submitBtns.length==0)
submitBtns=document.getElementsByName("editbut");if(submitBtns.length==0)
submitBtns=document.getElementsByName("add");if(submitBtns.length==0)
submitBtns=document.getElementsByName("update");if(submitBtns.length>0)
{submitBtn=submitBtns[0]
if(isObject(submitBtn))
submitBtn.fireEvent("onclick");}
return true;}
function checkFieldFocus()
{setFieldFocusOnOut();}
