function postRegistration(){
         var first=document.getElementById("first").value;
         var last=document.getElementById("last").value;
         var email=document.getElementById("email").value;
         var password=document.getElementById("password").value;
         var passwordConfirm=document.getElementById("passwordConfirm").value;
         var flag=false;
         var msg="";
        if(first == null || first == ""){
            msg=msg+"First name cannot be left blank\n";
            flag=true;
        }
         if(last == null || last == ""){
            msg=msg+"Last name cannot be left blank\n";
            flag=true;
        }
         if(email == null || email == ""){
            msg=msg+"Email cannot be left blank\n";
            flag=true;
        }else{
             if(!validateEmail()){
                 msg=msg+"Email is not valid\n";
                 flag=true;
             }
         }
         if(password == null || password == ""){
            msg=msg+"Password cannot be left blank\n";
            flag=true;
        }
        if(passwordConfirm == null || passwordConfirm == ""){
            msg=msg+"Confirm password cannot be left blank\n";
            flag=true;
        }
        if(!flag && (password.length < 6)){
            msg=msg+"password must be at least 6 characters long\n";
            flag=true;
         }
        if(!flag && (password != passwordConfirm)){
            msg=msg+"Password and confirm password should be same\n";
            flag=true;
        }
        if(flag){
            jAlert(msg,"Registration Error ")
        }else{
             submitRegForm();
        }
    }
    function expendStationBox(){
        if( document.getElementById("rightPanelBox") != null){
            document.getElementById("rightPanelBox").style.display='none';
        }
        if( document.getElementById("mainStationBox") != null){
            document.getElementById("mainStationBox").style.width='908px';
        }
        if( document.getElementById("roundedcornr_box_black") != null){
            document.getElementById("roundedcornr_box_black").style.width='99%';
        }
    }
    function shrinkStationBox(){
        if( document.getElementById("rightPanelBox") != null){
            document.getElementById("rightPanelBox").style.display='block';
        }
        if( document.getElementById("mainStationBox") != null){
            document.getElementById("mainStationBox").style.width='647px';
        }
    }
    function hideRightPanel(){
    if( document.getElementById("rightPanelBox") != null){
        document.getElementById("rightPanelBox").style.display='none';
    }
    if( document.getElementById("mainStationBox") != null){
    document.getElementById("mainStationBox").style.width='908px';
    }
    if( document.getElementById("roundedcornr_box_black") != null){
    document.getElementById("roundedcornr_box_black").style.width='99%';
    }
    if( document.getElementById("stationLeftSection") != null){
    document.getElementById("stationLeftSection").style.display='none';
    }
   // if( document.getElementById("expendedLeftLoginSection") != null){
   // document.getElementById("expendedLeftLoginSection").style.display='block';
    //}
    if( document.getElementById("expendedLeftInviteSection") != null){
    document.getElementById("expendedLeftInviteSection").style.display='block';
    }
  }
