Hi

All

I am using a list box which is having some options like english, arabic and so on.

When user selects the language, I want to run the java script function which will get the selected value. Here is the code

function changelanguage()
{
var test=document.loginform.s1.selectedIndex.value;

if(var=='en')
{

<?require_once ROOT_PATH . '/language/default/lang_default_full.php'?>;
<?require_once($lan->getLangPath("full.php"))?>;
}
else
{
<?require_once ROOT_PATH . '/language/ar/lang_ar_full.php'?>;
<?require_once($lan->getLangPath("full.php"))?>;

}

please help me out to solve this problem

Thanks & Regards
MD.Samiuddin