window.name = "kareliaport";

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function validateEmailApplication() {
if ((document.email_application.name.value == "") || 
	(document.email_application.address.value == "") || 
	(document.email_application.transfer.value == "")) {
   window.alert ("Please fill in all of the fields.");
   return false;
   }
}

function validateDomainApplication() {
if ((document.domain_application.name.value == "") || 
	(document.domain_application.contact.value == "") || 
	(document.domain_application.contact_email.value == "") || 
	(document.domain_application.domain.value == "")) {
   window.alert ("Please fill in all of the fields.");
   return false;
   }
}

function validateEvent() {
if ((document.eventform.author.value == "") || 
	(document.eventform.contact.value == "") || 
	(document.eventform.contact_email.value == "") || 
	(document.eventform.title.value == "") || 
	(document.eventform.location.value == "")) {
   window.alert ("Please fill in all of the fields.");
   return false;
   }
}

function validateLinkSubmit() {
if ((document.linksform.name.value == "") || 
	(document.linksform.contact.value == "") || 
	(document.linksform.contact_email.value == "") || 
	(document.linksform.url.value == "")) {
   window.alert ("Please fill in all of the fields.");
   return false;
   }
}

function validate_reply() {
if (
  (document.replyform.author.value == "") ||
  (document.replyform.message.value == "")
  ){
  window.alert ("Ole hyvä ja täytä kaikki kentät.");
  return false;
  }
}
function validate_post() {
if (
  (document.postform.author.value == "") ||
  (document.postform.subject.value == "") ||
  (document.postform.message.value == "")
  ){
  window.alert ("Ole hyvä ja täytä kaikki kentät.");
  return false;
  }
}


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);