<!--
function ChangeItem(obj)
{
	var sURL = "item.aspx"+ obj.value;
	
	window.location.href = sURL;
	return true;
}

function ChangePageSize(obj, pagename, alphachar, pagequerystring)
{
	//var LocalURL = pagename +"?pagesize="+ obj.value;
	
	var LocalURL = pagename + pagequerystring +"pagesize="+ obj.value;
	var QS = "";
	QS = pagequerystring;
	
	if((alphachar != "") && (QS.indexOf("alpha=") == -1))
		LocalURL += "&alpha="+ alphachar;
	
	window.location.href = LocalURL;
	return true;
}

function agAlphaBar(alphachar)
{
	if(window.radCategory.checked == true)
	{
		bgNavigate("category.aspx?alpha="+ alphachar);
		return true;
	}
	
	if(window.radName.checked == true)
	{
		bgNavigate("group.aspx?alpha="+ alphachar);
		return true;
	}
	
	window.alert("choose between the \"category\" or \"name\" radiobox above when using the alphabet bar.");
	
	return false;
}

function CursorOn(obj, inCursor)
{
	obj.style.cursor = inCursor;
	return true;
}

function CursorOff(obj)
{
	obj.style.cursor = "default";
	return true;
}

function AreaOver(obj, inColor, inCursor)
{
	obj.style.cursor = inCursor;
	if(inColor == "blue")
		obj.style.color = "dodgerblue";
		
	if(inColor == "gray")
		obj.style.color = "black";
		
	if(inColor == "blue" | inColor == "gray")
		obj.style.textDecoration = "underline";
	
	return true;
}

function AreaOut(obj, inColor)
{
	obj.style.cursor = "default";
	if(inColor == "blue")
		obj.style.color = "blue";
		
	if(inColor == "gray")
		obj.style.color = "gray";
		
	if(inColor == "blue" | inColor == "gray")
		obj.style.textDecoration = "none";
	
	return true;
}

function MenuState(inColor, inMenuID)
{
	var sImg = document.all("img"+ inMenuID).src;
	
	if(document.all("div"+ inMenuID).style.display == "")
	{
		document.all("div"+ inMenuID).style.display = "none";
		document.all("img"+ inMenuID).src = sImg.replace("_up", "_down");
	}
	else
	{
		document.all("div"+ inMenuID).style.display = "";
		document.all("img"+ inMenuID).src = sImg.replace("_down", "_up");
	}
	
	return true;
}

function bgNavigate(sURL)
{
	var LocalURL = "";
	LocalURL = sURL;
	
	if(LocalURL.length == 0)
		return false;
	
	window.location.href = LocalURL;
	return true;
}

function bgNavigateTarget(sURL, objTarget)
{
	var LocalURL = "";
	LocalURL = sURL;
	
	if(LocalURL.length == 0)
		return false;
	
	objTarget.location.href = LocalURL;
	return true;
}

/*function PopUp(sURL, Width, Height, scrl)
{
	var Height_Modal	= Height + 20;	//statusbar addition
	var Width_Modal		= Width;
	var Height_Window	= Height - 32;
	var Width_Window	= Width - 4;
	
	//if(navigator.appName == "Microsoft Internet Explorer")
	//	window.showModalDialog(sURL, "PopUp", "dialogHeight:"+ Height_Modal +"px;dialogWidth:"+ Width_Modal +"px;help:0;status:1;scroll:"+ scrl +";center:1");
	//else
		window.open(sURL, "picture", "channelmode=0,directories=0,fullscreen=0,height="+ Height_Window +",width="+ Width_Window +",location=0,menubar=0,resizable=0,scrollbars=1,status=1,titlebar=1,toolbar=0,top="+ ((window.screen.height / 2) - (Height_Window / 2)) +",left="+ ((window.screen.width / 2) - (Width_Window / 2)), false);

	return result;
}*/

function PopUp(sURL, Width, Height, Scroll)
{
	var Window_Width	= 0;
	var Window_Height	= 0;
	
	Window_Width = Width + 20;
	Window_Height = Height + 78;
	
	window.open(sURL, "picture", "channelmode=0,directories=0,fullscreen=0,width="+ Window_Width +",height="+ Window_Height +",location=0,menubar=0,resizable=1,scrollbars="+ Scroll +",status=1,titlebar=1,toolbar=0,left="+ ((window.screen.width / 2) - (Window_Width / 2)) +",top="+ ((window.screen.height / 2) - (Window_Height / 2)), false);
	
	return true;
}

function PopUpOpen(sURL, NewWeb)
{
	var WinHeight	= 500;
	var WinWidth	= 640;
	var WinTop		= (screen.availHeight / 2) - (WinHeight / 2);
	var WinLeft		= (screen.availWidth / 2) - (WinWidth / 2);
	
	if(NewWeb == false)
		window.open(sURL, "news", "channelmode=0,directories=0,fullscreen=0,height="+ WinHeight +",left="+ WinLeft +",location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0,top="+ WinTop +",width="+ WinWidth, false);
	if(NewWeb == true)
		window.open(sURL, "newweb", "channelmode=0,directories=1,fullscreen=0,height="+ WinHeight +",left="+ WinLeft +",location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,top="+ WinTop +",width="+ WinWidth, false);

	return true;
}

function PopUpClose()
{
	window.close();
	return true;
}

function CheckScreenRez()
{
	if((window.screen.width < 1024) | (window.screen.height < 768))
		window.alert("Your current screen resolution is "+ window.screen.width +"x"+ window.screen.height +".\nTo make proper use of \"Business Gateway\" your screen resolution should be set to 1024x768 preferably.");
	
	return true;
}

function CheckMail(head, tail, extra, write)
{
	if(write == false)
		window.location.href = "mailto:"+ head +"@"+ tail + extra;
		
	if(write == true)
		document.write(head +"@"+ tail);
	
	return true;
}

function SetHomePage(obj)
{
	var nav			= navigator.userAgent.toLowerCase();
	var is_ie		= (nav.indexOf("msie") != -1);
	var ie_major	= 0;
	
    if(is_ie)
    {
		ie_major = parseInt(nav.substring(nav.indexOf("msie") + 5, nav.indexOf("msie") + 8), 10);
		
		if(parseInt(ie_major, 10) == 3 | parseInt(ie_major, 10) == 4)
			window.location.href = "makehome.reg";
		if(parseInt(ie_major, 10) >= 5)
		{
			obj.style.behavior = "url(#default#homepage)";
			obj.setHomePage("http://www.bizgateway.biz");
		}
    }
    
    return true;
}
-->