function updateDatePullDownMenu(objForm, fieldName) {
	var pdmDays = fieldName + "_days";
	var pdmMonths = fieldName + "_months";
	var pdmYears = fieldName + "_years";

	time = new Date(objForm[pdmYears].options[objForm[pdmYears].selectedIndex].text, objForm[pdmMonths].options[objForm[pdmMonths].selectedIndex].value, 1);

	time = new Date(time - 86400000);

	var selectedDay = objForm[pdmDays].options[objForm[pdmDays].selectedIndex].text;
	var daysInMonth = time.getDate();

	for (var i=0; i<objForm[pdmDays].length; i++) {
		objForm[pdmDays].options[0] = null;
	}

	for (var i=0; i<daysInMonth; i++) {
		objForm[pdmDays].options[i] = new Option(i+1);
	}

	if (selectedDay <= daysInMonth) {
		objForm[pdmDays].options[selectedDay-1].selected = true;
	} else {
		objForm[pdmDays].options[daysInMonth-1].selected = true;
	}
}

function rowOverEffect(object) {
	if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
	if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

function popupWindow(url, name, params) {
	window.open(url, name, params).focus();
}

function redir(url) {
	window.location = url;
}

// Add flash video clip to page...
function flvvid(fvid, width, height) {
	if(document.getElementById) {
		document.write('<div align="center"><div class="fvid">');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="FLVPlayer">');
		document.write('<param name="movie" value="docs/flash/FLVPlayer_Progressive.swf" />');
		document.write('<param name="salign" value="lt" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="scale" value="noscale" />');
		document.write('<param name="FlashVars" value="&skinName=docs/flash/clearSkin_2&streamName=vids/' + fvid + '&autoPlay=true&autoRewind=false" />');
		document.write('<embed src="docs/flash/FLVPlayer_Progressive.swf" flashvars="&skinName=docs/flash/clearSkin_2&streamName=vids/' + fvid + '&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="'+width+'" height="'+height+'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
		document.write('</div></div>');
	}
}

// Add the DarkXP Flash Player...
function darkFLVVid(src) {
	if (document.getElementById) {
		var flgAuto = (window.ActiveXObject) ? "0" : "1";

		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0/#version=7,0,0,0/default.htm" width="320" height="240" id="DarkVids" align="middle" VIEWASTEXT>');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="docs/flash/darkVids.swf?autoLoopVideo='+flgAuto+'&autoPlayVideo='+flgAuto+'&initFile=vids/' + src + '.flv" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="#333333" />');
		document.write('<embed src="docs/flash/darkVids.swf?autoLoopVideo='+flgAuto+'&autoPlayVideo='+flgAuto+'&initFile=vids/' + src + '.flv" quality="high" bgcolor="#000000" width="320" height="240" name="DarkVids" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
}