var DefaultForm_onSubmit = null;

function SetEvents() {

	document.getElementById("DefaultForm").style.cursor = "";
	DefaultForm_onSubmit = document.getElementById("DefaultForm").attachEvent("onsubmit", SetMouse);
	
	if (self.name != 'main') {
		self.focus();
	}

}


function SetMouse() {

	document.getElementById("DefaultForm").style.cursor = "wait";
		
}


function ReloadOpener(_URL) {
	parent.opener.location.href=_URL;
}

	
function OpenPreview(PageURL,Name,Width,Height) {
	var Features = 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,width=' + eval((Width == null) ? 640 : Width) + ',height=' + eval((Height == null) ? 660 : Height);
	Fenster = window.open(PageURL,Name,Features);
	Fenster.focus();
	}


function oeffneGames(PageURL,Name,Width,Height) {
	var Features = 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=' + eval((Width == null) ? 640 : Width) + ',height=' + eval((Height == null) ? 660 : Height);
	Fenster = window.open(PageURL,Name,Features);
	Fenster.focus();
	}

function NewWin(file,name,options){
	window.open(file,name,options);
}
