var timerCheck = null;

function CheckField (field, value) {
	if (timerCheck != null) 
		clearTimeout(timerCheck); 		
	timerCheck = setTimeout("CheckInit(\""+field+"\", \""+value.replace(/\"/g,'\'')+"\")", 900); 			
}
function CheckInit (field, value) {
	xajax_AccountCheck(field, value);
}


function CheckRegisterField (field, value) {
	if (timerCheck != null) 
		clearTimeout(timerCheck); 		
	timerCheck = setTimeout("CheckRegisterInit(\""+field+"\", \""+value.replace(/\"/g,'\'')+"\")", 900); 			
}
function CheckRegisterInit (field, value) {
	xajax_RegisterCheck(field, value);
}


function CheckFieldApp (app, field) {	
	if (timerCheck != null) 
		clearTimeout(timerCheck); 		
	timerCheck = setTimeout("CheckInitApp(\""+app+"\", \""+field+"\")", 900); 			
}
function CheckInitApp (app, field) {
	setTimeout("xajax_Check_"+app+"(xajax.getFormValues('form_main'), \""+field+"\")", 0);
}



function CheckFieldAppK (kennung, app, field) {	
	if (timerCheck != null) 
		clearTimeout(timerCheck); 		
	timerCheck = setTimeout("CheckInitAppK(\""+kennung+"\", \""+app+"\", \""+field+"\")", 900); 			
}
function CheckInitAppK (kennung, app, field) {
	setTimeout("xajax_Check_"+app+"(\""+kennung+"\", xajax.getFormValues('form_main'), \""+field+"\")", 0);
}



function ChangeAdminModule (script, attribute_1, attribute_2, attribute_3, attribute_4) {	
	if (timerCheck != null) 
		clearTimeout(timerCheck); 		
	xajax_ShowAdminModuleLoading();
	timerCheck = setTimeout("ChangeAdminModuleInit(\""+script+"\", \""+attribute_1+"\", \""+attribute_2+"\", \""+attribute_3+"\", \""+attribute_4+"\")", 400); 			
}
function ChangeAdminModuleInit (script, attribute_1, attribute_2, attribute_3, attribute_4) {
	setTimeout("xajax_"+script+"(\""+attribute_1+"\", \""+attribute_2+"\", \""+attribute_3+"\", \""+attribute_4+"\")", 0);
}