window.name = "prokarelia";

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function validate_email_fin() {
if ((document.submitform.email.value == "")) {
   window.alert ("Ole hyvä ja anna sähköpostiosoite, kiitos.");
   return false;
   }
}

function validate_email_eng() {
if ((document.submitform.email.value == "")) {
   window.alert ("Please fill in the e-mail address.");
   return false;
   }
}

function validate_ecard() {
if ((document.submitform.recipient_name.value == "") || 
	(document.submitform.recipient_email.value == "") || 
	(document.submitform.message.value == "") || 
	(document.submitform.sender_name.value == "") || 
	(document.submitform.sender_email.value == "")) {
   window.alert ("Ole hyvä ja täytä kaikki kentät.\nPlease fill in all of the fields.");
   return false;
   }
}

function validate_manifest() {
if ((document.submitform.name.value == "") || 
	(document.submitform.email.value == "") || 
	(document.submitform.location.value == "")) {
   window.alert ("Nimi, email ja kaupunki ovat pakollisia tietoja!\nName, email and location fields are required!");
   return false;
   }
}

function pop(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function kportaali(theURL,winName,features) { 
  window_handle = window.open(theURL,'k','window=no,status=yes,scrollbars=no,resizable=no,location=0,toolbar=no,directories=no,copyhistory=no,width=460,height=460,left=140,top=140');
  window_handle.focus();
}

function transfer_to(url) {
  locationstring = url;
  window.location = locationstring;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
