function TasteGedrueckt (key) {
	if(key == '13')
		document.loginform.submit();
}

function TasteLosgelassen (key) {
	if(key == '13')
		document.loginform.submit();
}

	//when user select a different region or company, trigger this function, to reload companies and professions
	function changeRegionCompany(intPageID) {
		//indicate action is to reload search criteria according to region and company
		document.oview_job_search.action = "index.php?id=" + intPageID + "&strAction=jobSearch&action=reload";
		//submin to reload
		document.oview_job_search.submit();
	}

/******************************************************************************
 Function   : deleteConfirmation
 Arguments  : none
 Description: display a delete confirmation dialog
 Returns    : true / false 
 Templates  : -
 Date       : 2005-06-10
 last update:
 Author     : guolin(info@guolinsoft.com)
*******************************************************************************/
function deleteConfirmation(strDeleteContent) {
	//return value, takes value of '1' or '0'
	var returnValue;
	//ask user whether delete or not
	returnValue = window.showModalDialog('../admin/delete_dialog.php?strDeleteContent='+strDeleteContent,'width=250,height=150,dependent=yes,scrollbars=no,screenX=((screen.width / 2) - (520 / 2)),screenY=((screen.height / 2) - (250 / 2))');
	// returnValue==1 indicates user is sure about delete
	if (returnValue==1) return true;
	// otherwise, cancel delete
	return false;
}

/******************************************************************************
 Function   : deleteConfirmation
 Arguments  : none
 Description: display a delete confirmation dialog
 Returns    : true / false 
 Templates  : -
 Date       : 2005-06-10
 last update:
 Author     : guolin(info@guolinsoft.com)
*******************************************************************************/
function deleteConfirmationStudent(strDeleteContent) {
	//return value, takes value of '1' or '0'
	var returnValue;
	
	returnValue = window.confirm('Willst du \n\n' + strDeleteContent + '\n\nwirklich löschen?');
	
	return returnValue;
}
	
