function ConfirmAndRedirect(message,locale)
{	var answer = confirm(message)
	if (answer) 
	{	window.location=locale	}
}

function NewWindow(mypage, myname, w, h, scroll)
{	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function WSNewWindow(mypage, myname, w, h, scroll, resizable, status, toolbar, menubar, location)
{	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+',status='+status+',toolbar='+toolbar+',menubar='+menubar+',location='+location
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function calendarPop(target)
{	window.open("datePicker.asp?ourTarget="+ target +"&initialDate="+ eval(target).value, "CalPop", 'toolbar=0,width=250,height=192');	}

function deleteMe(locale)
{	var answer = confirm("Delete?")

	if (answer) 
	{	NewWindow(locale,'Edit','500','500','no')	}
}

function calendarPop(target)
{	window.open("datePicker.asp?ourTarget="+ target +"&initialDate="+ eval(target).value, "CalPop", 'toolbar=0,width=250,height=192');	}

