function openSubForm(Form, Action, Target, aryFieldValuePairs, Height, Width)
{
	x = ((window.screen.availWidth/2) - (parseInt(Width)/2))
	y = ((window.screen.availHeight/2) - (parseInt(Height)/2))
	if(x < 0){x="0"}
	if(y < 0){y="0";Height = window.screen.availHeight}
	
	document.forms[Form].action = Action;
	//Target = window.showModelessDialog('','','');
	xWin = window.open("", Target, "location=no,scrollbars=yes");
	xWin.resizeTo(Width, Height)
	xWin.moveTo(x,y)
	document.forms[Form].target = Target;
	
	for(i=0; i < aryFieldValuePairs.length; i++)
	{
		document.forms[Form][aryFieldValuePairs[i][0]].value = aryFieldValuePairs[i][1];
	}	
	document.forms[Form].submit();
}
