<script type="text/javascript"> 
<--! function formForm(){ 
var dateLocal=new Date(); 
document.form.localYea.value=dateLocal.getFullYear()+""; 
document.form.localMon.value=dateLocal.getMonth()+""; 
document.form.localDay.value=dateLocal.getDate()+""; 
document.form.localHou.value=dateLocal.getHours()+""; 
document.form.localMin.value=dateLocal.getMinutes()+""; 
document.form.localSec.value=dateLocal.getSeconds()+""; 
document.form.Referer.value=""; 

function countryCheck(){ var index=document.form.Country.selectedIndex; 
var countryName=document.form.Country[index].value; if(countryName!="Choose"){ 
if(countryName==7 || countryName==25 || countryName==54 || 
countryName==58 || countryName==75 || countryName==77 || 
countryName==79|| countryName==112 || countryName==113 || 
countryName==125 || countryName==129 || countryName==130 || 
countryName==143 || countryName==145 || countryName==151 || 
countryName==165 || countryName==166){ // submit down as it is with level one passed to indicate that the next level down from the country 
// has been selected. Also pass country through document.form.countryLevel.value=1; 
document.form.method="Post"; 
document.form.action="index.asp?tstp=&dwstat="; 
document.form.submit(); 

else{ 
if(document.form.countryLevel.value!=0){ 
document.form.countryLevel.value=0; 
document.form.method="Post"; 
document.form.action="index.asp?tstp=&dwstat="; 
document.form.submit(); 



} function getSublocations(){ 
if(document.form.locations[document.form.locations.selectedIndex].value!="Choose"){ 
document.form.countryLevel.value=2; 
document.form.method="Post"; 
document.form.action="index.asp?tstp=&dwstat="; 
document.form.submit(); 

} function usernameCheck(x){ 
if(x){ 
if(document.form.Username.value="") 
---------看这里,括号括错了吧
alert(you need a username) --------看这里,分号呢else{ 


/* 
function passwordCheck(x){ 
if(x){ 
if(document.form.pwrd.value=="Choose a password")document.form.pwrd.value=""; 

else{ 
if(document.form.pwrd.value=="")document.form.pwrd.value="Choose a password"; 


*/ 
function emailCheck(x){ 
if(x){ 
if(document.form.email.value="") 
---------看这里
alert(the email can not empty) -----分号呢
else{ } 

解决方案 »

  1.   

    <script type="text/javascript">
    <--!
    function formForm()
    {
        var dateLocal=new Date();
        document.form.localYea.value=dateLocal.getFullYear()+"";
        document.form.localMon.value=dateLocal.getMonth()+"";
        document.form.localDay.value=dateLocal.getDate()+"";
        document.form.localHou.value=dateLocal.getHours()+"";
        document.form.localMin.value=dateLocal.getMinutes()+"";
        document.form.localSec.value=dateLocal.getSeconds()+"";
        document.form.Referer.value="";
    }
    function countryCheck()
    {
        var index=document.form.Country.selectedIndex;
        var countryName=document.form.Country[index].value;
        if(countryName!="Choose")
        {
            if(countryName==7 || countryName==25 || countryName==54 || countryName==58 || countryName==75 || countryName==77 || countryName==79|| countryName==112 || countryName==113 || countryName==125 || countryName==129 || countryName==130 || countryName==143 || countryName==145 || countryName==151 || countryName==165 || countryName==166)
            {
            // submit down as it is with level one passed to indicate that the next level down from the country
            // has been selected. Also pass country through
                document.form.countryLevel.value=1;
                document.form.method="Post";
                document.form.action="index.asp?tstp=&dwstat=";
                document.form.submit();
            }
            else
            {
                if(document.form.countryLevel.value!=0)
                {
                    document.form.countryLevel.value=0;
                    document.form.method="Post";
                    document.form.action="index.asp?tstp=&dwstat=";
                    document.form.submit();
                }
            }
        }
    }function getSublocations()
    {
        if(document.form.locations[document.form.locations.selectedIndex].value!="Choose")
        {
            document.form.countryLevel.value=2;
            document.form.method="Post";
            document.form.action="index.asp?tstp=&dwstat=";
            document.form.submit();
        }
    }function usernameCheck(x)
    {
        if(x)
        {
            if(document.form.Username.value="")
                alert(you need a username)
            else{}
        }
    }
    /*
    function passwordCheck(x){
    if(x){
    if(document.form.pwrd.value=="Choose a password")document.form.pwrd.value="";
    }
    else{
    if(document.form.pwrd.value=="")document.form.pwrd.value="Choose a password";
    }
    }
    */
    function emailCheck(x)
    {
        if(x)
        {
            if(document.form.email.value="")
                alert(the email can not empty)
            else{}
        }
    }
    </script>