var IE = (document.all) ? 1 : 0;
var NS = (document.layers) ? 1 : 0;

// WINDOW STATUS FUNCTIONS
window.defaultStatus = "";
function winStatus( msg )
{
	window.status = msg;
}

function getCookie(Name)
{ 
	var search = Name + "=";   
	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
			return unescape(document.cookie.substring(offset, end));
		}
	}
	return null;
}

function OpenWindow(val, title, width, height, scrollbars)
{
  win1=open(val,title,"width="+width+",height="+height+",scrollbars="+scrollbars);
  if (win1.focus != null)
    win1.focus();
}

