<%
##########################
##
## JSutil
##
##########################
class JSutil
{
function JSinclude($handle,$separate=1)
{
$warr=file($handle);
$i=0;
if (!separate)
{
while ($i < count($warr)):
$str.=trim(addslashes($warr[$i]));
$i++;
endwhile;
%>
document.write('<%=$str%>');
<%
}
else
{
while ($i < count($warr)):
$str=trim(addslashes($warr[$i]));
%>
document.write('<%=$str%>');
<%
$i++;
endwhile;
}
}
function explode_things($thing)
{
$things = explode(",",$thing);
return $things;
}
} /* *** end of class JSutil */
%> |