// JavaScript Document
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function popup()
{
 var width  = 325;
 var height = 100;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 my_window=window.open("",'mywindow1', params);
 my_window.document.write('<div align="center">Thank you! Your proposal has been submitted.</div><br />');
 my_window.document.write('<div align="center"><FORM><INPUT TYPE="button" VALUE="Close Window" onClick="window.close()"></FORM></div>')
}

function verify()
{
	if(document.FormName.Name.value==""){	
	}
	if(document.FormName.Location.value==""){
	}
	if(document.FormName.Email.value==""){
	}
	else {
	popup();
	}
}

/*function verify()
{
var themessage = "You are required to complete the following fields: ";
if (document.FormName.Name.value=="") {
	themessage = themessage + " * Name";
}
if (document.FormName.Email.value=="") {
	themessage = themessage + " * E-mail";
}
if (document.FormName.Location.value=="") {
	themessage = themessage + " * Location";
}
if (themessage == "You are required to complete the following fields: ") {
	document.FormName.submit();
	MM_goToURL('parent','RequestForProposal.html');
	popup();
	my_window;
}
else {
	alert(themessage);
	return false;
   }
}**/
