
<!--SELAIMEN TUNNISTUS


v3 = 0; op = 0; ie4  = 0; ie5 = 0; nn4 = 0; nn6 = 0; 
isMac = 0; aol = 0;

if(document.images){
    if(navigator.userAgent.indexOf("Opera") != -1){
        op = 1;
    } else {
        if(navigator.userAgent.indexOf("AOL") != -1){
            aol = 1;
        } else {
            ie4 = (document.all && !document.getElementById);
            nn4 = (document.layers);
            ie5 = (document.all && document.getElementById);
            nn6 = (document.addEventListener);
        }
    }
} else {
    v3 = 1;	
}

if(navigator.userAgent.indexOf("Mac") != -1){
    isMac = 1;
}

<!--JA TOUHUILU SEN MUKAAN...

if(op){ // do this    
	document.write('<link href="../../style.css" rel="stylesheet"  type="text/css">');
} 
if(ie4){ // do this
  	document.write('<link href="../../style.css" rel="stylesheet"  type="text/css">');
} 
if(ie5){ // do this
  	document.write('<link href="../../styleie.css" rel="stylesheet"  type="text/css">');
} 
if(nn4){ // do this
  	document.write('<link href="../../style.css" rel="stylesheet"  type="text/css">');
} 
if(nn6){ // do this
  	document.write('<link href="../../stylemuut.css" rel="stylesheet"  type="text/css">');
} 
if(aol){ // do this
  	document.write('<link href="../../style.css" rel="stylesheet"  type="text/css">');
}
if(v3){ // do this
 	document.write('<link href="../../style.css" rel="stylesheet"  type="text/css">');
}
//-->
<!--TULOSTA

function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

// -->


<!--NETSCAPEN UUDELLEENLATAUS

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);
// -->


<!--HAKUBOXIN VALIDOINTI...

var strRandomParameter;
strRandomParameter = ';ord=' + Math.round((Math.random()*899999)+100000) + '?'





function checkMainSearch(searchField) {
	var searchValue, previousChar, blnOnlyWildCards;
	searchValue = searchField.value;
	if(searchValue.charAt(0) == '*' || searchValue.charAt(0) == '?' ) {
		blnOnlyWildCards = true;
		for (i = 0; i < searchValue.length; i++) {
			if(searchValue.charAt(i) != '*' && searchValue.charAt(i) != '?' ) {
				blnOnlyWildCards = false;
				break;
			}
		}
		if (blnOnlyWildCards == true) {
			alert('Hakuehto tuottaa liian laajan tuloksen. Muuta hakuehtoa.');	
			searchField.focus();
			return false;
		}
	}
	if(searchValue == '' || searchValue.length == 1) {
		alert('Et kirjoittanut hakuehtoa tai hakuehto liian lyhyt! ');
		searchField.focus();
		return false;
	}
	return true;
}
//-->

<!-- JA TAHAN SUBMITTIEN STAILIT...

function pviiClassNew(obj, new_style) {
    obj.className = new_style;
}
//-->