﻿$(document).ready(function() {
    //Create site menu.
    $('.menu').createMenu();    

    //Alphanumeric plugins - prevent user from pressing the space character in these fields.
    //$('#ctl00_ctl00_body_maincontent_UserProfileControl_UserProfileAccountControl_txtEmail').alphanumeric({ ichars: ' ' }); //allow aphla nuberic character but prevent space character.
    //$('#ctl00_ctl00_body_maincontent_UserProfileControl_UserProfileAccountControl_txtEmailConfirm').alphanumeric({ ichars: ' ' }); //allow aphla nuberic character but prevent space character.
    //$('#ctl00_ctl00_body_maincontent_UserProfileControl_UserProfileAccountControl_txtPassword').alphanumeric({ ichars: ' ' }); //allow aphla nuberic character but prevent space character.
    //$('#ctl00_ctl00_body_maincontent_UserProfileControl_UserProfileAccountControl_txtPasswordConfirm').alphanumeric({ ichars: ' ' }); //allow aphla nuberic character but prevent space character.
    //$('#ctl00_ctl00_body_maincontent_UserProfileControl_UserProfileAddressControl_txtZip').alphanumeric({ ichars: ' ' }); //allow number and dash. example: 91618 or 92614-4188


});

function OpenResizeAndScrollWindow(URL, Width, Height, Top, Left, GetFocus) {

    var Param;

   // CloseDetailWindow();    // Close if already open

    Param = 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no';
    Param += ',top=' + Top + ',left=' + Left;
    Param += ',scrollbars=yes';
    Param += ',width=' + Width + ',height=' + Height;
    DetailWindow = window.open(URL, 'detail', Param);
    if (GetFocus) {

        DetailWindow.focus();

    }
}

