function ValidateDate(strDateFormat,strDateString,strFourYearDigits){} //used all over
function ResetListBox(o){
	for(var i = 0 ; i < o.options.length ; i++){
		o.options[i].selected = false
	}
}
function getCookie(strName){
	var s = document.cookie
	s = s.substring(s.indexOf(strName + "=") + strName.length + 1, s.length)
	s = (s.indexOf(";") != -1) ? s.substring(0, s.indexOf(";")) : s
	return s
}
function determineIfReviewed() {
	// Get query string ...
	var href = window.location.href;
	var qs = href.substring(href.indexOf("?"),href.length);

	// Get position of first parameter and if doesn't exist exit...
	var posFirst = qs.indexOf("&");
	if (posFirst == -1) {
		return false;
	}
	
	// Get position of second parameter and if doesn't exist exit ...
	var posSecond = qs.indexOf("&", posFirst+1);
	if (posSecond == -1) {	
        	return false;
	}
	
	// Get UNID ...
	var adminAction = qs.substring(posFirst+1,posSecond);
	var reviewUNID = qs.substring(posSecond+1,qs.length);

	// Open Quick Review Approval window ...
	if (reviewUNID !="") 
	{
		// If this is not approvals then ...
		if (adminAction == "review=true") {
			window.open(href.substring(0, href.toLowerCase().lastIndexOf(".nsf")+4) + '/frmContentReview?OpenForm&reviewUNID=' + reviewUNID,'','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=400,height=200'); 
			location.replace("?OpenDocument");
			}
	}
	return false;
}
