Mis funciones son estas:
Código:
function ValidaSubir(forma) { forma=document.frmSubeLink var msg=""; msg = checkURL(document.frmSubeLink.txtLink.value)==''?msg+"<%=etiMsgURL%>":msg; if (msg != "") { msg = "<%=etiMsgVerificaValores%>" + msg; return false; } else { alert("url correcto.\n" + url) forma.submit(); return true; } } function checkURL(url) { //alert(url) var check = new RegExp("^http://w{3}\.{1}\D{1}[\.{1}.]*$", "gi"); if (check.test(url)) { alert("url correcto.\n" + url) return true; } else { alert("Favor de Ingresar un URL") //alert("<%'=etiMsgURL%>") //document.frmSubeLink.txtLink.select() //document.frmSubeLink.txtLink.focus() return ''; } }