
			function toggledisplay(nr)
			{	
				if (document.layers)
				{
					current = (document.layers[nr].display == 'none') ? 'block' : 'none';
					document.layers[nr].display = current;
				}
				else if (document.getElementById)
				{
					vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
					document.getElementById(nr).style.display = vista;
				}
				else if (document.all)
				{
					current = (document.all[nr].style.display == 'none') ? 'block' : 'none';
					document.all[nr].style.display = current;
				}
			}
			function setdisplay(nr,display)
			{	
				if (document.layers)
				{
					document.layers[nr].display = display;
				}
				else if (document.getElementById)
				{
					document.getElementById(nr).style.display = display;
				}
				else if (document.all)
				{
					document.all[nr].style.display = display;
				}
			}
			function openpopup(href)
			{
				window.open(href,'mywindow','width=600,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes');

			}
			
			function showimageattachment(id)
			{
				window.open('showImage.php?openinwindow=true&table=image_attachment&row_id='+id,'preview','width=600,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no');
			}
			
			
			function send()
			{
				document.form-login.submit()
			}