
<!--


IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;

function clickIE()
{
    return false;
}

function clickNS(e)
{
	if (e.which==2 || e.which==3) 
     {
       return false;
     }
}
if (!IE4plus) 
{
   document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
   document.onmousedown=clickNS;
   document.onmouseup= clickNS;
   document.oncontextmenu=clickIE; // For NS 6+
} 
else 
{
   document.onmouseup= clickIE;
   document.oncontextmenu=clickIE;
}





	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName == "Netscape" && browserVer >= 3) {
		version = "n3";
		iebrowser = false;
		}
	else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) {
		version = "n3";
		iebrowser = true;
		}
	else {
		version = "n2";
	}

	//No right click
	var message="Copyright© 2003";
	function click(e)
	{
		if (document.all)
		{
			if(event.button==2||event.button==3)
			{
				alert(message);
				return false;
			}
		}
		else if (document.layers||document.getElementById)
		{
			if (e.which==3)
			{
				alert(message);
				return false;
			}
		}
	}
	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);
	}
	//document.onmousedown=click;
	
	function openweather(wcode){
		var strurl = 'http://oap.weather.com/fcgi-bin/oap/generate_viewer_int?loc_id=' + wcode + '&from=internal&par=internal&code=207831&site=viewer&promo=english'
		window.open(strurl,'Weather','height=250,width=520,scrollbars=yes,resizable,menubar=no');
	}
	
	function openWindow(strPage){
	top.location.href=strPage
	}

	function popupwindow(myLink){
		//var intwidth=window.screen.width/2
		//var intheight=intwidth/2
		//var strWindow="height=" + intheight + ",width=" + intwidth + ",scrollbars=yes,resizable,menubar=yes";
		//var myWin=window.open(myLink,"",strWindow);
		//myWin.focus(); 
		setValue('site', myLink);
		window.location.href="http://www.upafrica.com/common/displaysite.asp?ext=1"
	}

	if (version == "n3") {
	//				tab_bus = new Image();
	//				tab_bus.src = "images/tab_business.gif";

	//				tab_edu = new Image();
	//				tab_edu.src = "images/tab_education.gif";

	//				tab_news = new Image();
	//				tab_news.src = "images/tab_news.gif";

	//				tab_org = new Image();
	//				tab_org.src = "images/tab_organization.gif";

	//				tab_serv = new Image();
	//				tab_serv.src = "images/tab_services.gif";

	//				tab_travel = new Image();
	//				tab_travel.src = "images/tab_travel.gif";

	//				tab_links = new Image();
	//				tab_links.src = "images/tab_links.gif";
	}

//**********************************************************************************************


	function tab_change(imgName) {
	   if (version == "n3") {
	      activetab = eval(imgName + ".src");
	      document ["resmenu"].src = activetab;

	      if (iebrowser == true){
			document.parentWindow.focus()
		  }
	   }
	}

	function mOvr(src,clrOver){ 
		if (!src.contains(event.fromElement)){ 
			src.style.cursor = 'hand'; 
			src.bgColor = clrOver; 
		} 
	} 
	function mOut(src,clrIn){ 
		if (!src.contains(event.toElement)){ 
			src.style.cursor = 'default'; 
			src.bgColor = clrIn; 
		} 
	} 
	function mClk(src){ 
		if(event.srcElement.tagName=='TD')
			src.children.tags('A')[0].click();
	}

	function ProcessData(){
		CheckNameInput();
	}
		
	// Check for null and for empty
	function isFilled(strVal){
	    if (strVal.value == "" || strVal.value == null){
			return false;}
	    else {return true;}
	}

	function isEmail(str) {
	    if (str.value.indexOf("@") + "" != "-1" &&
	        str.value.indexOf(".") + "" != "-1" &&
	        str.value != "") 
	    return true;
	    else return false;
	}

	function CheckNameInput(){
		if (isFilled(document.dataform.name)==false){
		  window.alert("Name is required.");
		  document.dataform.name.focus();}
		else{
			CheckPhoneInput();
		}		
	}

	function CheckPhoneInput(){
		if (isFilled(document.dataform.phone)==false){
		  window.alert("Enter valid Phone Number.");
		  document.dataform.phone.focus();}
		else{
			CheckEmailInput();
		}		
	}

	function CheckEmailInput(){
		if (isEmail(document.dataform.email)==false){
		  window.alert("Valid E-Mail address is required.");
		  document.dataform.email.focus();}
		else{
			CheckCommentInput();
		}		
	}

	function CheckCommentInput(){
		if (isFilled(document.dataform.comments)==false){
		  window.alert("Tell us what you want us to do.");
		  document.dataform.comments.focus();}
		else{
			document.dataform.submit();
		}		
	}

	function ValidateEmailInput(){
		if (isEmail(document.EmailForm.email)==false){
		  window.alert("Valid E-Mail address is required.");
		  document.EmailForm.email.focus();}
		else{
			document.EmailForm.submit();
		}		
	}

	function getValue(name){
	var cname = name + "=";
	var dc = document.cookie;
	    if (dc.length > 0) {
	    begin = dc.indexOf(cname);
	        if (begin != -1) {
	        begin += cname.length;
	        end = dc.indexOf(";", begin);
	            if (end == -1) end = dc.length;
	            return unescape(dc.substring(begin, end));
	        }
	    }
	return "";
	}
	
	function setValue(name, value) {
	document.cookie = name + "=" + escape(value) + "; path=/";
	}

	function setBrowser() {
	setValue('BrowserType', navigator.appName);
	setValue('DomainName', document.location.hostname);
	}

	function SubmitProcess(){
		if (getValue('pt')=='check'){
			top.location.href="payment.asp";}
		else{
			document.frmOrder.submit();
		}
	}


	function Redirect()
	{
		top.location.href= "network.asp?n=1";
	}
	function RedirectWithDelay()
	{
		window.setTimeout("Redirect();", 2000);
	}

  	setValue('pt', 'credit');
	setBrowser();

//-->
