

var hProgressWindow;

// Avaa yhteyshenkilön lisäykseen tarkoitettu ikkuna.
function openAddContactPersonWindow()
{
	var location = "yrittajat/lisaayhteyshenkilo.asp";
	var windowHandle = window.open( location, "yhteyshenkilo_ikkuna", "toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=yes,copyhistory=yes,width=385,height=295,screenX=100,screenY=1,top=150,left=250" );
	windowHandle.focus();
}

function displaySearchProgress( szPrefix )
{
	var bDisplayProgress = true;

	// tarkan haun tyhjaa-nappi.
	
	if( document.tarkka != null )
	{
		if( document.tarkka.tarkkatyhjaapainettu.value == "true" )
			bDisplayProgress = false;
	}
	// vapaasanahaun tyhjaa-nappi.
	//if( document.form != null )
	//{
	//	if( document.form.vapaatyhjaapainettu.value == "true" )
	//		bDisplayProgress = false;
	//}
	
	if( bDisplayProgress )
	{
		var szLocation = szPrefix + "progress.html";
		hProgressWindow = window.open(szLocation, "progress_ikkuna", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=100,screenX=100,screenY=1,top=200,left=350" );
		hProgressWindow.focus();
	}
}

function closeProgressWindow()
{
	hProgressWindow = window.open('','progress_ikkuna');
	hProgressWindow.close();
}

