if(location.host.indexOf("www")==-1){
	var DEV = true;
	var path = location.pathname;
	path = path.substring(0,path.indexOf("/",1));
	var URL = "http://" + location.host + path + "/";
}else{
	var DEV = false;
	var URL = "http://" + location.host + "/";
}
var $ = function(id) {
	return document.getElementById(id);
}
var isset = function(variable){
	if((typeof variable) != "undefined") return true;
	return false;
}
var empty = function(variable){
	if(variable.toString().length < 1) return true;
	return false;
}
var isnumeric = function(variable){
	if(isNaN(parseFloat(variable))) return false;
	return true;
}