
	var today 		= new Date();
	var expiry 		= new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000); // plus 28 days
	var bikky 		= document.cookie;
	var d 			= new Date();
	var curr_hour 	= d.getHours();
	var curr_min 	= d.getMinutes();
	var curr_sec 	= d.getSeconds();
	var begin_msec 	= d.getTime();
	var cfClassID 	= new Array();
	var fg 			= new Array();

	// external javascript for flash control
	var MM_contentVersion = 6;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin )
	{
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i)
		{
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i];
		}
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 && (navigator.appVersion.indexOf("Win") != -1))
	{
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	
	var testresults
	function checkemail(emtotest)
	{
		str=emtotest
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		
		if (filter.test(str))
		{
			testresults=true
		}
		else
		{
			testresults=false
		}
		return (testresults)
	}

	function flash_display(flashname,width,height,alternateimagefile,imagemap, parameters)
	{
		if ( MM_FlashCanPlay )
		{
			if(parameters == null) parameters = "";
			//alert(flashname+".swf"+parameters);
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' ID="'+flashname+'" WIDTH="'+width+'" HEIGHT="'+height+'" ALIGN="">');
			document.write('<PARAM NAME=movie VALUE="'+flashname+'.swf'+parameters+'"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><param name="wmode" value="transparent"/>');
			document.write('<EMBED WMode="Transparent" src="'+flashname+'.swf'+parameters+'" menu=false quality=high bgcolor=#FFFFFF  ');
			document.write(' swLiveConnect=FALSE WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+flashname+'" ALIGN=""');
			document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
			document.write('</EMBED>');
			document.write('</OBJECT>');
		} 
		else
		{
			document.write('<A HREF=https://www.macromedia.com/go/getflashplayer target=blank><IMG STYLE=display:block; SRC="'+alternateimagefile+'" WIDTH="'+width+'" HEIGHT="'+height+'" usemap="#'+imagemap+'" BORDER=0></A>');
		}
	}

	function flash_display_edbg(fullflashname,width,height) 
	{
		if ( MM_FlashCanPlay ) 
		{
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' ID="'+fullflashname+'" WIDTH="'+width+'" HEIGHT="'+height+'" ALIGN="">');
			document.write('<PARAM NAME=movie VALUE="'+fullflashname+'"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><param name="wmode" value="transparent"/>');
			document.write('<EMBED WMode="Transparent" src="'+fullflashname+'" menu=false quality=high bgcolor=#FFFFFF  ');
			document.write(' swLiveConnect=FALSE WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+fullflashname+'" ALIGN=""');
			document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
			document.write('</EMBED>');
			document.write('</OBJECT>');
		}
		else
		{
			document.write('Flash not supported.');
		}
	}

	function flash_display_with_params(flashname,width,height,alternateimagefile,imagemap,flashparam) 
	{
		if ( MM_FlashCanPlay )
		{
			document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' ID="'+flashname+'" WIDTH="'+width+'" HEIGHT="'+height+'" ALIGN="">');
			document.write(' <PARAM NAME=FlashVars VALUE="'+flashparam+'">');
			document.write('<PARAM NAME=movie VALUE="'+flashname+'.swf"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><param name="wmode" value="transparent"/>');
			document.write('<EMBED WMode="Transparent" src="'+flashname+'.swf" menu=false quality=high bgcolor=#FFFFFF  ');
			document.write(' swLiveConnect=FALSE WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+flashname+'" ALIGN=""');
			document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" FlashVars="'+flashparam+'">');
			document.write('</EMBED>');
			document.write('</OBJECT>');
		} 
		else
		{
			document.write('<A HREF=https://www.macromedia.com/go/getflashplayer target=blank><IMG STYLE=display:block; SRC="'+alternateimagefile+'" WIDTH="'+width+'" HEIGHT="'+height+'" usemap="#'+imagemap+'" BORDER=0></A>');
		}
	}

	function when_loaded() 
	{
		var d 			= new Date();
		var curr_hour 	= d.getHours();
		var curr_min 	= d.getMinutes();
		var curr_sec 	= d.getSeconds();
		var end_msec 	= d.getMilliseconds();
		var end_msec  	= d.getTime();
		window.status 	= (end_msec-begin_msec)*0.001;
	}

	function ftostype(stype,ftx) 
	{
		document.gnpform.srt.value = stype;
		ftolaunchsearch(0,ftx,stype);
	}

	function ftoarea(area) 
	{
		document.gnpform.area.value = area;
	}

	function ftojobtype(jobtype) 
	{
		document.gnpform.jobtype.value = jobtype;
	}

	function ftonameofpost(nameofpost) {
		document.gnpform.nameofpost.value = nameofpost;
	}

	function ftoexpertise(expertise) 
	{
		document.gnpform.expertise.value=expertise;
	}

	function ftolaunchsearch(pg,ftx) 
	{
		document.gnpform.pg.value	= pg;
		document.gnpform.ftx.value	= ftx;
		document.gnpform.submit();
	}

	function ffulltolaunchsearch(pg,ftx,area,industry,jobtype,nameofpost,expertise)
	{
		document.gnpform.pg.value=pg;
		document.gnpform.area.value=area;
		document.gnpform.submit();
	}
	// EO map flash

	// Collapsing
	highlightcolour		= "#333";
	highlightbackground	= "";
	highlighttext		= "-";

   	normalcolour		= "#333";
	normalbackground	= "";
	normaltext			= '<img src=cmplus.gif border=0>';
	normaltext			= "+";

	function domCollapse(which,cookieid)
	{
		if (document.getElementById && document.createTextNode)
		{
			if (which == "dispall") { domCollapseAll(1); }
			else if (which == "hideall") { domCollapseAll(0); }
			else 
			{
				m = document.getElementById("menu");
				trig = m.getElementsByTagName("div").item(which).style.display;
				
				if (trig == "block") trig = "none";
				else if (trig == "" || trig == "none") trig = "block";
				if (trig == "none")
				{
					var o = eval("document.all.gfx"+which);
					o.src="cmplus.gif";
				    
					fg[cookieid]="";
					update_fg_cookie();
				}
				else 
				{
					var o=eval("document.all.gfx"+which);
					o.src="cmminus.gif";
				
					fg[cookieid]=cookieid;
					update_fg_cookie();
				}
				m.getElementsByTagName("div").item(which).style.display=trig;
			}
		}
	} 

	function load_fg_cookie() 
	{
		fg_contents = getCookie("fg");
		if (fg_contents) 
		{
			var arr = getCookie("fg").split(",");
			for (var i in arr)
			{
				if (arr[i]>0)
				{
					fg[arr[i]] = arr[i];
				}
			}
		}
	}

	function update_fg_cookie(string) 
	{
		var fg_string = "";
		for (var i in fg)
		{
			if (fg[i]>0)
			{
				fg_string=fg_string+","+fg[i];
			}
		}
		setCookie ("fg", fg_string);
	}

	function return_fg_settings() 
	{
		for (var i in cfClassID)
		{
			if (cfClassID[i]>0)
			{
				if (fg[cfClassID[i]]>0) 
				{
					//domCollapse(i,fg[cfClassID[i]]);
				}
			}
		}
	}

	function domCollapse_and_load(which,url,cookieid){
		if (document.getElementById && document.createTextNode){
			if (which=="dispall") {domCollapseAll(1);}
			else if (which=="hideall") {domCollapseAll(0);}
			else {
				m=document.getElementById("menu");
				trig=m.getElementsByTagName("div").item(which).style.display;
				if (trig=="block") trig="none";
				else if (trig=="" || trig=="none") trig="block";
				if (trig=="none"){
					if (1==2)
					{
						var o=eval("document.all.gfx"+which);
						o.src="cmplus.gif";
	
						fg[cookieid]="";
						update_fg_cookie();
	
						m.getElementsByTagName("div").item(which).style.display=trig;
					}
	
				}
				else {
					var o=eval("document.all.gfx"+which);
					o.src="cmminus.gif";
				    
					fg[cookieid]=cookieid;
					update_fg_cookie();
	
					m.getElementsByTagName("div").item(which).style.display=trig;
				}
				location.href =url;
			}
		}
	} 

	function domCollapse_fr(which,menuid){
		if (document.getElementById && document.createTextNode){
			if (which=="dispall") {domCollapseAll(1);}
			else if (which=="hideall") {domCollapseAll(0);}
			else {
				m=document.getElementById(menuid);
				trig=m.getElementsByTagName("div").item(which).style.display;
				if (trig=="block") trig="none";
				else if (trig=="" || trig=="none") trig="block";
				if (trig=="none")
				{
					var o=eval("document.all.gfx"+which);
					o.src="cmplus.gif";
				}
				else 
				{
					var o=eval("document.all.gfx"+which);
					o.src="cmminus.gif";
				}
				m.getElementsByTagName("div").item(which).style.display=trig;
			}
		}
	} 

	function domCollapse_orig(which){
		if (document.getElementById && document.createTextNode){
			if (which=="dispall") {domCollapseAll(1);}
			else if (which=="hideall") {domCollapseAll(0);}
			else {
				m=document.getElementById("menu");
				trig=m.getElementsByTagName("div").item(which).style.display;
				t=m.getElementsByTagName("h2").item(which);
				h=t.getElementsByTagName("a").item(0).firstChild;
				if (trig=="block") trig="none";
				else if (trig=="" || trig=="none") trig="block";
				if (trig=="none"){
					h.nodeValue=h.nodeValue.replace(highlighttext,normaltext);
					document.gfx0.src="cmplus.gif";
					t.style.background=normalbackground;
					t.style.color=normalcolour;
					}
				else {
					h.nodeValue=h.nodeValue.replace(normaltext,highlighttext);
					document.gfx0.src="cmminus.gif";
					t.style.background=highlightbackground;
					t.style.color=highlightcolour;
					}
				m.getElementsByTagName("div").item(which).style.display=trig;
			}
		}
	} 

	function domCollapseAll(show){
		if (document.getElementById && document.createTextNode){
			m=document.getElementById("menu");
			for (i=0;i<m.getElementsByTagName("div").length;i++){
	
				if (show==1){
					var o=eval("document.all.gfx"+i);
					o.src="cmminus.gif";
	
	
					fg[cfClassID[i]]=cfClassID[i];
					update_fg_cookie();
					m.getElementsByTagName("div").item(i).style.display="block";
				}
				else {
					var o=eval("document.all.gfx"+i);
					o.src="cmplus.gif";
				   
	
					fg[cfClassID[i]]="";
					update_fg_cookie();
					m.getElementsByTagName("div").item(i).style.display="none";
				}
			}
		}
	}
	// Adding backwards compatibility
	if (document.getElementById && document.createTextNode){
		document.write('<style type="text/css">#menu div{display:none;}</style>')
	}
	// EO Collapsing

// cookies

	function getCookie(name) { // use: getCookie("name");
	  var index = bikky.indexOf(name + "=");
	  if (index == -1) return null;
	  index = bikky.indexOf("=", index) + 1;
	  var endstr = bikky.indexOf(";", index);
	  if (endstr == -1) endstr = bikky.length;
	  return unescape(bikky.substring(index, endstr));
	}


	function setCookie(name, value) { // use: setCookie("name", value);
	  if (value != null && value != "")
	    document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();
	  bikky = document.cookie; // update bikky
	}
	// eo cookie


	function showList2(param) {
	mypopup = window.open(param, "Help", "resizable=no,copyhistory=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=620");
	mypopup.focus();
	}

	function showPop(param,w,h) {
	mypopup = window.open(param, "JobContactor", "resizable=no,status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,width="+w+",height="+h);
	mypopup.focus();
	}

	function showPopbu(param,w,h) {
	mypopup = window.open(param, "JobContactor", "resizable=yes,status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width="+w+",height="+h);
	mypopup.focus();
	}

	function showFastApp(param) {
	mypopup = window.open(param, "Pikahakemus", "resizable=no,copyhistory=no,toolbar=no,location=no,directories=no,menubar=no,status=yes,scrollbars=yes,width=581, height=870");
	mypopup.focus();
	}

	function showList(param) {
		// only change from above is with the url
		var myURL = param, popupName = 'Help', popupWidth = 570, mypopup;
		var details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+popupWidth;
		mypopup = window.open(myURL,popupName,details);
		mypopup.focus();
	}

	function showDirectory(param) {
		// only change from above is with the url
		var myURL = param, popupName = 'Directory', popupWidth = 720, mypopup;
		var details = 'toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width='+popupWidth;
		mypopup = window.open(myURL,popupName,details);
		mypopup.focus();
	}


	function popupWindow(filename)
	{
	    infowin = window.open(filename,"infowindow","status=no,copyhistory=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=350,height=350");
	    if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1) {
	        parent.infowin = window.open(filename,"infowindow","status=no,copyhistory=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=350,height=350");
	    }
	    if (navigator.userAgent.indexOf("MSIE 3.0") == -1) {
	        
	    }
	}

	var vari = new Array();
	vari[0]="#ffff99";
	vari[1]="#ffffaa";
	vari[2]="#ffffbb";
	vari[3]="#ffffcc";
	vari[4]="#ffffdd";
	vari[5]="#ffffee";
	vari[6]="#ffffff";
	vari[7]="#ffffff";
	vari[8]="#ffffff";
	vari[9]="#ffffff";
	vari[10]="#ffffff";
	vari[11]="#ffffff";
	
	vari[0]="#ffff99";
	vari[1]="#ffffd0";
	vari[2]="#ffffd6";
	vari[3]="#ffffe0";
	vari[4]="#ffffe6";
	vari[5]="#fffff0";
	vari[6]="#ffffff";
	vari[7]="#ffffff";
	vari[8]="#ffffff";
	vari[9]="#ffffff";
	vari[10]="#ffffff";
	vari[11]="#ffffff";
	
	
	// kelt ok
	vari[0]="#ffff99";
	vari[1]="#ffffaa";
	vari[2]="#ffffd6";
	vari[3]="#ffffe6";
	vari[4]="#fffff0";
	vari[5]="#fffff6";
	vari[6]="#ffffff";
	vari[7]="#ffffff";
	vari[8]="#ffffff";
	vari[9]="#ffffff";
	vari[10]="#ffffff";
	vari[11]="#ffffff";
	
	
	// kelt + harm
	vari[0]="#ffff99";
	vari[1]="#fefeaa";
	vari[2]="#f6f6f6";
	vari[3]="#f9f9f9";
	vari[4]="#fcfcfc";
	vari[5]="#fefefe";
	vari[6]="#ffffff";
	vari[7]="#ffffff";
	vari[8]="#ffffff";
	vari[9]="#ffffff";
	vari[10]="#ffffff";
	vari[11]="#ffffff";
	
	
	// red 
	vari[0]="#b4302f";
	vari[1]="#f8758f";
	vari[2]="#f5f5f5";
	vari[3]="#f9f9f9";
	vari[4]="#fcfcfc";
	vari[5]="#fefefe";
	vari[6]="#ffffff";
	vari[7]="#ffffff";
	vari[8]="#ffffff";
	vari[9]="#ffffff";
	vari[10]="#ffffff";
	vari[11]="#ffffff";
	
	
	
	// tabvari
	var tabvari = new Array();
	
	
	
	// blue to grey
	tabvari[0]="#899cb6";
	tabvari[1]="#99a6af";
	tabvari[2]="#a6a6a6";
	tabvari[3]="#a3a3a3";
	tabvari[4]="#a0a0a0";
	tabvari[5]="#9c9c9c";
	tabvari[6]="#909090";
	tabvari[7]="#000000";
	tabvari[8]="#000000";
	tabvari[9]="#000000";
	tabvari[10]="#000000";
	tabvari[11]="#000000";
	
	// visual blue to grey
	
	tabvari[0]="#9AA6AB";
	
	tabvari[0]="#A7B2B6";
	tabvari[1]="#99a6af";
	tabvari[2]="#a6a6a6";
	tabvari[3]="#a3a3a3";
	tabvari[4]="#a0a0a0";
	tabvari[5]="#9c9c9c";
	tabvari[6]="#909090";
	tabvari[7]="#000000";
	tabvari[8]="#000000";
	tabvari[9]="#000000";
	tabvari[10]="#000000";
	tabvari[11]="#000000";
	
	// default grey
	tabvari[0]="#afafaf";
	tabvari[1]="#a9a9a9";
	tabvari[2]="#a6a6a6";
	tabvari[3]="#a3a3a3";
	tabvari[4]="#a0a0a0";
	tabvari[5]="#9c9c9c";
	tabvari[6]="#909090";
	tabvari[7]="#000000";
	tabvari[8]="#000000";
	tabvari[9]="#000000";
	tabvari[10]="#000000";
	tabvari[11]="#000000";
	
	
	
	
	var fadesteparr = new Array();
	fadesteparr [0]=0;
	fadesteparr [1]=0;
	fadesteparr [3]=0;
	fadesteparr [4]=0;
	fadesteparr [5]=0;
	fadesteparr [6]=0;


	function bgfade(id,clr)
	{
		var o=eval("document.all.o"+id);
		if (o && o.style) 
		{
			fadesteparr[id]=fadesteparr[id]+1;
			if(fadesteparr[id]>7) fadesteparr[id]=7;
			if(fadesteparr[id]<7) o.style.background=vari[fadesteparr[id]];
			if(fadesteparr[id]<7) setTimeout("bgfade("+id+")", 100);
		}

		var o=eval("document.all.oad"+id);
		if (o && o.style){
			if(fadesteparr[id]<7) o.style.background=vari[fadesteparr[id]];
		}

		var o=eval("document.all.tro"+id);
		if (o && o.style) {
			if(fadesteparr[id]<7) o.style.background=vari[2+fadesteparr[id]];
		}

		var o=eval("document.all.troad"+id);
		if (o && o.style) {
			if(fadesteparr[id]<7) o.style.background=vari[2+fadesteparr[id]];
		}

		var o=eval("document.all.ro"+id);
		if (o && o.style) {
			if(fadesteparr[id]<7) o.style.background=vari[fadesteparr[id]];
		}

		var o=eval("document.all.o"+(id-1));
		if (o && o.style) {
			if (masterid==(id-2) && masterid>0){ }
			else {
				if(fadesteparr[id]<7) o.style.background=vari[2+fadesteparr[id]];
			}
		}

		var o=eval("document.all.ro"+(id-1));
		if (o && o.style) {
			if (masterid==(id-2) && masterid>0){ }
			else {
				if(fadesteparr[id]<7) o.style.background=vari[2+fadesteparr[id]];
			}
		}

		var o=eval("document.all.o"+(id+1));
		if (o && o.style) {
			if (masterid==(id+2)){ }
			else {
				if(fadesteparr[id]<7) o.style.background=vari[2+fadesteparr[id]];
			}
		}

		var o=eval("document.all.ro"+(id+1));
		if (o && o.style) {
			if (masterid==(id+2)){ }
			else {
				if(fadesteparr[id]<7) o.style.background=vari[2+fadesteparr[id]];
			}
		}

		// support for new tabsp
		var o=eval("document.all.t1"+id);
		if (o && o.style) {
			fadesteparr[id]=fadesteparr[id]+1;
			if(fadesteparr[id]>7) fadesteparr[id]=7;
			if(fadesteparr[id]<7) o.style.background=tabvari[fadesteparr[id]];
			if(fadesteparr[id]<7) setTimeout("bgfade("+id+")", 100);
		}

		var o=eval("document.all.t2"+id);
		if (o && o.style) {
			if(fadesteparr[id]<7) o.style.background="999999";
		}

		var o=eval("document.all.t3"+id);
		if (o && o.style) {
			if(fadesteparr[id]<7) o.style.background="999999";
		}
	}

	function KorSet(id,clr)
	{
		var o=eval("document.all.o"+id);
		masterid=id;
		fadesteparr[id]=7;
		if (o && o.style) {
			o.style.background=clr;
		}

		var o=eval("document.all.oad"+id);
		masterid=id;
		fadesteparr[id]=7;
		if (o && o.style) {
			o.style.background=clr;
		}

		var o=eval("document.all.tro"+id);
		if (o && o.style) {
			o.style.background=vari[2];
		}

		var o=eval("document.all.troad"+id);
		if (o && o.style) {
			o.style.background=vari[2];
		}

		var o=eval("document.all.ro"+id);
		if (o && o.style) {
			o.style.background=clr;
		}

		var o=eval("document.all.o"+(id-1));
		if (o && o.style) o.style.background=vari[3];
		sum = parseInt(id)+1 ;
		var o=eval("document.all.o"+(sum));
		if (o && o.style) o.style.background=vari[3];

		var o=eval("document.all.ro"+(id-1));
		if (o && o.style) o.style.background=vari[3];
		sum = parseInt(id)+1 ;
		var o=eval("document.all.ro"+(sum));
		if (o && o.style) o.style.background=vari[3];

		// support for new tabsp
		var o=eval("document.all.t1"+id);
		if (o && o.style) {
			o.style.background=tabvari[0];
		}

		var o=eval("document.all.t2"+id);
		if (o && o.style) {
			o.style.background="A7A7A7";
		}

		var o=eval("document.all.t3"+id);
		if (o && o.style) {
			o.style.background="A7A7A7";
		}
	}

	function KorFade(id,clr) 
	{
		masterid=0;

		var o=eval("document.all.o"+id);
		if (o && o.style) {
			setTimeout("bgfade("+id+")", 200);
			fadesteparr[id]=0;
		}

		var o=eval("document.all.t1"+id);
		if (o && o.style) {
			setTimeout("bgfade("+id+")", 200);
			fadesteparr[id]=0;
		}
	}

	function tabOffOver(id) 
	{  
		var o=eval("document.all.tabl"+id);
		o.src=lv_path+"tab-off-over-l.gif";
		var o=eval("document.all.tabr"+id);
		o.src=lv_path+"tab-off-over-r.gif";
	}

	function tabOffOut(id)
	{ 
		var o=eval("document.all.tabl"+id);
		o.src=lv_path+"tab-off-l.gif";
		var o=eval("document.all.tabr"+id);
		o.src=lv_path+"tab-off-r.gif";
	}

	function KorostaOn(id) { 
		if (id<3000) KorSet(id,vari[0]); 
	}

	function KorostaOff(id) { 
	   if (id<3000) KorFade(id,"#ffffff"); 
	}

	function checkall(field)
	{
		var i;
		for (i=0;i<field.length;i++)
		field[i].checked=true;
	} 

	function uncheckall(field)
	{
		var i;
		for(i=0;i<field.length;i++)
		field[i].checked=false;
	}
	
	function showPrev() 
	{
		sList = window.open(document.gnpform.url.value, "prev", "location=yes,resizable=yes,scrollbars=yes");
	}
	
	load_fg_cookie();
	
	function SetCreateDateTimeDays(year, month, currentmonth, currentdays)
	{
		var selectedDay = $("#createdatetimed option:selected").val();
		
		if(month == 0) return false;
		var date = new Date();
		date.setMonth(month, 0);
		
		if(month != currentmonth) 	{ var days = date.getDate(); } 
		else 						{ var days = parseInt(currentdays); }
		
		var createdatetimed = "";
		for(var i=1; i<days+1; i++)
		{
			if(selectedDay == i)
			{	
				createdatetimed += "<option value='"+i+"' selected>"+i+"</option>";
			}
			else if(selectedDay > days+1)
			{
				if(i == days)
				{	
					createdatetimed += "<option value='"+i+"' selected>"+i+"</option>";
				} 
			}
			else
			{	
				createdatetimed += "<option value='"+i+"'>"+i+"</option>";
			} 
		}
		
		$("#createdatetimed").html(createdatetimed);
	}

