getObject=function(n){
	return document.getElementById(n);
}
isEmpty=function(v){
	if((v==null)||(v.length==0)||(v==""))return true;
	else return false;
}
isNumeric=function(v){
	var r=false;
	try{ r=(v==parseFloat(v))?true:false; }
	catch(e){}
	return r;
}
isSelectField=function(o){
	try{
		if(typeof(o)!="string"){
			if(o.type.toLowerCase().indexOf("select")>=0){
				return true;
			}
		}
	}
	catch(e){}
	return false;
}
getValue=function(o){
	try{return isSelectField(o)?getSelectValue(o):o.value;}
	catch(e){}
	return "";
}
getSelectValue=function(o){
	try{
		if(o){
			if(o.options.selectedIndex<0){return "";}
			else{return o.options[o.options.selectedIndex].value;}
		}
	}catch(e){}
	return "";
}
convertToNumeric=function(v){
	try{ v=parseFloat(v); } catch(e) { v=0.0;}
	if(isNaN(v)){ v=0.0; }
	if(v==null){ v=0.0; }
	if(v==""){ v=0.0; }
	return v;
}
openSimpleWindow=function(n,u,h,w){
	if(!n)n='_blank';
	if(!w)w=600;
	if(!h)h=500;
	window.open(u,n,'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+w+',height='+h);
}
		
