function chk_project_validaton()
{
    var selPromote = document.getElementById("selPromote").value;
    var selBudget = document.getElementById("selBudget").value;
    var selServiceStart = document.getElementById("selServiceStart").value;
    var selProjectDuration = document.getElementById("selProjectDuration").value;
	var anyerrors = ""; // Keeps track of any errors to alert user to
	var checkBoxesSelected = false; // Set to true if user has selected at least one checkbox
	
	// Loop through checkboxes to see if any are checked	
	for(i=0;i<document.getElementsByName("chk_publicRelService[]").length;i++){
		if(document.getElementsByName("chk_publicRelService[]")[i].checked){
			checkBoxesSelected = true; 
			break;
		} 
	}
    if(!checkBoxesSelected){
		anyerrors += "- Select at least one type of publicity\n";	
	}
    
    if(selPromote == 0)
    {
		anyerrors += "- Select what you would like to promote, i.e. a book\n";
    }
    if($("#txtdesc_project").val()=='')
    {
		anyerrors += "- Please enter description of the project\n";
    }
    if(selBudget == 0)
    {
		anyerrors += "- Select a campaign budget\n";
    }
    if(selServiceStart == 0)
    {
		anyerrors += "- Select a desired start date\n";
    }
    if(selProjectDuration == 0)
    {
		anyerrors += "- Select your campaign duration\n";
    }
	
	if(anyerrors.length>0){
		alert ("Please correct the following before continuing:\n\n"+anyerrors);
		return false;
	}
}

function notValidEmail( str ){
    mailRE = new RegExp( );
    mailRE.compile( '^[\._a-z0-9-]+@[\.a-z0-9-]+[\.]{1}[a-z]{2,4}$', 'gi' );
    return !(mailRE.test(str));
}

function notValidZip( str )	{
	zipRE = new RegExp();
	zipRE.compile('^[0-9]+$');
	return !(zipRE.test(str));
}
function isEmpty( str){
    strRE = new RegExp( );
    strRE.compile( '^[\s ]*$', 'gi' );
    return strRE.test(str);
}
