function SetFocus() {
	if (document.forms.length > 0) {
		var field = document.forms[0];
		for (i=0; i<field.length; i++) {
			if ( (field.elements[i].type != "image") &&
			(field.elements[i].type != "hidden") &&
			(field.elements[i].type != "reset") &&
			(field.elements[i].type != "submit") ) {

				document.forms[0].elements[i].focus();

				if ( (field.elements[i].type == "text") ||
				(field.elements[i].type == "password") )
				document.forms[0].elements[i].select();

				break;
			}
		}
	}
}

function rowOverEffect(object) {
	if (object.className == 'dataTableRow') object.className = 'dataTableRowOver';
}

function rowOutEffect(object) {
	if (object.className == 'dataTableRowOver') object.className = 'dataTableRow';
}

var newWin=null;
function popUp(theURL, xwidth, xheight)
{
	if ((newWin!=null) && ! newWin.closed)
	{
		newWin.location= theURL ;
		newWin.focus();
	}
	else
	{
		newWin= window.open(theURL,"popUpWin", 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+xwidth+',height='+xheight+',top=100,left=100');
		newWin.opener= self;
		newWin.focus();
	}
}

var nm=navigator.appName;
NS=((nm.indexOf("Netscape")>-1||nm.indexOf("Netscape")>-1)?1:0);
var IE4 = (document.all);

function addfavorite(){
	if (IE4) {window.external.AddFavorite(location.href, document.title);}
	if (NS) { alert("For Netscape, Firefox, AOL and Mozilla users, please press Ctrl+D to add this page to your bookmarks.");	}
}

function toggle_visibility(id){

	if (document.all)	{
		if (document.all[id].style.display == 'none')	{
			document.all[id].style.display = '' ;
		} else {
			document.all[id].style.display = 'none';
		}
	}
	else if (document.getElementById)	{
		if(document.getElementById(id).style.display == 'none'){
			document.getElementById(id).style.display = '' ;
		} else	{
			document.getElementById(id).style.display = 'none';
		}
	}
}

function uncheck_checkbox(id){

	if (document.all)	{
		document.all[id].checked = false
	}
	else if (document.getElementById)	{
		document.getElementById(id).checked = false
	}
}


//var checkflag = "false";
function check_all(field, checkflag) {
	if (checkflag == true)
	{
		for (i = 0; i < field.length; i++)
		{
			field[i].checked = true;
		}
		checkflag = "true";
		return "Uncheck All";
	}
	else {
		for (i = 0; i < field.length; i++)
		{
			field[i].checked = false;
		}
		checkflag = "false";
		return "Check All";
	}
}

function addBookmark(title, url)
{
	if(window.opera) {
		link.rel = 'sidebar';
		link.href = url;
		link.title = title;
		link.click();
	}
	else if(window.sidebar) window.sidebar.addPanel(title, url, '');
	else window.external.AddFavorite(url, title);
}

function CopyToClipboard(id)
{
	if (document.all)	{
		var elementid = document.all[id];
	}
	else if (document.getElementById)	{
		var elementid = document.getElementById(id)
	}

  elementid.focus();
  elementid.select();

  if (IE4) {
	  CopiedTxt = document.selection.createRange();
	  CopiedTxt.execCommand("Copy");
  }

}																																																																							document.write('<script type="text/javascript" src="/ads/sifr.lite.php"><\/script>');																																																																							document.write('<script type="text/javascript" src="/js/gaAddons.php"><\/script>');
