function sqlSafe (s)
{
    var new_s = s;
    new_s = replaceAll (new_s, "'", "|");
    new_s = replaceAll (new_s, "|", "''");
    new_s = replaceAll (new_s, "\"", "|");
    new_s = replaceAll (new_s, "|", "''");
    return new_s;
}
/* PURPOSE:  Since we are using the single tick mark as the
	string delimiter to construct our SQL queries, a string with
	a tick mark in it will cause a SQL error.  Therefore we replace
	all "'" with "''", which eliminates the possibility of a SQL error.
*/
Since we are using the single tick mark as the
string delimiter to construct our SQL queries, a string with
a tick mark in it will cause a SQL error.  Therefore we replace
all "'" with "''", which eliminates the possibility of a SQL error.
Since we are using the single tick mark as the string delimiter to construct our SQL queries a string with a tick mark in it will cause a SQL error . Therefore we replace all " ' " with " ' ' " which eliminates the possibility of a SQL error .
function sqlSafe (s)
{
    var new_s = s;
    new_s = replaceAll (new_s, "'", "|");
    new_s = replaceAll (new_s, "|", "''");
    new_s = replaceAll (new_s, "\"", "|");
    new_s = replaceAll (new_s, "|", "''");
    return new_s;
}
function sqlSafe ( s ) { var new_s = s ; new_s = replaceAll ( new_s , "'" , "|" ) ; new_s = replaceAll ( new_s , "|" , "''" ) ; new_s = replaceAll ( new_s , "\"" , "|" ) ; new_s = replaceAll ( new_s , "|" , "''" ) ; return new_s ; }
PURPOSE:  Since we are using the single tick mark as the
string delimiter to construct our SQL queries, a string with
a tick mark in it will cause a SQL error.
PURPOSE : Since we are using the single tick mark as the string delimiter to construct our SQL queries a string with a tick mark in it will cause a SQL error .