function changeDayName(fieldNo) {
		day = eval('document.simplesearch.day' + fieldNo + '.selectedIndex');
		month = eval('document.simplesearch.month' + fieldNo + '.value');
    	if (day != "" && month != "") {
			var monthYear = month.split(".");
			month = monthYear[1] - 1;
			date = new Date(monthYear[0], month, day);
			dayInWeek = date.getDay();
			dayNameAr = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
			eval ('document.simplesearch.dayname' + fieldNo + '.value = dayNameAr[dayInWeek]');
    	} else {
			eval ('document.simplesearch.dayname' + fieldNo + '.value = ""');
    	}
	}
	
	function OpenWindow(strZiel) {		
	    window.open(strZiel, strName, 'width='+intWidth+',height=150,scrollbars=no,resizablel');
	}
function hide(idTag) {
if(getElem('id',idTag,null)!=null){
	    if (DOM || MS)
		    getElem('id',idTag,null).style.display = 'none';
		if (NS)
		    getElem('id',idTag,null).display = 'none';
	}
	}

	function show(idTag) {
	if(getElem('id',idTag,null)!=null){
	    if (DOM || MS)
		    getElem('id',idTag,null).style.display = '';
		if (NS)
		    getElem('id',idTag,null).display = '';
	}
}
function hideCalendar(idTag) {
	    if (DOM || MS) {
		    getElem('id',idTag,null).style.display = 'none';
		}
		if (NS) {
		    getElem('id',idTag,null).display = 'none';
		}
	}
	
	// Pokazi kalendar
	function showCalendar(idTag) {
	    refreshMonth(idTag);
	    if (DOM || MS) {
		    getElem('id',idTag,null).style.display = '';
		}
		if (NS) {
		    getElem('id',idTag,null).display = '';
		}
	}








