﻿// JScript File
function trim()
{
    var temp = this.toString();
    temp = temp.replace(/\s+$/,"");
    temp = temp.replace(/^\s+/, "")
    return (temp); 
}
String.prototype.trim = trim;

function validateEmail()
{
    var rex = new RegExp(/^\w+([.]\w+)*@\w+([.]\w+)*\.\w+([.]\w+)*$/);
    rex.global = true;
    rex.ignoreCase=true;
    return(rex.test(this.toString().trim()));
}
String.prototype.validateEmail=validateEmail;

function cancelKeyDown(e)
{
    var evt = e?e:event;
    if(evt.keyCode == 13)
       return false;
}

function showForm()
{
    var w;
    w = window.open("IndexPopUp.aspx","","width=400,height=390,left=200,top=0,menubar=no,location=no,resizable=no,toolbar=no");
}
