<!--
function doBlink() {
  // Blink, Blink, Blink...
  var blink = document.all.tags("BLINK")
  for (var i=0; i < blink.length; i++)
    blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
  // Make sure it is IE4
  if (document.all)
    setInterval("doBlink()",1000)
}

window.onload = startBlink;

//*******************************************************************
//*******************************************************************

function FormSubmit(where,target) {
		document.forms[0].action=where;
		document.forms[0].target=target;
		document.forms[0].submit();
}
    
//*******************************************************************

function FormSubmitReload(where,target,timer) {
		document.forms[0].action=where;
		document.forms[0].target=target;
		document.forms[0].submit();
		setTimeout('top.opener.location.reload()',timer);
}
    
//*******************************************************************

function FormSubmitReloadClosed(where,target,timer) {
		document.forms[0].action=where;
		document.forms[0].target=target;
		document.forms[0].submit();
		setTimeout('top.opener.location.reload()',timer);
		setTimeout('top.close()',timer);
}

//*******************************************************************
var now = new Date()
var cal = new CalendarPopup("caldiv");

cal.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal.setReturnFunction("setMultipleValues");

function setMultipleValues(y,m,d) {
	document.forms[0].cal_year.value=y;
	document.forms[0].cal_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal_day.options.length; i++) {
		if (document.forms[0].cal_day.options[i].value==d) {
			document.forms[0].cal_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cal1 = new CalendarPopup("caldiv");

cal1.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal1.setReturnFunction("setMultipleValues1");

function setMultipleValues1(y,m,d) {
	document.forms[0].cal1_year.value=y;
	document.forms[0].cal1_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal1_day.options.length; i++) {
		if (document.forms[0].cal1_day.options[i].value==d) {
			document.forms[0].cal1_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cal2 = new CalendarPopup("caldiv");

cal2.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal2.setReturnFunction("setMultipleValues2");

function setMultipleValues2(y,m,d) {
	document.forms[0].cal2_year.value=y;
	document.forms[0].cal2_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal2_day.options.length; i++) {
		if (document.forms[0].cal2_day.options[i].value==d) {
			document.forms[0].cal2_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cal3 = new CalendarPopup("caldiv");

cal3.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal3.setReturnFunction("setMultipleValues3");

function setMultipleValues3(y,m,d) {
	document.forms[0].cal3_year.value=y;
	document.forms[0].cal3_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal3_day.options.length; i++) {
		if (document.forms[0].cal3_day.options[i].value==d) {
			document.forms[0].cal3_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cal4 = new CalendarPopup("caldiv");

cal4.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal4.setReturnFunction("setMultipleValues4");

function setMultipleValues4(y,m,d) {
	document.forms[0].cal4_year.value=y;
	document.forms[0].cal4_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal4_day.options.length; i++) {
		if (document.forms[0].cal4_day.options[i].value==d) {
			document.forms[0].cal4_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cal5 = new CalendarPopup("caldiv");

cal5.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal5.setReturnFunction("setMultipleValues5");

function setMultipleValues5(y,m,d) {
	document.forms[0].cal5_year.value=y;
	document.forms[0].cal5_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal5_day.options.length; i++) {
		if (document.forms[0].cal5_day.options[i].value==d) {
			document.forms[0].cal5_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cal6 = new CalendarPopup("caldiv");

cal6.setCssPrefix("CAL");
//cal.showNavigationDropdowns();
cal6.setReturnFunction("setMultipleValues6");

function setMultipleValues6(y,m,d) {
	document.forms[0].cal6_year.value=y;
	document.forms[0].cal6_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cal6_day.options.length; i++) {
		if (document.forms[0].cal6_day.options[i].value==d) {
			document.forms[0].cal6_day.selectedIndex=i;
		}
	}
}

//*******************************************************************
var cxi = new CalendarPopup("caldiv");

cxi.offsetX = 30;
cxi.offsetY = -100;
cxi.setCssPrefix("CAL");
cxi.showNavigationDropdowns();
cxi.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
cxi.setReturnFunction("setMultipleValuesv");

function setMultipleValuesv(y,m,d) {
	document.forms[0].cxi_year.value=y;
	document.forms[0].cxi_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxi_day.options.length; i++) {
		if (document.forms[0].cxi_day.options[i].value==d) {
			document.forms[0].cxi_day.selectedIndex=i;
		}
	}
}
	
var cxo = new CalendarPopup("caldiv");

cxo.offsetX = 30;
cxo.offsetY = -150;
cxo.setCssPrefix("CAL");
cxo.showNavigationDropdowns();
cxo.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
cxo.setReturnFunction("setMultipleValuesw");

function setMultipleValuesw(y,m,d) {
	document.forms[0].cxo_year.value=y;
	document.forms[0].cxo_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxo_day.options.length; i++) {
		if (document.forms[0].cxo_day.options[i].value==d) {
			document.forms[0].cxo_day.selectedIndex=i;
		}
	}
}

//*******************************************************************
var cxa = new CalendarPopup("caldiv");

cxa.setCssPrefix("CAL");
cxa.setReturnFunction("setMultipleValuesa");

function setMultipleValuesa(y,m,d) {
	document.forms[0].cxa_year.value=y;
	document.forms[0].cxa_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxa_day.options.length; i++) {
		if (document.forms[0].cxa_day.options[i].value==d) {
			document.forms[0].cxa_day.selectedIndex=i;
		}
	}
}
	
var cxb = new CalendarPopup("caldiv");

cxb.setCssPrefix("CAL");
cxb.setReturnFunction("setMultipleValuesb");

function setMultipleValuesb(y,m,d) {
	document.forms[0].cxb_year.value=y;
	document.forms[0].cxb_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxb_day.options.length; i++) {
		if (document.forms[0].cxb_day.options[i].value==d) {
			document.forms[0].cxb_day.selectedIndex=i;
		}
	}
}

//*******************************************************************
var cxc = new CalendarPopup("caldiv");

cxc.setCssPrefix("CAL");
cxc.setReturnFunction("setMultipleValuesc");

function setMultipleValuesc(y,m,d) {
	document.forms[0].cxc_year.value=y;
	document.forms[0].cxc_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxc_day.options.length; i++) {
		if (document.forms[0].cxc_day.options[i].value==d) {
			document.forms[0].cxc_day.selectedIndex=i;
		}
	}
}
	
var cxd = new CalendarPopup("caldiv");

cxd.setCssPrefix("CAL");
cxd.setReturnFunction("setMultipleValuesd");

function setMultipleValuesd(y,m,d) {
	document.forms[0].cxd_year.value=y;
	document.forms[0].cxd_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxd_day.options.length; i++) {
		if (document.forms[0].cxd_day.options[i].value==d) {
			document.forms[0].cxd_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cxe = new CalendarPopup("caldiv");

cxe.setCssPrefix("CAL");
cxe.setReturnFunction("setMultipleValuese");

function setMultipleValuese(y,m,d) {
	document.forms[0].cxe_year.value=y;
	document.forms[0].cxe_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxe_day.options.length; i++) {
		if (document.forms[0].cxe_day.options[i].value==d) {
			document.forms[0].cxe_day.selectedIndex=i;
		}
	}
}
	
var cxf = new CalendarPopup("caldiv");

cxf.setCssPrefix("CAL");
cxf.setReturnFunction("setMultipleValuesf");

function setMultipleValuesf(y,m,d) {
	document.forms[0].cxf_year.value=y;
	document.forms[0].cxf_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxf_day.options.length; i++) {
		if (document.forms[0].cxf_day.options[i].value==d) {
			document.forms[0].cxf_day.selectedIndex=i;
		}
	}
}
//*******************************************************************
var cxg = new CalendarPopup("caldiv");

cxg.setCssPrefix("CAL");
cxg.setReturnFunction("setMultipleValuesg");

function setMultipleValuesg(y,m,d) {
	document.forms[0].cxg_year.value=y;
	document.forms[0].cxg_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxg_day.options.length; i++) {
		if (document.forms[0].cxg_day.options[i].value==d) {
			document.forms[0].cxg_day.selectedIndex=i;
		}
	}
}
	
var cxh = new CalendarPopup("caldiv");

cxh.setCssPrefix("CAL");
cxh.setReturnFunction("setMultipleValuesh");

function setMultipleValuesh(y,m,d) {
	document.forms[0].cxh_year.value=y;
	document.forms[0].cxh_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].cxh_day.options.length; i++) {
		if (document.forms[0].cxh_day.options[i].value==d) {
			document.forms[0].cxh_day.selectedIndex=i;
		}
	}
}

//*******************************************************************
var anfang = new CalendarPopup("caldiv");

anfang.setCssPrefix("CAL");
//anfang.showNavigationDropdowns();
anfang.setReturnFunction("setMultipleValuesx");

function setMultipleValuesx(y,m,d) {
	document.forms[0].anfang_year.value=y;
	document.forms[0].anfang_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].anfang_day.options.length; i++) {
		if (document.forms[0].anfang_day.options[i].value==d) {
			document.forms[0].anfang_day.selectedIndex=i;
		}
	}
}
	
var ende = new CalendarPopup("caldiv");

ende.setCssPrefix("CAL");
//ende.showNavigationDropdowns();
ende.setReturnFunction("setMultipleValuesy");

function setMultipleValuesy(y,m,d) {
	document.forms[0].ende_year.value=y;
	document.forms[0].ende_month.selectedIndex=m;
	for (var i=0; i<document.forms[0].ende_day.options.length; i++) {
		if (document.forms[0].ende_day.options[i].value==d) {
			document.forms[0].ende_day.selectedIndex=i;
		}
	}
}

//*******************************************************************

function getDateString(y_obj,m_obj,d_obj) {
	var y = y_obj.options[y_obj.selectedIndex].value;
	var m = m_obj.options[m_obj.selectedIndex].value;
	var d = d_obj.options[d_obj.selectedIndex].value;
	if (y=="" || m=="") { return null; }
	if (d=="") { d=1; }
	return str= y+'-'+m+'-'+d;
}


//*******************************************************************
//*******************************************************************

function openwindow(url,width,height) {
	
	var option = 'width='+width+',height='+height;
	window.open(url,'',option+',screenX=-300,screenY=10,dependent=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no')
}	

//*******************************************************************
function CountLeft(field, count, max) { 

if (field.value.length > max) 
	field.value = field.value.substring(0, max);
else 
	count.value = max - field.value.length; 
} 

//*******************************************************************
// -->
