function _Window(w,h,sts,scroll,resize,name,url)
{
	var windowProperties='';
	windowProperties+='toolbar=no,';
	windowProperties+='location=no,';
	if(sts==false) windowProperties+='status=no,'; else windowProperties+='status=yes,';
	windowProperties+='menubar=no,';
	if(scroll==false) windowProperties+='scrollbars=no,'; else windowProperties+='scrollbars=yes,';
	if(resize==false)windowProperties+='resizable=no,';else windowProperties+='resizable=yes,';
	if(w!="")windowProperties+='width='+w+',';
	if(h!="")windowProperties+='height='+h;
	if(windowProperties!=""){
		if(windowProperties.charAt(windowProperties.length-1)==',')
			windowProperties=windowProperties.substring(0,windowProperties.length-1);
	}
	window.open(url,name,windowProperties);
}

var Cookie = new Object();

Cookie.fetch = function(name)
{
	var search = name + "=";
	var returnvalue = "";
	if (document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search);
		if (offset != -1)
		{
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end));
		}
	}
	
	return returnvalue;
};

Cookie.set = function(name, value, expire)
{
	document.cookie = name + '=' + escape(value) + '; path=/' + ( typeof expire != 'undefined' ? '; expires=' + expire.toGMTString() : '' );
};

Cookie.drop = function(name)
{
	document.cookie = name + '= ; expires=Thu, 01-Jan-1900 00:00:01 GMT ; path=/';
};

function Show(ID){
	var Ele=document.getElementById(ID);Ele.style.visibility='visible';
}

function Hide(ID){
	var Ele=document.getElementById(ID);Ele.style.visibility='hidden';
}

function RChange(selObj, scriptName, argTitle, additionalArgs) {
	Location = scriptName + '?' + ( typeof(additionalArgs) != 'undefined' ? additionalArgs + '&'  : '' );
    eval("document.location.href = '" + Location + argTitle + "=" + selObj.options[selObj.selectedIndex].value + "'");
}