browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);

if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { roll = 'true'; }
else { roll = 'false'; }
function msover(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
function msout(img,ref)  { if (roll == 'true') { document.images[img].src = ref; } }

  var marginH = 16;
  var marginW = 16;
  // Check the Browser identity
  function newBrowser(){
    var verVar = navigator.appVersion.charAt(0);
    return (parseInt(verVar) > 2) ? true: false
  }

  // Load a page into a sized Browser window
  function loadImage(page,width,height){
    var winSize;
    winSize = "menubar=no,scrollbars=no,status=no,width=" + (width+marginW)
                + ",height=" + (height+marginH);
    msg = open("","Imagen",winSize);
    msg.document.open();
    msg.document.writeln("<HTML><HEAD></HEAD><BODY bgColor = #000000>");
    msg.document.writeln('<IMG SRC='+page+' WIDTH=\"'+width+'\" HEIGHT=\"'+height+'\">');
    msg.document.writeln("</BODY></HTML>");
    msg.document.close();
  }

  /* View the source code of the page */
  function viewSource() {
    var msieMssg = "Using this Browser, you must\n";
          msieMssg+= "click View.Source on the menu\n";
          msieMssg+= "to review the source code!";
    if (newBrowser() == true){
      location = "view-source:" + window.location}
    else {alert(msieMssg)}
  }


function preview(form)
{
if (check(form)){form.submit()}
}

function check(form)
{
if (isemailto(form.email) == false)
{
	alert ("Porfavor: Ingrese una dirección de e-mail valida.");
	form.email.focus();
	return false
}

return true
}

function isemailto(emto)
{
if (emto.value.indexOf("@") != "-1" && emto.value.indexOf(".") != "-1" && emto.value != "")
return true;
else return false;
}
