function OnChangeSelectField(obj) {
 location.href=obj.options[obj.selectedIndex].value;
}

function DoConfirm(location1)	 {
	if (confirm('Biztos hogy törölni akarja?')) location.href=location1;
}

function openGallery(id,baseName) {
	if(!this.pAW || this.pAW.closed) {
		 this.pAW = open("http://www.napilapcsoport.hu/_galleries/gallery.php?id="+id+'&baseName='+baseName,'',"width=650,height=630,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
	} else { 
		 this.pAW.focus();
	}
}

function popup(url,w,h) {
	var url,w,h;
	if(!this.pw || this.pw.closed) {
		 this.pw = open(url,'',"width="+w+",height="+h+",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no");
	} else { 
		 this.pw.focus();
	}
}

function bigBannerHandler() {
	var windowWidth;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
	}

	if (windowWidth>950) {
		var el = document.getElementById('rightBigBanner');
		el.style.display = 'block';
	}
}



function ptvChange(obj) {
	location.href=obj.options[obj.selectedIndex].value;
}


function lencheck() {
var text;
	var len;
	var maxsize;
	maxsize = 301;
	text = document.forms.adForm.description.value;
	len = document.forms.adForm.description.value.length;
	if (len >= maxsize) {
		text = text.substring(0, maxsize-1);
		document.forms.adForm.description.value = text;
		len = maxsize;
	}
	document.forms.adForm.len.value = 300-document.forms.adForm.description.value.length;
}



function openInfoWindow(id) {

	//document.getElementById('infoWindow').style.display = 'block';
	$('#infoWindow').fadeIn('fast',function() {
		$('#wLoader').fadeIn('fast',function() {
			$('#infoWindowContent').load('infoWindowContent.php?id='+id,function() {
				$('#wLoader').fadeOut();
			});
		});
	});



}
function closeWindow() {

	//document.getElementById('infoWindow').style.display = 'none';
	$('#infoWindow').fadeOut();

}



function interjukerdes() {
	popup("kerdes.php",310,184);
}


function kerdoiv() {
	window.open("http://www.napilapcsoport.hu/kerdoivek/main/kerdoiv.php?key=d3d9446802a44259755d38e6d163e820","kkk","width=770,height=680,scrollbars=yes");
}
