function isNumeric(event) {
    var allowed = false;

    var keyCode = (event.keyCode ? event.keyCode :
                    (event.charCode ? event.charCode :
                        (event.which ? event.which : 0)));

   //9 is tab in Firefox
    //46 is Delete in Firefox

    if ( ((keyCode >=48) && (keyCode <= 57)) ||
      (keyCode == 8) || (keyCode == 37) ||
      (keyCode == 39) || (keyCode == 9) || (keyCode == 118)  || (keyCode == 46))
    {
        allowed = true;
    }

	if (! allowed)
	{
		//alert("This field allows only numeric values.");
	}

    return allowed;
}


String.prototype.replaceAll = function( 
								strTarget, // The substring you want to replace
								strSubString // The string you want to replace in.
							)
{
	var strText = this;
	var intIndexOfMatch = strText.indexOf( strTarget );
 
	// Keep looping while an instance of the target string
	// still exists in the string.
	while (intIndexOfMatch != -1)
	{
		// Relace out the current instance.
		strText = strText.replace( strTarget, strSubString )
 
		// Get the index of any next matching substring.
		intIndexOfMatch = strText.indexOf( strTarget );
	}
 
	// Return the updated string with ALL the target strings
	// replaced out with the new substring.
	return( strText );
}


jQuery(document).ready(function(){
	
	jQuery("a#signinbutton").click(function(){
		jQuery("#loginForm").submit();
  });;
});
