function setHomePage(){
 oHomePage.setHomePage('http://www.atera.no/');
 window.location = "http://www.atera.no/";
}

function openWindow(location)
{
	window.open(location, '', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=yes,width=500,height=480');
}

function showSample(tld)
{
	if (document.domReg.name.value != "")
	{
		samplenavn.innerText = document.domReg.name.value;
		sampletp.innterText = 'www.';
		sampletld.innterText = 'no';
		document.domReg.yoururl.value = document.domReg.name.value;
		
	}
	else {
		samplenavn.innerText = 'dittnavn';
		sampletp.innerText = '';
		sampletld.innterText = 'cjb.no';
		
		document.domReg.yoururl.value = 'dittnavn';
		document.domReg.yourdomain.value = 'cjb.no';

	}

	if (tld)
	{
		sampletld.innerText = tld;
		
		if( tld == 'cjb.no' )
			sampletp.innerText = '';
		else if( tld == 'i2.no' )
			sampletp.innerText = '';
		else
			sampletp.innerText = 'www.';

		document.domReg.yourdomain.value = tld;
	}

}
function fjernTekst( field ) {
	field.value = '';
}
function visTekst( field, name ) {
	if( field.value == '' )
		field.value = name;
}

function linkOpen( url ) 
{
	if( !document.sok.sokfield.value )
		window.open( url,'sok','height=300, width=600, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes' );
	else
	{
		if( url.indexOf( "kvasir" ) > 1 )
			var url = "http://search.kvasir.no/query?what=no&q=";
		if( url.indexOf( "google" ) > 1 )
			var url = "http://www.google.com/search?q=";
		if( url.indexOf( "yahoo" ) > 1 )
			var url = "http://search.yahoo.com/bin/search?p=";
		if( url.indexOf( "altavista" ) > 1 )
			var url = "http://www.altavista.com/web/results?q=";
		if( url.indexOf( "hotbot" ) > 1 )
			var url = "http://www.hotbot.com/default.asp?query=";
		if( url.indexOf( "lycos" ) > 1 )
			var url = "http://search.lycos.com/default.asp?query=";
		window.open( url + document.sok.sokfield.value,'sok','height=300, width=600, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes' );
	}
}