/*
*this function will submit the form given its name and an optional action
*@author: markg
*@on: 3/20/2008
*/
function submitForm(formname,actionName,target)
{
	if(actionName != null)
		eval("document."+formname+".action = '"+actionName+"';");
	
	if(target != null){
		eval("document."+formname+".target = '"+target+"';");
	}else{
		eval("document."+formname+".target = '';");
	}
	
	eval("document."+formname+".submit();");
	
}

function handleKeyPress(e)
{
	var key=e.keyCode || e.which;
	if (key==13)
	{
		document.getElementById('postBack').value = 1;
		document.forms[0].submit();
	}
}

