function skift(){
	window.open("ikano.htm","nn",'width=710,height=500,scrollbars=yes,left='+((screen.width/2)-325)+',top='+((screen.height/2)-255))
}

function tjekForm(){
	if(document.minForm.check1.checked && document.minForm.check2.checked && document.minForm.check3.checked && document.minForm.check4.checked){
		var beloeb=0;
		try {
			beloeb = parseInt( document.minForm.beloeb.value );
			if ( isNaN( beloeb ) ) beloeb = 10000;
		}
		catch(er) {
			beloeb = 10000;
		}
		ansoegningsForm(beloeb)
		
	}else{
		window.open("afslag.htm","nn",'width=600,height=480,scrollbars=yes,left='+((screen.width/2)-325)+',top='+((screen.height/2)-255))
	}
}

function ansoegningsForm(beloeb) {
	if(beloeb <= 30000){
			window.open("http://www.laanuden.dk/tracking/ansogxtrapenge.php?loanamount="+ beloeb,"nn",'width=600,height=500,scrollbars=yes,left='+((screen.width/2)-325)+',top='+((screen.height/2)-255))
	}else{
			window.open("https://www.ikano.dk/autoans/xtrapenge/sendansoegning_stortskema.asp?beloeb="+ beloeb,"nn",'width=600,height=500,scrollbars=yes,left='+((screen.width/2)-325)+',top='+((screen.height/2)-255))
	}
}
