function doSubmit(){
	var beginDate, endDate, postDate, removeDate, appDeadline;
	var theForm = document.frmOppAdd;
	if (!validText(theForm.txtOppName,"Internship/Job",1,200,true) )return false;
	if (!validText(theForm.txtOppSponsor,"Sponsoring Organization",1,200,true) )return false;
	if (!validText(theForm.txaOppDescription,"Description",1,2000,true) )return false;
	if (!validRadio(theForm.optOppType,"Opportunity Type",true)) return false;
	if (!validText(theForm.txtOppContactLastName,"Contact Name or Organization Name",1,200,true) )return false;
	//Validation for Contact Name/Organization Name
	if (isEmpty(theForm.txtOppContactLastName.value)){
		//if (isEmpty(theForm.txtOppContactFirstName.value)){
			alert("Please provide Contact Name or Organization Name");
			theForm.txtOppContactLastName.focus();
			return false;
		//}
	}
	
	if (!validList(theForm.selOppContactPostDateMonth,"Date to post Announcement on site: Month",true) )return false;
	if (!validList(theForm.selOppContactPostDateDay,"Date to post Announcement on site: Day",true) )return false;
	if (!validList(theForm.selOppContactPostDateYear,"Date to post Announcement on site: Year",true) )return false;
	if (!validList(theForm.selOppContactRemoveDateMonth,"Date to Remove posting: Month",true) )return false;
	if (!validList(theForm.selOppContactRemoveDateDay,"Date to Remove posting: Day",true) )return false;
	if (!validList(theForm.selOppContactRemoveDateYear,"Date to Remove posting: Year",true) )return false;
	if (!validEmail(theForm.txtOppContactEmail,"Email",false) )return false;
	
	//Validation for the contact information
	if (isEmpty(theForm.txtOppContactStreet.value)  && isEmpty(theForm.txtOppContactphone.value) && 		isEmpty(theForm.txtOppContactFax.value) && isEmpty(theForm.txtOppContactEmail.value)){
			alert("Please provide contact information: Address, Phone, FAX or E-mail");
			theForm.txtOppContactStreet.focus();
			return false;
		}
	
	beginDate = theForm.selOppBeginMonth.options[theForm.selOppBeginMonth.selectedIndex].value +"/" + theForm.selOppBeginDay.options[theForm.selOppBeginDay.selectedIndex].value  + "/" + theForm.selOppBeginYear.options[theForm.selOppBeginYear.selectedIndex].value ;
	endDate = theForm.selOppEndMonth.options[theForm.selOppEndMonth.selectedIndex].value +"/" + theForm.selOppEndDay.options[theForm.selOppEndDay.selectedIndex].value + "/" + theForm.selOppEndYear.options[theForm.selOppEndYear.selectedIndex].value;
	appDeadline = theForm.selOppAppDeadlineMonth.options[theForm.selOppAppDeadlineMonth.selectedIndex].value +"/" + theForm.selOppAppDeadlineDay.options[theForm.selOppAppDeadlineDay.selectedIndex].value + "/" + theForm.selOppAppDeadlineYear.options[theForm.selOppAppDeadlineYear.selectedIndex].value;
	
	//Validation for the begin date to be less then the end date
//	if (!checkDate(beginDate)) {
//		if (checkDate(endDate)) {
//			alert("Please specify the Start Date") 
//			theForm.selOppBeginMonth.focus();
//			return false;
//		} 
//	}
//	else {
//		if (!checkDate(endDate)) {
//			alert("Please specify the End date") 
//			theForm.selOppEndMonth.focus();
//			return false;
//		} 
//	}

//	if (Date.parse(beginDate) > Date.parse(endDate)) { 
//		alert("The End date should be greater then the Start Date");
//		theForm.selOppEndMonth.focus();
//		return false;
//		}	
	
	
	//Validation for Application Deadline
//	if (checkDate(appDeadline)) {
//		if (Date.parse(appDeadline) > Date.parse(beginDate)) { 
//			alert("The Application Deadline should be less then the Start Date") 
//			theForm.selOppAppDeadlineMonth.focus();
//			return false;
//		} 
//		
//	}
	
	
	// Validation for the remove date to be greater then the posting date	
	postDate = theForm.selOppContactPostDateMonth.options[theForm.selOppContactPostDateMonth.selectedIndex].value +"/" + theForm.selOppContactPostDateDay.options[theForm.selOppContactPostDateDay.selectedIndex].value + "/" + theForm.selOppContactPostDateYear.options[theForm.selOppContactPostDateYear.selectedIndex].value;
	removeDate = theForm.selOppContactRemoveDateMonth.options[theForm.selOppContactRemoveDateMonth.selectedIndex].value +"/" + theForm.selOppContactRemoveDateDay.options[theForm.selOppContactRemoveDateDay.selectedIndex].value + "/" + theForm.selOppContactRemoveDateYear.options[theForm.selOppContactRemoveDateYear.selectedIndex].value;
	if (!checkDate(postDate)) {
		if (checkDate(removeDate)) {
			alert("Please specify the Posting Date") 
			theForm.selOppContactPostDateMonth.focus();
			return false;
		} 
	}
	else {
		if (!checkDate(removeDate)) {
			alert("Please Specify the Remove posting Date") 
			theForm.selOppContactRemoveDateMonth.focus();
			return false;
		} 
	}

	if (Date.parse(postDate) >= Date.parse(removeDate)) { 
		alert("The Remove Posting Date should be greater then the Posting Announcement Date");
		theForm.selOppContactRemoveDateMonth.focus();
		return false;
		}	
		
	return true;
}