function openLink(URI){
win = window.open(URI,"secWin","width=800,height=600,left=100,scrollbars=yes,resizable=yes,location=yes");
win.focus;
}
function oeffnen(url, width, height, Varname,WindowName,scrollbarsasvar) {
	if(WindowName=='')
		WindowName='NewWindow';
	if(scrollbarsasvar==undefined || scrollbarsasvar=='')
		WindowScrollbars='no';
	else
		WindowScrollbars='yes';
	var win=window.open(url,WindowName,'width=' + width + ',height=' + height + ',resizable=0,scrollbars='+ WindowScrollbars +',menubar=no,status=no,left=50,top=50');
	win.OpenerWindow = this;
}
function FieldIsInt(Field,AlowComma)
{
	var i=0;
	if(AlowComma==1)
		CheckString="1234567890,.";
	else
		CheckString="1234567890";		
	while(i<Field.value.length)
		{
		if(InStr(CheckString,Field.value.substr(i,1))==-1)
			{
			alert('Bitte nur Zahlen eingeben.')
			Field.value="";
			break;
			}
		i++;
		}
}
function InStr(strSearch, charSearchFor)
{
	for (i=0; i < strSearch.length; i++)
	{
	    if (charSearchFor == strSearch.substr(i,1))
	    {
			return i;
	    }
	}
	return -1;
}
