/*
Käytettäviä scriptejä
*/
/*		var slider2 = ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'];
		function formatText(index, panel) {
			return slider2[index - 1];
		}

		$(function () {

			$('#slider1').anythingSlider({
				width : 800 // Override the default CSS width
			});

			$('#slider2').anythingSlider({
				width               : 600,       // if resizeContent is false, this is the default width if panel size is not defined
				height              : 350,       // if resizeContent is false, this is the default height if panel size is not defined
				resizeContents      : false,     // If true, solitary images/objects in the panel will expand to fit the viewport
				autoPlay            : true,     // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
				navigationFormatter : formatText // Format navigation labels with text
			})

			$("#slide-jump").click(function(){
				$('#slider2').anythingSlider(4);
				return false;
			});

		});
*/		
		
	function validate_required(field,alerttxt)
	{
	with (field)
	  {
	  if (value==null||value=="")
		{
		alert(alerttxt);return false;
		}
	  else
		{
		return true;
		}
	  }
	}

	function validate_form1(thisform)
	{
	with (thisform)
	  {
	  if (validate_required(nimi,"Tähdellä merkityt kentät tulee täyttää!")==false)
	  {email.focus();return false;}
	   if (validate_required(email,"Tähdellä merkityt kentät tulee täyttää!")==false)
	  {email.focus();return false;}
		if (validate_required(puhelinnumero,"Tähdellä merkityt kentät tulee täyttää!")==false)
	  {email.focus();return false;}
	  }
	}

	function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
	} 

