function Confirm( warningMessage )
{
	return confirm(warningMessage);
}

function popupnr(mylink, windowname, refocus)
{
	var mywin, href;
	
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	
	var sizes = ",top=0,left=0,width="+(screen.width-5)+",height="+screen.availHeight;
	mywin = window.open("", windowname, "status = no, toolbar = no, menubar = no, location = no, titlebar = no, resizable = no, titlebar = no, scrollbars = yes, fullscreen = no, directories=no"+sizes);
	
	if (// if the popup isn't already opened
	mywin.closed || 
	(! mywin.document.URL) || 
	(mywin.document.URL.indexOf("about") == 0)
	)
	mywin.location=href;
	else if (href != mywin.document.URL && refocus)//popup is opened but the address is differ.
	{
		mywin.location=href;
		mywin.focus();
	}
	else if (refocus)
	mywin.focus();
}
function popup(path) 
{
 //var popup = window.open(path, 'popuppie', 'width=' + 100 + ', height=' + 100 + ', status=no, toolbar=no, menubar=no, scrollbars=no, screenX=100, screenY=100, top=100, left=100');
 var popup = window.open(path,"","toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=yes,height=400 ,width=400 ,top=100, left=100");
 popup.focus();
}

