﻿/*Sender brugeren til det som er valgt i selectlisten*/
function jumpto(x){

if (document.form1.jumpmenu.value != "null") {
	document.location.href = x
	}
}
function jumpto2(x){

if (document.form2.jumpmenu.value != "null") {
	document.location.href = x
	}
}



/*Validering på om søgefeltet er tomt*/
function validateSearchField() {
    if(document.SearchForm1.q.value.length == 0){
        alert('Sökfältet är tomt!');
        document.SearchForm1.q.focus();
        return false;
    }	                   
return true;
}


function framsida_se()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="880" height="364" id="splash_se" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="allowFullScreen" value="false" />\n');
	document.write('<param name="movie" value="Files/Billeder/flash/splash_se.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="Files/Billeder/flash/splash_se.swf" quality="high" bgcolor="#ffffff" width="880" height="364" name="splash_se" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}


function framsida_en()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="880" height="364" id="splash_se" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="allowFullScreen" value="false" />\n');
	document.write('<param name="movie" value="Files/Billeder/flash/splash_en.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="Files/Billeder/flash/splash_en.swf" quality="high" bgcolor="#ffffff" width="880" height="364" name="splash_en" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function pickRandom(range) 
{ 
   if (Math.random) 
      return Math.round(Math.random() * (range-1)); 
   else { 
      var now = new Date(); 
      return (now.getTime() / 1000) % range; 
   } 
} 


function framsida_random_pic()
{

   var ic = 3; 

   var pic = new Array();

   pic[1] = "/files/billeder/ESTABLISH SWE/framsida_blid1.jpg"; 
   pic[2] = "/files/billeder/ESTABLISH SWE/framsida_blid2.jpg"; 
   pic[3] = "/files/billeder/ESTABLISH SWE/framsida_blid3.jpg"; 

   var choice = pickRandom(ic); 

//   document.write('<img src="' + pic[choice] + '" >');

}






