/*========================================================
 @site		Iperbole
 @company	Keepthinking LTD
 @address	http://keepthinking.it
 @author	Oskar Krawczyk (o.krawczyk@keepthinking.it)
 @rev		08/05/2007
 ========================================================*/
/*window.onload = function() {
//window.addEvent('domready', function() {

	if (self.innerWidth) {
		var windowHeight = window.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth) {
		var windowHeight = document.documentElement.clientHeight;
	}
	var bodyHeight = document.getElementById('container').offsetHeight;

	if(windowHeight > bodyHeight) {
		//document.write('<style>html, head, body { height: 100% }</style>');
		$('html').setStyles('height: 100%;');
		$('head').setStyles('height: 100%;');
		$('home').setStyles('height: 100%;');
		//$('container').setStyles('height: 100%;');
	
	}

//});
}*/

window.onload = function() {
	var date1 = document.getElementById('date1');
	if(date1) {
		if(date1.value == '') date1.value = 'gg-mm-aaaa';
	}

	var date2 = document.getElementById('date2');
	if(date2) {
		if(date2.value == '') date2.value = 'gg-mm-aaaa';
	}
	
	$('date1').onfocus = function(el) {
		if(this.value == 'gg-mm-aaaa') {
			this.value = '';
		}
	};

	$('date1').onblur = function(el) {
		if(this.value == '') {
			this.value = 'gg-mm-aaaa';
		}
	};
	
	$('date2').onfocus = function(el) {
		if(this.value == 'gg-mm-aaaa') {
			this.value = '';
		}
	};

	$('date2').onblur = function(el) {
		if(this.value == '') {
			this.value = 'gg-mm-aaaa';
		}
	};
	
	$('username').onfocus = function(el) {
		if(this.value == 'nome utente') {
			this.value = '';
		}
	};

	$('username').onblur = function(el) {
		if(this.value == '') {
			this.value = 'nome utente';
		}
	};
	
	$('password').onfocus = function(el) {
		if(this.value == 'password') {
			this.value = '';
		}
	};

	$('password').onblur = function(el) {
		if(this.value == '') {
			this.value = 'password';
		}
	};
	
}

