<!--

function Instrxs() 
{ 
//alert("hi");
url=location.href;
url1=""; 
url2="";

	for(i=0;i<url.length;i++)
		{ 
		net=url.substring(i, i+4);
			
		if ( net == ".net" )
			{  
			url2 = url.substring(i+4);
            furl="http://www.sitespower.com"+url2;
            alert("You requested " + url + "\n" + "\n" + "Please use our Main site "+furl);
//window.location = furl;
			}
		ae = url.substring(i, i+3);
		
		if (ae == ".ae")
			{
			url2 = url.substring(i+3);
            furl="http://www.sitespower.com"+url2;
            alert("You requested " + url + "\n" + "\n" + "Please use our Main site "+furl);
            }
		} 
}

function newGoEnglish()
{
p="";
GoE=location.href;
for(i=0; i<GoE.length; i++)
	{
	if (location.pathname.substring(i,i+3) == "/a-")
		{
		p= location.pathname.substring(0,i+1) + location.pathname.substring(i+3);
		break;
		}
	}
	window.location = p;
}

function GoEnglish()
{
if (location.pathname.substring(1,3) == "a-")
	{
	p= location.pathname.substring(3);
	window.location = p;
	}
}

function newGoArabic()
{
p="";
GoA=location.href;
flag = 1;
for(i=0; i<GoA.length; i++)
	{
	if (GoA.substring(i,i+3) == "/a-")
		{
		flag = 0;
		break;
		}
	else
		{
		}
	}
if (flag == 1)
	{
	for (i=GoA.length-1; i>0; i--)
		{
		if (GoA.charAt(i) == "/")
			{
			p= GoA.substring(0, i+1) + "a-" + GoA.substring(i+1);
			window.location = p;
			break;
			}
		}
	}
}

function GoArabic()
{
//url = location.href;
if (location.pathname.substring(1,3) == "a-")
	{
	}
else
	{
	p = "a-" + location.pathname.substring(1);
	window.location = p;
	}
//for(i=url.length-1; i>0; i--)
//	{
//	c=url.charAt(i);
//	if (c == "/")
//		{
//		x=i-1
//		}
//	}
}
function GetSubject()
{
//prev = history.previous;
//alert("hi " + prev);
alert("hi");
}


-->
