function SJID(id) {
	return document.getElementById(id);
}

function SJFORM(formInt) {
	return document.forms[formInt];
}

function SJNAME(name) {
	return document.getElementsByName(name)[0];
}

function SJNAMES(name) {
	return document.getElementsByName(name);
}

function SJInstance() {
	
	this.isArray = function(obj) {
		if(obj.constructor.toString().indexOf("Array") == -1)
		{
			return false;
		}
		return true;
	};
}

function SJUSE()
{
	
}

function SJWINDOWSIZE(){
	var x = 0;
	var y = 0;
	if (self.innerHeight)
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	return {"x":x,"y":y};
}

SJ = new SJInstance();