//--- Browser Version ---

function menueoben()
        {
document.write('<strong><a href="index.html" class="white n">Home</a></strong><img src="images/spacer.gif" alt="" width="45" height="1">');
document.write('<strong><a href="km1.html" class="white n">Mannschaften</a></strong><img src="images/spacer.gif" alt="" width="30" height="1">');
document.write('<strong><a href="http://www.fussballoesterreich.at/fv/datenserviceVerein/selectDatenservice.pu?saison_id=100066|643871963196837500&awVerband=ST_&selectionInfo=100095|160862394797457166,100066|560151649605149150,null,-1,0" target="_blank" class="white n">Tabellen</a></strong>');
document.write('<img src="images/spacer.gif" alt="" width="50" height="1">');
document.write('<strong><a href="verein.html" class="white n">Verein</a></strong><img src="images/spacer.gif" alt="" width="49" height="1">');
document.write('<strong><a href="guestbook.html" class="white n">G&auml;stebuch</a></strong><img src="images/spacer.gif" alt="" width="46" height="1">');
document.write('<strong><a href="galerie.html" class="white n">Galerie</a></strong><img src="images/spacer.gif" alt="" width="64" height="1">');
document.write('<strong><a href="links.html" class="white n">Links</a></strong><img src="images/spacer.gif" alt="" width="55" height="1">');
document.write('<strong><a href="sponsoren.html" class="white n">Sponsoren</a></strong>');
}
function menueunten()
        {
document.write('<a href="http://www.gefluegel-draxler.at" target="_blank">');
document.write('<img src="images/log.jpg" width="138" height="56" border="0"></a>');
document.write('<img src="images/px6.gif" width="1" height="56" border="0">');
document.write('<a href="http://www.zweiger.at/index.cfm?fuseaction=intro" target="_blank">');
document.write('<img src="images/log_1.jpg" width="106" height="56" border="0"></a>');
document.write('<img src="images/px6.gif" width="1" height="56" border="0">');
document.write('<a href="http://www.raiffeisen.at/eBusiness/rai_template1/1021844611154-NA-NA-NA-1-NA.html" target="_blank">');
document.write('<img src="images/log_2.jpg" width="161" height="56" border="0"></a>');
document.write('<img src="images/px6.gif" width="1" height="56" border="0">');
document.write('<a href="http://www.mooskirchen.at/" target="_blank">');
document.write('<img src="images/log_3.jpg" width="57" height="56" border="0"></a>');
document.write('<img src="images/px6.gif" width="1" height="56" border="0">');
document.write('<a href="http://www.richtig-guat.at/" target="_blank">');
document.write('<img src="images/log_4.jpg" width="124" height="56" border="0"></a>');
document.write('<img src="images/px6.gif" width="1" height="56" border="0">');
document.write('<a href="http://www.gothailandtours.com/" target="_blank">');
document.write('<img src="images/log_5.jpg" width="77" height="56" border="0"></a>');


}
function menuearchiv()
     {

document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><span class="a">09/10</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv90.html" class="a">KMI </a>'); 
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="2archiv90.html" class="a">KMII </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="#" class="a">#??#</a><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><span class="a">08/09</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv89.html" class="a">KMI </a>'); 
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="2archiv89.html" class="a">KMII </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="news2008.html" class="a">2008</a><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><span class="a">07/08</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv78.html" class="a">KMI </a>'); 
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="2archiv78.html" class="a">KMII </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="#" class="a">#??#</a><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><span class="a">06/07</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv67.html" class="a">KMI </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="2archiv67.html" class="a">KMII </a>');     
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="#" class="a">#??#</a><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <span class="a">05/06</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv56.html" class="a">KMI </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="2archiv56.html" class="a">KMII </a>');     
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="#" class="a"></a><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <span class="a">04/05</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv45.html" class="a">KMI </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="2archiv45.html" class="a">KMII </a>');     
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="#" class="a"></a><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <span class="a">03/04</span>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="1archiv34.html" class="a">KMI </a>');
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <a href="#" class="a">KMII </a>');     
document.write('<img src="images/spacer.gif" alt="" width="10" height="1"> <br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
}
function menuebericht()
     {
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="km1.html" class="a">KMI </a>');
document.write('<img src="images/spacer.gif" alt="" width="50" height="1"><a href="1spb89.html" class="a">KMI</a>');
document.write('<img src="images/spacer.gif" alt="" width="40" height="1">');
bx=""
bx=bx+"'http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/KM?key=05DC1B607', 'details', 'scrollbars=yes,width=765,height=450,left=370,top=310'";
document.write('<a href="http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/KM?key=05DC1B607" target="_blank" onClick="window.open('+bx+');return false;">KMI</a></strong><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="km2.html" class="a">KMII</a>');
document.write('<img src="images/spacer.gif" alt="" width="45" height="1"> <a href="2spb89.html" class="a">KMII</a>');
document.write('<img src="images/spacer.gif" alt="" width="35" height="1">');
bx=""                          
bx=bx+"'http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/km%20II?key=05DC1B607', 'details', 'scrollbars=yes,width=765,height=450,left=370,top=310'";
document.write('<a href="http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/km%20II?key=05DC1B607" target="_blank" onClick="window.open('+bx+');return false;">KMII</a></strong><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="u19.html" class="a">U17</a>');
document.write('<img src="images/spacer.gif" alt="" width="50" height="1"> <a href="#" class="a">U17</a>'); 
document.write('<img src="images/spacer.gif" alt="" width="40" height="1">');
bx=""
bx=bx+"'http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/U17 A?key=05DC1B607', 'details', 'scrollbars=yes,width=765,height=450,left=370,top=310'";
document.write('<a href="http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/U17 A?key=05DC1B607" target="_blank" onClick="window.open('+bx+');return false;">U17</a></strong><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="u15.html" class="a">U15</a>');
document.write('<img src="images/spacer.gif" alt="" width="50" height="1"> <a href="#" class="a">U15</a>'); 
document.write('<img src="images/spacer.gif" alt="" width="40" height="1">');
bx=""
bx=bx+"'http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/U15 B?key=05DC1B607', 'details', 'scrollbars=yes,width=765,height=450,left=370,top=310'";
document.write('<a href="http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/U15 B?key=05DC1B607" target="_blank" onClick="window.open('+bx+');return false;">U15</a></strong><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="u13.html" class="a">U13</a>');
document.write('<img src="images/spacer.gif" alt="" width="50" height="1"> <a href="#" class="a">U13</a>'); 
document.write('<img src="images/spacer.gif" alt="" width="40" height="1">');
bx=""
bx=bx+"'http://www.fussballoesterreich.at/fv/spielplan/ST/2009-2010%20ST/8253/F--USV Draxler Mooskirchen U 13', 'details', 'scrollbars=yes,width=765,height=450,left=370,top=310'";
document.write('<a href="http://www.fussballoesterreich.at/fv/spielplan/ST/2009-2010%20ST/8253/F--USV Draxler Mooskirchen U 13" target="_blank" onClick="window.open('+bx+');return false;">U13</a></strong><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="u11.html" class="a">U11</a>');
document.write('<img src="images/spacer.gif" alt="" width="50" height="1"> <a href="#" class="a">U11</a>'); 
document.write('<img src="images/spacer.gif" alt="" width="40" height="1">');
bx=""
bx=bx+"'http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/USV Draxler Mooskirchen?key=05DC1B607', 'details', 'scrollbars=yes,width=765,height=450,left=370,top=310'";
document.write('<a href="http://www.fussballoesterreich.at/fv/spielplan/ST/2010-2011%20ST/8253/USV Draxler Mooskirchen?key=05DC1B607" target="_blank" onClick="window.open('+bx+');return false;">U11</a></strong><br>');
document.write('<img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="u10.html" class="a">U 8/9/10</a></strong>');

document.write('<br><img src="images/spacer.gif" alt="" width="1" height="11"><br>');
document.write('<img src="images/a1.gif" alt="" style="margin-right:6px; "> <strong><a href="damen.html" class="a">Damen</a>');
document.write('<img src="images/spacer.gif" alt="" width="30" height="1"> <a href="dspb89.html" class="a">Damen</a>'); 
document.write('<img src="images/spacer.gif" alt="" width="20" height="1">');

bx=""
bx=bx+"'http://www.fussballoesterreich.at/stfv/resources/219141690066143162_568023186769535987.pdf', 'details', 'scrollbars=yes,width=765,height=950,left=370,top=110'";
document.write('<a href="http://www.fussballoesterreich.at/stfv/resources/219141690066143162_568023186769535987.pdf" target="_blank" onClick="window.open('+bx+');return false;">Damen</a></strong><br>');

}
function inputspieler()
        {
var spieler = new Array();
var spgew = new Array();
var zufz = new Array();
    spieler[1]="ajtnik.jpg"
    spieler[2]="nocker-m.jpg"
    spieler[3]="wolf.jpg"
    spieler[4]="ragolic.jpg"
    spieler[5]="guggi.jpg"
    spieler[6]="corner.JPG"
    spieler[7]="rothschedl-w.jpg"
    spieler[8]="strutz.JPG"
    spieler[9]="chima.jpg"
    spieler[10]="ruppnig.jpg"
    spieler[11]="moises.jpg"
    spieler[12]="senekowitsch.jpg"
    spieler[13]="walch.JPG"
    spieler[14]="dietrich.jpg"
    spieler[15]="hofer.jpg"
    spieler[16]="hackl.jpg"
    spieler[17]="koenig.JPG"
    spieler[18]="tomes.jpg"
    spieler[19]="gschier-s.jpg"
    spieler[20]="stoehr.jpg"
    spieler[21]="reinbacher.jpg"
    spieler[22]="leopold.jpg"
    spieler[23]="hozanovic.jpg"
    spieler[24]="brunnegger.jpg"
    spieler[25]="altziebler.JPG"
    spieler[26]=""
    spgew[1]=05
    spgew[2]=02
    spgew[3]=00
    spgew[4]=07
    spgew[5]=05
    spgew[6]=06
    spgew[7]=04
    spgew[8]=07
    spgew[9]=07
    spgew[10]=07
    spgew[11]=07
    spgew[12]=00
    spgew[13]=07
    spgew[14]=06
    spgew[15]=06
    spgew[16]=06
    spgew[17]=06
    spgew[18]=00
    spgew[19]=00
    spgew[20]=06
    spgew[21]=06
    spgew[22]=00
    spgew[23]=00
    spgew[24]=00
    spgew[25]=00
    spgew[26]=00
 xz=1;xa=1;
 while (xa<=25) {
   xb=spgew[xa]
   xc=1
   while (xc<=xb) {
     zufz[xz]=xa
     xz++
     xc++
   }
 xa++
 }
  zuf1 = Math.floor(Math.random() * 100 + 1)
 x1=zufz[zuf1]
 x3=0
 while (x3<=100) {
   zuf2 = Math.floor(Math.random() * 100 + 1)
   x2=zufz[zuf2]
   if (x1<x2) {x3=100};
   if (x1>x2) {x3=100};
   x3++
 }
bx=""
bx=bx+"'f-km1herbst2009.html', 'details', 'scrollbars=yes,width=650,height=550,left=400,top=150'"
document.write('<td valign="top"><div style="margin:3px 8px 1px 30px;">');
document.write('<img border="0" src="km1/'+spieler[x1]+'" width="113" height="151">');
document.write('<a href="f-km1herbst2009.html" target="_blank" onClick="window.open('+bx+');return false;">.<img border="0" src="km1/km1_2009kl.jpg" width="201" height="151"></a>.');
document.write('<img border="0" src="km1/'+spieler[x2]+'" width="113" height="151"><br></div></td>');
  
}
function inputsponsoren()
        {
var splogo = new Array();
    var height1 = new Array();
    var adresse = new Array();
    var gew = new Array();
    var zufz = new Array();
    splogo[1]="1.png"
	splogo[2]="3.jpg"
	splogo[3]="4.jpg"
	splogo[4]="7.bmp"
	splogo[5]="6.jpg"
	splogo[6]="8.png"
	height1[1]=96
	height1[2]=67
	height1[3]=53
	height1[4]=70
	height1[5]=52
	height1[6]=67
	adresse[1]="gefluegel-draxler.at"
	adresse[2]="richtig-guat.at/"
	adresse[3]="petermax.at/"
	adresse[4]="zweiger.at/index.cfm?fuseaction=intro"
	adresse[5]="raiffeisen.at/eBusiness/rai_template1/1021844611154-NA-NA-NA-1-NA.html"
	adresse[6]="ggw.at"
    gew[1]=08
    gew[2]=36
    gew[3]=00
    gew[4]=27
    gew[5]=08
    gew[6]=21
 xz=1;xa=1;
 while (xa<=6) {
   xb=gew[xa]
   xc=1
   while (xc<=xb) {
     zufz[xz]=xa
     xz++
     xc++
   }
 xa++
 }   
 zuf1 = Math.floor(Math.random() * 100 + 1)
 x1=zufz[zuf1]
 x3=0
 while (x3<=100) {
   zuf2 = Math.floor(Math.random() * 100 + 1)
   x2=zufz[zuf2]
   if (x1<x2) {x3=100};
   if (x1>x2) {x3=100};
   x3++
 }
 document.write('<td><a href="http://www.'+adresse[x1]+'" target="_blank"> <img src="splogos/'+splogo[x1]+'" width="150" height="'+height1[x1]+'" alt="" border="0" style="margin:4px 2px 2px 2px;"></a></td></tr>');
 document.write('<tr><td><a href="http://www.'+adresse[x2]+'" target="_blank"> <img src="splogos/'+splogo[x2]+'" width="150" height="'+height1[x2]+'" alt="" border="0" style="margin:4px 2px 2px 2px;"></a></td></tr>');
}                                    
function inputlogo()
        {
        var jetzt = new Date(); 
                    var tt = jetzt.getDate();
                    x1=4
                    if (tt==10) {x1=5};
                    if (tt==20) {x1=5};
                    if (tt==30) {x1=5};
                    document.write('<td height="134" valign="top" style="padding-left:17px"><img src="images/bg_head_raika'+x1+'.jpg" width="812" height="133" border="0"></td>');
        }

function browserversion()
	{
	if(explorer())
		{
		nMSIE = navigator.userAgent.indexOf("MSIE ");
		if(nMSIE != -1)
			return parseInt(navigator.userAgent.charAt(nMSIE+5), 10);
		else
			return 3;
		}
	else
		{
		return parseInt(navigator.appVersion, 10);
		}
	}

//--- Internet Explorer ---
function explorer()
	{
	if(navigator.appName.indexOf("Microsoft") != -1)
		return true;
	return false;
	}

//--- Netscape Navigator ---
function netscape()
	{
	if(navigator.appName.indexOf("Netscape") != -1)
		return true;
	return false;
	}

//--- Macintosh ---
function macintosh()
	{
	if(navigator.userAgent.indexOf("Mac") != -1)
		return true;
	return false;
	}

//--- Layer Support pruefen ---
function layersupport()
	{
	if((explorer()) && (browserversion() >= 4) && (document.all))
		return true;

	if((netscape()) && (browserversion() >= 4) && (document.layers))
		return true;

	return false;
	}

//--- Breite eines Frames ---
function framewidth(docFrame, nDefault)
	{
	if((explorer()) && (browserversion() >= 4))
		return docFrame.window.document.body.clientWidth;
	if((netscape()) && (browserversion() >= 4))
		return docFrame.window.innerWidth;

	return nDefault;
	}

//--- Höhe eines Frames ---
function frameheight(docFrame, nDefault)
	{
	if((explorer()) && (browserversion() >= 4))
		return docFrame.window.document.body.clientHeight;
	if((netscape()) && (browserversion() >= 4))
		return docFrame.window.innerHeight;

	return nDefault;
	}

//--- Formular in Layer Browserspezifisch ausgeben ---
function getform(strLayerName, strFormName)
	{
	if((netscape()) && (browserversion() < 5))
		return eval(strLayerName + ".document." + strFormName);
	else if((explorer()) || ((netscape()) && (browserversion() >= 5)))
		return eval("document." + strFormName);
	else
		return eval("document." + strFormName);
	}

//--- Option einer Selectliste selektieren ---
function selectOption(strSelect, strValue)
	{
	for(i = 0; i < eval(strSelect + '.length'); i++)
		{
		if(eval(strSelect + '.options[i].value') == strValue)
			return eval(strSelect + '.options[i].selected = true;');
		}
	}

//--- Trim-Funktion ---
function trimSpace(strExpression)
	{
	//--- Zu Beginn und am Ende der übergebenen Zeichenkette ---
	//--- werden alle Leerzeichen entfernt ---
	return strExpression.replace(/^\s+/g, '').replace(/\s+$/g, '');
	}

//--- Eine Zahl auf 2 Komastellen runden ---
function roundZweiKommastellen(nZahl)
	{
	return Math.round(nZahl * 100) / 100
	}

//--- Slash wird in ein Datum eingefügt ---
function slashDate(dDate)
	{
	// Datum wurde ohne Slash eingegeben, zB.: 20020528
	if((dDate.indexOf("/") == -1) && (dDate.length == 8))
		{
		nYear = dDate.substring(0,4);
		nMonth =  dDate.substring(4,6);
		nDay =  dDate.substring(6,8);

		eval(dSlashdate = nYear + "/" + nMonth + "/" + nDay);
		return dSlashdate;
		}
	// Datum wurde korrekt mit Slash eingegeben
	else
		{
		return dDate;
		}
	}

//--- Checkdate ---
function checkDate(objName)
{
	var strDate;
	var strTime;
	var strDateArray;
	var strDay;
	var strMonth;
	var strYear;
	var strHour;
	var strMinute;
	var intDay;
	var intMonth;
	var intYear;
	var intHour;
	var intMinute;
	var booFound = false;
	var datefield = objName;
	var strSeparatorArray = new Array("-"," ","/",".");
	var intElementNr;
	var strMonthArray = new Array(12);
	var value;
	
	strMonthArray[0] = "Jan";
	strMonthArray[1] = "Feb";
	strMonthArray[2] = "Mar";
	strMonthArray[3] = "Apr";
	strMonthArray[4] = "May";
	strMonthArray[5] = "Jun";
	strMonthArray[6] = "Jul";
	strMonthArray[7] = "Aug";
	strMonthArray[8] = "Sep";
	strMonthArray[9] = "Oct";
	strMonthArray[10] = "Nov";
	strMonthArray[11] = "Dec";

	if (datefield.value.indexOf(" ") != -1)
	{
		strDate = datefield.value.substring(0, datefield.value.indexOf(" "));
		strTime = datefield.value.substring(datefield.value.indexOf(" ") + 1);
	}
	else
	{
		strDate = datefield.value;
		strTime = "";
	}
	
	for (intElementNr = 0; intElementNr < strSeparatorArray.length; intElementNr++)
	{
		if (strDate.indexOf(strSeparatorArray[intElementNr]) != -1)
		{
			strDateArray = strDate.split(strSeparatorArray[intElementNr]);
			
			if (strDateArray.length != 3)
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
			else
			{
				strDay = strDateArray[0];
				strMonth = strDateArray[1];
				strYear = strDateArray[2];
			}
			
			booFound = true;
   		}
	}
	
	if (booFound == false)
	{
		if (strDate.length > 5)
		{
			strDay = strDate.substring(0, 2);
			strMonth = strDate.substring(2, 2);
			strYear = strDate.substring(4);
		}
		else
		{
			datefield.value = "";
			datefield.focus();
			return "";
		}
	}
	
	switch (strYear.length)
	{
		case 1:
			strYear = '200' + strYear;
			break;
			
		case 2:
			strYear = '20' + strYear;
			break;
			
		case 3:
			strYear = '2' + strYear;
			break;
			
		case 4:
			break;
			
		default:
			strYear = strYear.substring(0, 4);
			break;
	}
	
	intDay = parseInt(strDay, 10);
	
	if (isNaN(intDay))
	{
		datefield.value = "";
		datefield.focus();
		return "";
	}
	
	intMonth = parseInt(strMonth, 10);
	
	if (isNaN(intMonth))
	{
		for (i = 0; i < 12; i++)
		{
			if (strMonth.toUpperCase() == strMonthArray[i].toUpperCase())
			{
				intMonth = i + 1;
				strMonth = strMonthArray[i];
				i = 12;
			}
		}
		
		if (isNaN(intMonth))
		{
			datefield.value = "";
			datefield.focus();
			return "";
		}
	}
	
	intYear = parseInt(strYear, 10);
	
	if (isNaN(intYear))
	{
		datefield.value = "";
		datefield.focus();
		return "";
	}
	
	if (intMonth > 12 || intMonth < 1)
	{
		datefield.value = "";
		datefield.focus();
		return "";
	}
	
	if ((intMonth == 1 || intMonth == 3 || intMonth == 5 || intMonth == 7 || intMonth == 8 || intMonth == 10 || intMonth == 12) && (intDay > 31 || intDay < 1))
	{
		datefield.value = "";
		datefield.focus();
		return "";
	}
	
	if ((intMonth == 4 || intMonth == 6 || intMonth == 9 || intMonth == 11) && (intDay > 30 || intDay < 1))
	{
		datefield.value = "";
		datefield.focus();
		return "";
	}
	
	if (intMonth == 2)
	{
		if (intDay < 1)
		{
			datefield.value = "";
			datefield.focus();
			return "";
		}
		
		if (LeapYear(intYear) == true)
		{
			if (intDay > 29)
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
		}
		else
		{
			if (intDay > 28)
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
		}
	}

	if (intDay < 10)
	{
		strDay = '0' + intDay;
	}
	else
	{
		strDay = intDay;
	}
	
	if (intMonth < 10)
	{
		strMonth = '0' + intMonth;
	}
	else
	{
		strMonth = intMonth;
	}
	
	if (strTime != "")
	{
		if (strTime.indexOf(":") != -1)
		{
			strHour = strTime.substring(0, strTime.indexOf(":"));
			strMinute = strTime.substring(strTime.indexOf(":") + 1);
			
			if (strHour.length == 0)
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
			
			if (strHour.length > 2)
			{
				strHour = strHour.substring(0, 2);
			}
			
			intHour = parseInt(strHour, 10);
			
			if (isNaN(intHour))
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
			
			if (strMinute.length == 0)
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
			
			if (strMinute.length > 2)
			{
				strMinute = strMinute.substring(0, 2);
			}
			
			intMinute = parseInt(strMinute, 10);
			
			if (isNaN(intMinute))
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
			
			if (intHour > 23 || intMinute > 59)
			{
				datefield.value = "";
				datefield.focus();
				return "";
			}
			
			if (intHour < 10)
			{
				strHour = '0' + intHour;
			}
			
			if (intMinute < 10)
			{
				strMinute = '0' + intMinute;
			}
			
			value = strDay + "." + strMonth + "." + strYear + " " + strHour + ":" + strMinute;
			datefield.value = strDay + "." + strMonth + "." + strYear + " " + strHour + ":" + strMinute;
		}
		else
		{
			value = strDay + "." + strMonth + "." + strYear;
			datefield.value = strDay + "." + strMonth + "." + strYear;
		}
	}
	else
	{
		datefield.value = strDay + "." + strMonth + "." + strYear;
	}
	return datefield.value;
}
