First
<SCRIPT LANGUAGE="JavaScript"> 
<!-- 
function Date.prototype.toString(){ 
return this.getFullYear()+"-"+(this.getMonth()+1)+"-"+this.getDate(); 

var d = new Date(); var d1 = new Date(d-(d.getDay()-1)*86400000); var d0 = new Date((d1/1000+6*86400)*1000); 
function validation(){
if( document.forms[FormName].elements['FIELD6'].value < d1 )
{
alert(“早于周一”);
return false;
}
}
//--> 
</SCRIPT>
First
<SCRIPT LANGUAGE="JavaScript"> 
<!-- 
function Date.prototype.toString(){ 
return this.getFullYear()+"-"+(this.getMonth()+1)+"-"+this.getDate(); 

var d = new Date(); var d1 = new Date(d-(d.getDay()-1)*86400000); var d0 = new Date((d1/1000+6*86400)*1000); 
function validation(){
if( document.forms[FormName].elements['FIELD6'].value < “2008-09-04” )
{
alert(“早于周一”);
return false;
}
}
//--> 
</SCRIPT>
只有第二个可以执行,可我想用动态的判断参数。第一个错在哪里呢?