function addbookmark()
{
bookmarkurl="https://www.happybirthday.com"
bookmarktitle="HappyBirthday.com - Birthday Reminders"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//  End -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function validate_login()
{
	if(window.document.frmRegister.txtusername_header.value=="")
	{
		window.alert("User Name is must.");
		window.document.frmRegister.txtusername_header.focus();
		return false;
	}
	else if(window.document.frmRegister.txtpassword_header.value=="")
	{
		window.alert("Password is must.");
		window.document.frmRegister.txtpassword_header.focus();
		return false;
	}
	return true;
}

function EraseInvalidDataForBlur(Id)
{
     badkeys= new Array("&#x3C;", "%3c", "&#60", "%3C", "%3e", "%3E", "%27", "&#x27;", "&#34", "&#38","&#39", "&#60", "&#62", "&#x22", "&#x27", "&#x26", "&#x3C", "&#x3E", "&quote;", "&apos;",
    "&amp", "&lt", "&gt", "\\u0022", "\\u0026", "\\u0027", "\\u003c", "\\u003e", "select", "insert","update", "delete", "drop", "having", "truncate", "union", "--", "#", "%", "@@",
   "1=1", "exec", "alert", ";" ,"document","meta","iframe","html","script", "0x", "{", "<", ">", "xp_", "'1'='1'", "../", "./", ".exe", ".dll", "/*","*/", "waitfor", "&#", "<<", ".config");
    var val = document.getElementById(Id).value;
    for (i=0; i<val.length; i++)
    {
        for (j=0; j<badkeys.length; j++)
        {
          val= val.replace(badkeys[j],'');
        }
        document.getElementById(Id).value = val;
    }
}
