function googleMapLoad()
 {	
	 if (GBrowserIsCompatible()) 
	 	{
    	var map = new GMap2(document.getElementById("map"));
    	map.addControl(new GLargeMapControl());   	
    	map.setCenter(new GLatLng('50.84844002182927','15.645217895507812'), 14);
    	    	
    	//var marker = new GMarker(map.getCenter());
    	//GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(infoTxt); });    	
    	//map.addOverlay(marker);    	
		}
 }


function validateOgloszenieForm(thisform)
{
	with (thisform)
	{
	if (emptyvalidation(frmImie,'(*) - Wypełnij wymagane pola...')==false) {frmImie.focus(); return false;};
	if (emptyvalidation(frmEmail,'(*) - Wypełnij wymagane pola...')==false) {frmEmail.focus(); return false;};
	if (emailvalidation(frmEmail,'Błędny format adresu e-mail')==false) {frmEmail.focus(); return false;};
	if (emptyvalidation(frmTytul,'(*) - Wypełnij wymagane pola...')==false) {frmTytul.focus(); return false;};
	}
}


function validateKomentarzForm(thisform)
{
	with (thisform)
	{
	if (emptyvalidation(frmImie,'(*) - Wypełnij wymagane pola...')==false) {frmImie.focus(); return false;};
	if (emptyvalidation(frmEmail,'(*) - Wypełnij wymagane pola...')==false) {frmEmail.focus(); return false;};
	if (emailvalidation(frmEmail,'Błędny format adresu e-mail')==false) {frmEmail.focus(); return false;};
	if (emptyvalidation(frmTytul,'(*) - Wypełnij wymagane pola...')==false) {frmTytul.focus(); return false;};
	}
}


function validateConfigNetForm(thisform)
{
	with (thisform)
	{
	if (emptyvalidation(nazwa,'Nazwa jest polem wymaganym')==false) {nazwa.focus(); return false;};
	}
}



function validateLoginForm(thisform)
{
	with (thisform)
	{
	if (emptyvalidation(login,'(*) - Wypełnij wymagane pola...')==false) {login.focus(); return false;};
	if (emptyvalidation(pass,'(*) - Wypełnij wymagane pola...')==false) {pass.focus(); return false;};
	}
}


function validateMACForm(thisform)
{
	with (thisform)
	{
	if (emptyvalidation(nazwaMAC,'(*) - Wypełnij wymagane pola...')==false) {nazwaMAC.focus(); return false;};
	}
}

function validateMojeKontoForm(thisform)
{
	with (thisform)
	{
	if (emptyvalidation(NAZWISKO,'(*) - Wypełnij wymagane pola...')==false) {NAZWISKO.focus(); return false;};
	if (emptyvalidation(IMIE,'(*) - Wypełnij wymagane pola...')==false) {IMIE.focus(); return false;};
	if (emptyvalidation(KOD,'(*) - Wypełnij wymagane pola...')==false) {KOD.focus(); return false;};
	if (emptyvalidation(MIASTO,'(*) - Wypełnij wymagane pola...')==false) {MIASTO.focus(); return false;};
	if (emptyvalidation(ULICA,'(*) - Wypełnij wymagane pola...')==false) {ULICA.focus(); return false;};
	if (emptyvalidation(DOM,'(*) - Wypełnij wymagane pola...')==false) {DOM.focus(); return false;};
	return true;
	}
}


function showHideBox(boxId)
	{		
		if ($(boxId).style.display=='none')
			{
				
				Effect.BlindDown($(boxId));
			}
			else
			{
				
				Effect.BlindUp($(boxId));
			}
	}


var menuItems = new Array();
var taryfyItems = new Array();
var komputeryItems = new Array();

function rollOver(divObject,newClass)	
{
	if (divObject.select!='true') divObject.className=newClass;		
}

function selectItem(div,newClass)
{	
	for (var index = 0; index < menuItems.length; ++index)
		{
			var item = menuItems[index];			
			item.className=newClass;
			item.select='false';
		}
	
	var pos = menuItems.indexOf(div);
	if (pos<0) menuItems.push(div);
	div.className=newClass+'Over';
	div.select='true';
}

function selectTaryfyItem(div,newClass)
{	
	for (var index = 0; index < taryfyItems.length; ++index)
		{
			var item = taryfyItems[index];			
			item.className=newClass;
			item.select='false';
		}
	
	var pos = taryfyItems.indexOf(div);
	if (pos<0) taryfyItems.push(div);
	div.className=newClass+'Over';
	div.select='true';
}

function selectKomputeryItem(div,newClass)
{	
	for (var index = 0; index < komputeryItems.length; ++index)
		{
			var item = komputeryItems[index];			
			item.className=newClass;
			item.select='false';
		}
	
	var pos = komputeryItems.indexOf(div);
	if (pos<0) komputeryItems.push(div);
	div.className=newClass+'Over';
	div.select='true';
}
