function InsertDay()
{
	var i;
	document.write ("<option value=''>Day")
	for (i = 1; i < 32; i++) {
	    document.write ("<option value="+i+">"+i)
    } 
    return;
}	
	
function InsertMonth()
{
	var j;
	var WhichMonth;

	document.write ("<option value=''>Month")
				
	for (j = 1; j < 13; j++) {
	    switch (j)
	    {
			case 1: 
				WhichMonth = "JAN"
				break;
			case 2:
				WhichMonth = "FEB"
				break;
			case 3:
				WhichMonth = "MAR"
				break;		
			case 4:
				WhichMonth = "APR"
				break;		
			case 5:
				WhichMonth = "MAY"
				break;		
			case 6:
				WhichMonth = "JUN"
				break;		
			case 7:
				WhichMonth = "JUL"
				break;		
			case 8:
				WhichMonth = "AUG"
				break;		
			case 9:
				WhichMonth = "SEP"
				break;		
			case 10:
				WhichMonth = "OCT"
				break;		
			case 11:
				WhichMonth = "NOV"
				break;		
			case 12:
				WhichMonth = "DEC"
				break;		
	    }
	    document.write ("<option value="+j+">"+WhichMonth)    	    
    } 	
}
	
function InsertDOBYear()
{
	var k;
	var myDate = new Date();
		
	document.write ("<option value=''>Year")
				
	for (k = (myDate.getFullYear()-50); k < (myDate.getFullYear()-15); k++) {
	    document.write ("<option value="+k+">"+k)
    } 	
}

function InsertYear()
{
	var k;
	var myDate = new Date();
		
	document.write ("<option value=''>Year")
				
	for (k = (myDate.getFullYear()-50); k < (myDate.getFullYear()+1); k++) {
	    document.write ("<option value="+k+">"+k)
    } 	
}
	
function InsertApplicationDate()
{
	var myDate = new Date();
	var newDate;
		
	newDate = myDate.getDate() + "-" + myDate.getMonth() + "-" + myDate.getFullYear();
	document.write (newDate)
	return
}

