/*
$HeadURL: svn+secure://svn.comminternet.com/main/websites/captainparkers.com/trunk/web/common/framework/javascript/Form.js $
$LastChangedRevision: 5229 $
$LastChangedDate: 2008-01-04 17:23:01 -0500 (Fri, 04 Jan 2008) $
*/

function __CX_Form_SetPageAction(pForm, pPageAction, pFieldIndex)
{
    pForm.__CX_Form_pageAction.value = pPageAction;

    if (window.document.documentElement && window.document.documentElement.scrollTop)
	pForm.__CX_Form_scrollTop.value = window.document.documentElement.scrollTop;
    else if (window.document.body)
	pForm.__CX_Form_scrollTop.value = window.document.body.scrollTop;

    if (typeof(pFieldIndex) != "undefined")
	pForm.__CX_Form_fieldIndex.value = pFieldIndex;
}

function __CX_Form_ScrollTo(pLocation)
{
    if (window.document.documentElement && typeof(window.document.documentElement.scrollTop) != "undefined")
	window.document.documentElement.scrollTop = pLocation;
    else if (window.document.body)
	window.document.body.scrollTop = pLocation;
}
