Str_xml has been declared but no scope modifier has been used to specify how the variable can be used.
Instead of declaring Str_xml like this:
Dim Str_xml
Try using Public instead (Protected will probably work too) ...like this:
Public Str_xml
Now you should be able to access it properly in your JavaScript function:
function hono()
{
var cid;
var str_xml="already Exists";
var str_code1 = document.getElementsByName('customerid')[0].value;
//The following line might be causing you problems too. I don't see where you've declared gvar_session_string....
var
str_url1='/karomi/custom/repco-los/search/asp/sample.asp?'+gvar_session_string+'&str_code1='+str_code1;
alert('<%=Str_xml%>');
alert("welcome");
}
-Frinny