Esto te servira?
Esta en Js, lo saqué de la página
www.surnet.cl
uno de todos estos codigos debe ser.
-------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Surnet.cl</title>
<style type="text/css">
<!--
a{ text-decoration:none}
#sponsorAdDiv {position:absolute; height:1; width:1; top:0; left:0;}
a:active{color:red; text-decoration:none}
a:hover{color:#cc0000; text-decoration:none}
a:visited{ text-decoration:none}
#a{ text-decoration:none}
-->
</style>
<script language="JavaScript">
function perso_ho( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}
function openWin( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}
function nuevoenla( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}
var good;
function chequea_casilla(field) {
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.cl)|(\.edu)|(\.mil )|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){
good = true
} else {
good = false
field.focus()
field.select()
/*field.value=field.value+'@telsur.cl'*/
}
return good
}
function email_test()
{
var accion = "http://webmail.surnet.cl/express.asp";
var userp = window.document.ExpressLogin.userid2.value;
var serve_t = window.document.ExpressLogin.a_servicio;
var elegido = serve_t.options[serve_t.selectedIndex].value;
window.document.ExpressLogin.userid.value=userp+se rve_t.options[serve_t.selectedIndex].value;
var casilla=window.document.ExpressLogin.userid.value;
if (elegido=='') {
if (chequea_casilla(document.ExpressLogin.userid2)) {
//alert("Casilla OK : "+casilla);
window.document.ExpressLogin.action = accion;
window.document.ExpressLogin.submit();
}
else {
alert("Ingrese en usuario: username@sudominio");
}
}
else if (elegido!='') {
if (chequea_casilla(document.ExpressLogin.userid2)) {
alert("Solo ingrese nombre de usuario, ya tiene dominio elegido.");
}
else {
//alert("Casilla ok: "+casilla);
window.document.ExpressLogin.action = accion;
self.document.ExpressLogin.submit();
}}}
</script><script language="JavaScript">
function openstore( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}
function anuncio( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}
</script>
<script language="JavaScript" type="text/javascript">
function irCams(){
if (document.selectercams.selectca.options[document.selectercams.selectca.selectedIndex].value != "none") {
location = document.selectercams.selectca.options[document.selectercams.selectca.selectedIndex].value
}
}
</script>
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META name="description" content="Negocios, multiservicios, webhosting, conexion, surnet, telefonica del sur">
<META name="keywords" content="Telsur, CHILE, chile, sur de chile, telsur, chile">
</head>
<body link="blue" alink="blue" vlink="blue" bgcolor="White">
<SCRIPT LANGUAGE="JavaScript1.2">
adTime=40;
chanceAd=1;
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
adCount=0;
function initAd(){
if(!ns && !ie && !w3) return;
if(ie) adDiv=eval('document.all.sponsorAdDiv.style');
else if(ns) adDiv=eval('document.layers["sponsorAdDiv"]');
else if(w3) adDiv=eval('document.getElementById("sponsorAdDiv" ).style');
randAd=Math.ceil(Math.random()*chanceAd);
if (ie||w3)
adDiv.visibility="visible";
else
adDiv.visibility ="show";
if(randAd==1) showAd();
}
function showAd(){
if(adCount<adTime*10){adCount+=1;
if (ie){documentWidth =document.body.offsetWidth/2+document.body.scrollLeft-20;
documentHeight =document.body.offsetHeight/2+document.body.scrollTop-20;}
else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
documentHeight=window.innerHeight/2+window.pageYOffset-20;}
else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
documentHeight=self.innerHeight/2+window.pageYOffset-20;}
adDiv.left=20;adDiv.top =documentHeight-150;
setTimeout("showAd()",50);}else closeAd();
}
function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
adDiv.visibility ="hidden";
}
onload=initAd;
//End-->
</script>
<div id="sponsorAdDiv" style="visibility:hidden">
<table border="0" cellpadding="0" cellspacing="0" width="240">