﻿
function ReplaceSpecialChar(text)
{    
    var index = text.indexOf(" ");
    
    while(index != -1)
    {
        text = text.replace(" ", ".");
        
        index = text.indexOf(" ");
    }
    
    //Replace("&", "And")
    
    index = text.indexOf("&");
    
    while(index != -1)
    {
        text = text.replace("&", "And");
        
        index = text.indexOf("&");
    }
    
    return text;
}

