function SendForm(url)
{
	document.getElementById("IsSubmit").value = "1";
	document.forms[0].action = url;
	document.forms[0].submit();
}

function OpenConfirmationPopUp(confirmationUrl)
{
	var win = window.open(confirmationUrl, "PopUp", "width=600,height=400,toolbar=no,menubar=no,locationbar=no,status=yes,scrollbars=no,resizable=yes");
	win.focus();
}

function FillTest()
{
	var cr1 = 104;
	var cr2 = 101;
	
	var t1 = Math.floor((Math.random()*10)+1);
	var t2 = Math.floor((Math.random()*10)+1);
	var t3 = t1 + t2;
	var t4 = "Die Summe aus<br/> " + t1 + " + " + t2 + " ist:";
	var c1 = t1 + cr1;
	var c2 = t2 + cr2;
	
	//var t4 = "<script type='text/javascript'>/*<![CDATA[*/ document.write(ShowTest('" + c1 + "','" + c2 + "')); /*]]>*/</script>";
	//var t4 = "<script type='text/javascript'>/*<![CDATA[*/ document.write(ShowTest()); /*]]>*/</script>";
	//alert(t4);
	var i1 = document.getElementById("Input_Testh");
	//alert(i1);
	var l1 = document.getElementById("Lbl_Test");
	//alert(i1);
	var r1 = document.getElementById("Input_Test2e");
	r1.value = t4;
	
	if (l1 != null && i1 != null)
	{
		l1.innerHTML = t4;
		//l1.innerHTML = ShowTest(c1, c2);
		//alert(t4);
		//alert(l1.innerHTML);
		i1.value = t3;
		
	document.getElementById("Input_Testa").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testb").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testc").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testd").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Teste").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testf").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testg").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testi").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testj").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Testk").value = Math.floor((Math.random()*20)+1);	
	document.getElementById("Input_Test2a").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";
	document.getElementById("Input_Test2b").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2c").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2d").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2f").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2g").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2h").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2i").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2j").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	document.getElementById("Input_Test2k").value = "Die Summe aus<br/> " + Math.floor((Math.random()*10)+1) + " + " + Math.floor((Math.random()*10)+1) + " ist:";	
	}
}

function ShowTest(c1, c2)
{
/*
	alert('ShowTest');
	var cr1 = 104;
	var cr2 = 101;
	
	var t1 = c1 - cr1;
	var t2 = c2 - cr2;
	
	var t4 = "Die Summe aus<br/> " + t1 + " + " + t2 + " ist:";
	alert(t4);
	return t4;
*/
/*
	alert('ShowTest');
	var l1 = document.getElementById("Lbl_Test");
	alert(document.getElementById("Input_Test2e").value);
	l1.innerHTML = document.getElementById("Input_Test2e").value;
*/
	return (document.getElementById("Input_Test2e").value);
}

function CheckTest()
{
    if(document.getElementById("Input_Test").value != document.getElementById("Input_Testh").value)
    {
        return false;
    }
    else
    {
		return true;
    }
	
}

