﻿ 
 //****Logga in*******//
 
 
 //Lägger till siffra i textboxen från knappsatsen.
 function AddChar(char)
    {
	    if(document.getElementById('txtCivicRegNo').value.length < 11)
		    document.getElementById('txtCivicRegNo').value = document.getElementById('txtCivicRegNo').value + char;

        // The following lines are only valid for a swedish type of CivicRegNo
	    if(document.getElementById('txtCivicRegNo').value.length == 6)
		    document.getElementById('txtCivicRegNo').value = document.getElementById('txtCivicRegNo').value + '-';
    }
//Rensar textbox
function Clear()
{
    var strTemp;
    var intLength;

    strTemp = document.getElementById('txtCivicRegNo').value;
    intLength = strTemp.length;

      document.getElementById('txtCivicRegNo').value = strTemp.substring(0, intLength-1);
 }
//Postar sidan
 function goto(x) 
    {
        var a = x + document.getElementById('txtCivicRegNo').value
        document.getElementById('txtCivicRegNo').value = ''
        self.location.href=a
    }
    
    function goto2(x) 
    {
        self.location.href = x;
    }   
       
//**** Overview *****
//**** EndExam  *****

function confirm_delete(message)
{
    if(confirm(message)== true)
        return true;
    else
        return false;
}       



