

function adminCheckMixtapeForm(theform) {

	if (theform.mixtape_title.value == '') {
		alert('Podaj tytuł mixtape\'a.');
		return false;
	}
	if (theform.mixtape_description_pl.value == '') {
		alert('Podaj polski opis mixtape\'a.');
		return false;
	}
	if (theform.mixtape_description_en.value == '') {
		alert('Podaj angielski opis mixtape\'a.')
		return false;
	}
	if (theform.mixtape_tracklist.value == '') {
		alert('Podaj tracklistę.');
		return false;
	}
	if (!theform.mixtape_is_active[0].checked && !theform.mixtape_is_active[1].checked) {
		alert('Podaj status mixtape\'a.');
		return false;
	}
	if (theform.mixtape_filename.value == '--') {
		alert('Wybierz plik MP3 dla tego mixtape\'a.');
		return false;
	}
	return true;

}

function adminCheckProductionForm(theform) {

	if (theform.production_title.value == '') {
		alert('Podaj tytuł produkcji.');
		return false;
	}
	if (theform.production_description_pl.value == '') {
		alert('Podaj polski opis produkcji.');
		return false;
	}
	if (theform.production_description_en.value == '') {
		alert('Podaj angielski opis produkcji.')
		return false;
	}
	if (!theform.production_is_active[0].checked && !theform.production_is_active[1].checked) {
		alert('Podaj status produkcji.');
		return false;
	}
	if (theform.production_preview_filename.value == '--') {
		alert('Wybierz plik MP3 dla tej produkcji.');
		return false;
	}
	return true;

}

function adminCheckScheduleForm(theform) {
	if (theform.gig_date_day.value == '--' || theform.gig_date_month.value == '--' || theform.gig_date_year.value == '--') {
		alert('Podana data jest nieprawidłowa.');
		return false;
	}

	if (theform.gig_city.value == '') {
		alert('Podaj miasto.');
		return false;
	}
	if (!theform.gig_is_active[0].checked && !theform.gig_is_active[1].checked) {
		alert('Podaj status wpisu.');
		return false;
	}
	return true;


}

function adminCheckPhotoAlbumForm(theform) {
	if (theform.album_title_pl.value == '') {
		alert('Podaj polski tytuł albumu.')
		return (false);
	}
	if (theform.album_title_en.value == '') {
		alert('Podaj angielski tytuł albumu.');
		return (false);
	}
	if (theform.album_description_pl.value == '') {
		alert('Podaj polski opis albumu.');
		return (false);
	}
	if (theform.album_description_en.value == '') {
		alert('Podaj angielski opis albumu.');
		return (false);
	}
	if (!theform.album_is_active[0].checked && !theform.album_is_active[1].checked) {
		alert('Podaj status albumu.');
		return (false);
	}
}

function adminCheckBatchUploadForm(theform) {
	if (theform.photo_album_fingerprint.value == '--') {
		alert('Wybierz album.');
		return (false);
	}
}
function adminCheckSinglePhotoForm(theform) {
	if (theform.photo_to_upload.value == '') {
		alert('Wybierz plik do załadowania.');
		return false;
	}
}
function adminMovePhotosForm(theform) {
	if (theform.new_album_fingerprint.value == '--') {
		alert('Wybierz album z rozwijanej listy.');
		return false;
	}
}
function adminCheckNewsForm(theform) {
	if (theform.news_title_pl.value == '') {
		alert("Podaj polski tytuł newsa.");
		return (false);
	}
	if (theform.news_title_en.value == '') {
		alert("Podaj angielski tytuł newsa.");
		return (false);
	}
	if (theform.news_lead_pl.value == '') {
		alert('Podaj polską treść leada.');
		return (false);
	}
	if (theform.news_lead_en.value == '') {
		alert('Podaj angielską treść leada.');
		return (false);
	}
	if (!theform.news_is_active[0].checked && !theform.news_is_active[1].checked) {
		alert('Wybierz status newsa.');
		return (false);
	}
}

function toggle(id) {
if (document.getElementById(id).className !='showed') document.getElementById(id).className = 'showed';
else document.getElementById(id).className = 'hidden';

return false
}
