//---------------------------------------------------
 /* Program Name            : Dextor.php
    Description             : Created by Piyush Dixit 
    Call                	: On top of every page
    Functionality           : Common javascript functions 
    Author                  : Piyush Dixit < Email : mystery1984@gmail.com > <Mob : +91.9891549233)
    Creation Date           : 24-October-09
    Modification History    : None
	Note					: Don't modify before informing Author*/
//---------------------------------------------------


function isEmail(email)
{
	if(/^[a-zA-Z]([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email) == false)	
		return false;
	else 
		return true
}
function isNumaric(obj)
{
	var value=obj.value
	var corrected=''
	var temp='';
	for(i=0;i<value.length;i++)
	{
		temp=value.charAt(i);
		if('0'<=temp&&temp<='9')
		corrected+=temp;
	}
	obj.value=corrected;
}
function isFloat(obj)
{
	var value=obj.value
	var corrected=''
	var temp='';
	for(i=0;i<value.length;i++)
	{
		temp=value.charAt(i);
		if('0'<=temp&&temp<='9'||temp=='.')
		corrected+=temp;
	}
	obj.value=corrected;
}

