/*<![CDATA[*/
/**
 * functions.js - Bibliothek mit uebergreifenden JavaScript Funktionen
 *
 * Copyright (c) 2009    die.interaktiven GmbH & Co. KG
 *                       Agentur für digitale Medien
 *                       Eisenmarkt 1
 *                       35578 Wetzlar
 *                       Germany
 *
 *                       Fon: +49 (0)64 41 / 39 86 19 - 0
 *                       Fax: +49 (0)64 41 / 39 86 19 - 9
 *                       Web: www.die-interaktiven.de
 *
 * Alle Rechte vorbehalten. Unberechtigte Kopie und Weiter-
 * verwendung nicht gestattet.
 *
 */

var DOCUMENT_ROOT = '/';

function doStart()
{
	setStatus('myGecko - Ihre GeckoLogic PhotoVoltaik Anlage im Internet');
}

$(document).ready(function(){
	$("a[rel^='geckoBox']").prettyPhoto({
		animationSpeed: 'fast', /* fast/slow/normal */
		padding: 100, /* padding for each side of the picture */
		opacity: 0.55, /* Value betwee 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'gecko', /* light_rounded / dark_rounded / light_square / dark_square */
		hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		modal: false, /* If set to true, only the close button will close the window */
		changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
		callback: function(){} /* Called when prettyPhoto is closed */
	});
});


function checkLogin(oForm)
{
	if(!checkEmail(oForm.elements['user'].value))
	{
		alert('Bitte geben Sie Ihre E-Mail Adresse (Benutzername) ein!');

		return false;
	}

	if(trim(oForm.elements['pass'].value) == '' || oForm.elements['pass'].value == 'passwd')
	{
		alert('Bitte geben Sie Ihr Passwort ein!');

		return false;
	}


	return true;
}

function checkPassword(oForm)
{
	if(!checkEmail(oForm.elements['tx_felogin_pi1[forgot_email]'].value))
	{
		alert('Bitte geben Sie Ihre E-Mail Adresse (Benutzername) ein!');

		return false;
	}


	return true;
}

function processReport(oForm, sWinName)
{
	showPopup('', sWinName, 830, 750, 'scrollbars');

	return true;
}


window.onload = doStart;

/*]]>*/
