// Note:  If you send a page to a report and still need to navigate
// send the 
function OpenReportWindow(sentform, destpage)
{
	var attr = String();
	var hReportPage;
	var vRet; //dummy value to force synchronous execution on the mac

	//attr = "toolbar, location, directories,status, menubar, scrollbars, resizable, alwaysRaised=yes";
	  attr = "menubar,toolbar, scrollbars, resizable, location";
	
	hReportPage = window.open("","ReportPage", attr);
	sentform.target = "ReportPage";
	if(destpage == "_Check")
	{
		vRet=CheckAndSubmit(sentform);
	}	 
	else 
	{
		if(destpage != "" || destpage != null)
		{
			sentform.action = destpage;
		}
			
		vRet=sentform.submit();
	}	
	return vRet; 
}


// Added 3/29/2005 by DJW for VI 63604
// Mimics the functionality of OpenReportWindow() except
// that it always sets the method of the form to POST and 
// never calls CheckAndSubmit().
function OpenReportWindowViaPost(theForm) {
	
	
	// Set attributes of the window to open
	var windowAttributes = "menubar,toolbar, scrollbars, resizable, location";
	
	// Open the report window
	var reportWindow = window.open("","ReportPage", windowAttributes);
	
	// Make the form post to the new window
	theForm.target	= "ReportPage";
	theForm.method	= "post";
	
	// Submit the form. Get a return value to 
	// force synchronous execution on the mac
	var returnValue = theForm.submit();
	
	return returnValue; 

}