<!--

var XmousePosition = 0;
var YmousePosition = 0;
var newWin = false;

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
	// This is only needed for Netscape browsers.
//	function flashGetHref() { return location.href; }
//	function flashPutHref(href) { location.href = href; }
//	function flashGetTitle() { return document.title; }
//	function flashPutTitle(title) { document.title = title; }
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

sprawdzenie_pol = function(val, type)
{
	var mintR = mint.Request();
	
	mintR.OnSuccess = function()
	{
		if(parseInt(this.responseText) == 1)
			alert("Formatu numeru właściwy.");
		else
			alert("Niepoprawny format numeru.");
	}
	
	mintR.Send("adds/check_fields.php?nr="+val+"&type="+type);
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

mousePosition = function(e)
{
	XmousePosition = (document.all)? event.clientX + document.body.scrollLeft : e.pageX ;
	YmousePosition = (document.all)? event.clientY + document.body.scrollTop : e.pageY ;
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

openWindow = function(url, width, height, scrollb, resize)
{
	if(isNaN(parseInt(width)) && isNaN(parseInt(height)))
	{
		width = 700;
		height = 500;
	}

	var is_scrb = (scrollb == 1)? "yes" : "no" ;
	var is_resize = (resize == 1)? "yes" : "no" ;

	var c = "toolbar=no,menubar=no,location=no,personalbar=no,status=no,statusbar=no,directories=no,resizable="+is_resize+",";
	c += "scrollbars="+is_scrb+",width="+width+",height="+height+",left=50,top=50";
	
	newWin = window.open(url,"newWin",c);
	
	newWin.focus();

	return newWin;
}


document.onmousemove = mousePosition;

//-->
