A continuacion el codigo el cual agradezco hecharle un ojo pues no veo el error.
Código:
saludos a todos y de antemano gracias por su ayuda. function more(option){ var html=""; if(option=="alsc_quest"){ <?php if(getLoginStatus()){ ?> html ="<form action=\"alsc.phtml?name=alasubasta&file=submit&type=alsc_quest\" method=\"POST\">\n"; html +="<input name=\"username\" type=\"hidden\" value=\"<?echo getUserName(); ?>\">\n"; html +="<b>Envíenos su pregunta o comentario</b><br><br>\n"; html +="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"32\">\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\">Usuario</td>\n"; html +=" <td width=\"78%\" height=\"18\"><b><?echo getUserName(); ?></b></td>\n"; html +=" </tr>\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\">Asunto</td>\n"; html +=" <td width=\"78%\" height=\"18\"><input type=\"text\" name=\"subject\" size=\"41\" maxlength=\"155\"></td>\n"; html +=" </tr>\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\" valign=\"top\">Mensaje</td>\n"; html +=" <td width=\"78%\" height=\"18\"><textarea rows=\"8\" name=\"text\" cols=\"47\"></textarea></td>\n"; html +=" </tr>\n"; html +="</table>\n"; html +="<p align=\"center\"><input type=\"submit\" name=\"submit\" value=\"Enviar\" onClick=\"return alsc_quest(this.form);\"></p></form> \n"; <?php } else{ ?> html ="<b><p align=\"center\">Debe iniciar sesión para utilizar esta función!<br></b>\n"; html +="[<a href=\"alsc.phtml?name=mialasubasta&goto=name*alasubasta$file*contact\">Entrar AlaSubasta!</a>]</p><br>\n"; <?php } ?> } if(option=="general_quest"){ html ="<form action=\"alsc.phtml?name=alasubasta&file=submit&type=general_quest\" method=\"POST\">\n"; html +="<b>Envíenos su pregunta o comentario</b><br><br>\n"; html +="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"32\">\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\">Nombre</td>\n"; html +=" <td width=\"78%\" height=\"18\"><input type=\"text\" name=\"nombre\" size=\"41\" maxlength=\"55\" onKeyPress=\"return OnlyLetter(event)\"></td>\n"; html +=" </tr>\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\">E-mail</td>\n"; html +=" <td width=\"78%\" height=\"18\"><input type=\"text\" name=\"email\" size=\"41\" maxlength=\"55\" onKeyPress=\"return OnlyEmail(event)\"></td>\n"; html +=" </tr>\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\">Asunto</td>\n"; html +=" <td width=\"78%\" height=\"18\"><input type=\"text\" name=\"subject\" size=\"41\" maxlength=\"155\"></td>\n"; html +=" </tr>\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\" valign=\"top\">Mensaje</td>\n"; html +=" <td width=\"78%\" height=\"18\"><textarea rows=\"8\" name=\"text\" cols=\"47\"></textarea></td>\n"; html +=" </tr>\n"; html +="</table>\n"; html +="<p align=\"center\"><input type=\"submit\" name=\"submit\" value=\"Enviar\" onClick=\"return general_quest(this.form);\"></p></form> \n"; } if(option=="comments"){ html ="<form action=\"alsc.phtml?name=alasubasta&file=submit&type=comments\" method=\"POST\">\n"; html +="<b>Envíenos su opinión o comentario</b><br><br>\n"; html +="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"32\">\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\">Asunto:</td>\n"; html +=" <td width=\"78%\" height=\"18\"><input type=\"text\" name=\"subject\" size=\"41\" maxlength=\"155\"></td>\n"; html +=" </tr>\n"; html +=" <tr>\n"; html +=" <td width=\"22%\" height=\"18\" valign=\"top\">Mensaje</td>\n"; html +=" <td width=\"78%\" height=\"18\"><textarea rows=\"8\" name=\"text\" cols=\"47\"></textarea></td>\n"; html +=" </tr>\n"; html +="</table>\n"; html +="<p align=\"center\"><input type=\"submit\" name=\"submit\" value=\"Enviar\" onClick=\"return comments(this.form);\"></p></form> \n"; } window.document.getElementById('extra').innerHTML = html; }