var bSecureSubmitted = false;
function OnSecureSubmit() 
{	
	if (bSecureSubmitted)		
		return false;
	bSecureSubmitted = true;
	return true;
}
function SecureSubmit(theForm, act) 
{	
	if (OnSecureSubmit())		
	{
		if (act != null)
			theForm.ReqAction.value = act;	
		theForm.submit();
	}
}

function Sts() 
{	
	window.status = '';
	return true;
}

function DocView(strUrl, sDoc) 
{	
	OpenView(strUrl, sDoc, 'top=100px, left=100px, width=800px, height=200px');
}

function DocViewMax(strUrl, sDoc) 
{	
	OpenView(strUrl, sDoc, 'top=0,left=0,height=' + (window.screen.availHeight - 48) + ',width=' + (window.screen.availWidth - 12));
}

function OpenView(strUrl, sDoc, strFeatures) 
{	
	var strData = window.open(strUrl, sDoc, 'center=yes, resizable, scrollbars=yes, status=yes, ' + strFeatures, false);
	if (strData != null && strData != '') 
	{
		if (strData.opener==null) { strData.opener=self; }
		strData.self.focus();
	}
}


