
function launchWin(w,h,srcURL,sizable, obj, scrollbar)
{
	if (scrollbar=="") scrollbar=0;
	lPos = (screen.width) ? (screen.width-w)/2 : 0; tPos = (screen.height) ? (screen.height-h)/2 : 0;
	aWin = window.open(srcURL, "", "height="+h+", width="+w+", left="+lPos+", top="+tPos+", toolbar=0, location=0,directories=0,status=0,menuBar=0,scrollBars="+scrollbar+",resizable="+sizable);
	//aWin.opener=obj;				
	aWin.focus();
	aWin.owner=document.location.href;
	//processBarred(aPos);
}

function cacheEnter(buttonid)
{
	if(window.event.keyCode == 13)
	{
		document.getElementById(buttonid).focus();
		document.getElementById(buttonid).click();
		return false;
	}
	else
	{
		return false;
	}	
}

function GetConfirm(objSender,MessageText)
{
	if(window.confirm(MessageText))
		objSender.click();
	return false;
}
