var dialogWindow = null;
var theField = null;

function ShowDialog( aTheInput, aWithTime, aYear, aLang ) {
		  var wheight=(aWithTime>0 ? 290 : 270);
		  theField = document.getElementById(aTheInput);
		  dialogWindow=window.open("js/calendar4_popup_"+aLang+".htm?year="+aYear+"&withtime="+aWithTime,"MyDialog", "dependent=yes,menubar=no,location=no,resizable=no,width=350,height="+wheight+",toolbar=no,screenX=100,screeny=100" );

}

function Transfer( aTheValue ) {
			if( theField != null ) theField.value = aTheValue;

}

function ClearValue( aTheInput )
{
		  theField = document.getElementById(aTheInput);
		  theField.value=' ';
}