function Validate(theForm) {
	if (theForm.DirectoryTitle.value=='') {
		alert("Please specify the directory title !");
		theForm.DirectoryTitle.focus();
		return false;
	}
	
	if (theForm.Description.value=='') {
		alert("Please write a short description !");
		theForm.Description.focus();
		return false;
	}
	
	if (theForm.DirectoryURL.value=='' || theForm.DirectoryURL.value=='http://www.') {
		alert("Please specify the directory url !");
		theForm.DirectoryURL.focus();
		return false;
	}
	
	if (theForm.SubmissionURL.value=='' || theForm.SubmissionURL.value=='http://www.') {
		alert("Please specify the submission page url !");
		theForm.SubmissionURL.focus();
		return false;
	}
	
	if (theForm.TypeID.value==0) {
		alert("Please select the type of your directory !");
		theForm.TypeID.focus();
		return false;
	}
	
	if (theForm.TypeID.value==1 && (theForm.Price.value=='' || theForm.Price.value<=0)) {
		alert("Please enter the price of your regular submissions !");
		theForm.Price.focus();
		return false;
	}
	
	if (theForm.NicheID.value==0) {
		alert("Please select the niche of your directory !");
		theForm.NicheID.focus();
		return false;
	}
	
	if (theForm.Terms.checked==false) {
		alert("You have to verify that your directory is applicable to the submission guidelines which are above the form !");
		theForm.Terms.focus();
		return false;
	}
	
	if (theForm.FullName.value=='') {
		alert("Please specify your full name !");
		theForm.FullName.focus();
		return false;
	}
	
	if (theForm.Email.value=='') {
		alert("Please specify your e-mail address !");
		theForm.Email.focus();
		return false;
	}

	return true;
}

function openFeatured() {
	w = 450;
	h = 400;
	var iMyWidth;
	var iMyHeight;
	iMyWidth = (window.screen.width-w)/2;
	iMyHeight = (window.screen.height-h)/2;
	var win2 = window.open("featuredhelp.html", "featuredhelp", "status=no,height="+h+",width="+w+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",toolbar=no, menubar=no, scrollbars=no, location=no, directories=no"); 
	win2.focus();
}
