// JavaScript Document

	function	setStyleAttribute(element, attribute, value)
		{
			if (navigator.appName == 'Microsoft Internet Explorer')
				{
					element.style.setAttribute(attribute, String(value));
					return true;
				}
			element.style[attribute] = String(value);

		}
		
	function	getStyleAttribute(element, attribute)
		{
			if (navigator.appName == 'Microsoft Internet Explorer')
				{
					return element.style.getAttribute(attribute);
				}
			//	else
			return element.style[attribute];

}

	function	getClientHeight()
		{
		  if (window.innerHeight) {
			return window.innerHeight;
		  } else if (document.body && document.body.offsetHeight) {
			return document.body.offsetHeight;
		  } else {
			return 0;
		  }
		}
	
	function	getClientWidth()
		{
		
		  if (window.innerWidth) {
			return window.innerWidth;
		  } else if (document.body && document.body.offsetWidth) {
			return document.body.offsetWidth;
		  } else {
			return 0;
		  }
		}
		
	function	getElementClassName(element)
		{
			if (navigator.appName == 'Microsoft Internet Explorer')
				{
					return element.getAttribute('classname');
				}
			//	else
			return element.getAttribute('class');
			
		}
		
	function	relPath()
		{
			var tempReq 	= String(window.location);				// Number(tempReq.length) - Number(globalHost.length)
			var req		= tempReq.substr(globalHost.length, Number(tempReq.length) - Number(globalHost.length));
			//req 		= req.substr(0, req.length-1);
			var paths		= req.split('/');
			var relPre 	= '';
			for (i = 0; i < Number(paths.length); i++)
				{
					if (paths[i].length > 0 && paths[i] != 'index.php')
						{
							relPre = relPre+'../';
						}
				}
			return relPre;
		}
	

