function repeatStep()
{
    document.getElementById('repeat').value = 1;
    document.cvWizard.action = document.location;
    document.cvWizard.submit();
}

function goTo(url) 
{
    document.location = url + "";
}

function showFieldError(rowId,message){
    obj = document.getElementById(rowId);
    obj.className = 'row error';
    var errorChild = document.createElement("div"); 
    errorID = rowId + '_error';
    if (document.getElementById(errorID) == null) 
    {
        errorChild.id = rowId + '_error'
        errorChild.className = 'error-message';
        errorChild.innerHTML = message;
        obj.appendChild(errorChild);
    }
}

function removeChildElement(parentId){
   var para = document.getElementById(parentId);

   
   if(document.getElementById(parentId + '_error') != null) {       
    var boldElm = document.getElementById(parentId + '_error');
    var removed = para.removeChild(boldElm);
   }
}
