﻿function nolink(){
  
}
///
// Function to exlude the characters in textbox
// Use: <input onkeypress="return exclude(this, event, 'a,b,c')">
///
function exclude(myfield, e, exclude) 
{
    var key;
    var keychar;

    if (window.event)
        key = window.event.keyCode;
    else if (e)
        key = e.which;
    else
        return true;

    keychar = String.fromCharCode(key);
    if (((exclude).indexOf(keychar) > -1))
        return false;
}



///
// Function to allow only specific characters to be entered in textbox
// Use: <input onkeypress="return include(this, event, '0,1,2,3,4,5,6,7,8,9,/')">
///
function include(myfield, e, include)
{
    var key;
    var keychar;

    if (window.event)
        key = window.event.keyCode;
    else if (e)
        key = e.which;
    else
        return true;


    if (key==8 || key==0)
	    return true;

    keychar = String.fromCharCode(key);
    if (((include).indexOf(keychar) < 0))
        return false;
}


    function fbs_click()
    {
        u=location.href;
        t=document.title;
        window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
        return false;
    }
