///////////////////////////////////popup////////////////////////////////////

function CheckSearch()
{
	var bOK;
	var obj;
	obj = document.txtKeyWord
	bOK=true;

		if(obj.txtKeyWord.value == "") {
			alert("Form Help\n===================\nPlease enter the keyword\nyou wish to search for");
			obj.txtKeyWord.focus();
			bOK = false;
		}
    return bOK;
}

function legals() {
			window.open("../legals/legals.asp",'_blank',WinType);		
			}
			var WinType;
			WinType="width=400,height=470,left=380,top=50,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no";

function enquiryForm() {
			window.open("../contact/enquiry_form_popup.asp",'_blank',WinType2);		
			}
			var WinType2;
			WinType2="width=350,height=440,left=380,top=50,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";

///////////////////////////////////end popup////////////////////////////////////

//***********************************toggle subnav v2***********************************

function swapClass(){ //v1.4 by PVII
 var i,x,tB,j=0,tA=new Array(),arg=swapClass.arguments;
 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}
}
///////////////////////////////////end toggle subnav v2////////////////////////////////////

//***********************************print***********************************

var da = (document.all) ? 1 : 0; // browser is VB compatible
var pr = (window.print) ? 1 : 0; // must be NS4, IE5
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage() {

  if (pr)
  {
	if ((navigator.appName.substring(0,8) == "Netscape") && (parseInt(navigator.appVersion) <= 4))
	 {
		if ((parseInt(navigator.appVersion) == 4) && (parseInt(navigator.appMinorVersion) == 7)) {
			 alert("Page Help\n===================\nSorry, your browser doesn't\nsupport this feature.\nTo print this page on a\nMacintosh please use\nthe Command and P keys."); 
		}		
	}
	else {
		window.print();
	}
  }	
  else if (da && !mac)
    vbPrintPage()
  else
   
    alert("Page Help\n===================\nSorry, your browser doesn't\nsupport this feature.\nTo print this page on a\nMacintosh please use\nthe Command and P keys."); 
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}
///////////////////////////////////end print////////////////////////////////////

//***********************************select jumper***********************************

function quickFinder() {
	sWindow = document.forms[0].jumper.options[document.forms[0].jumper.selectedIndex].value;
			
	if (sWindow == 1) {
	window.open("../contact/","_self");							
	}

	if (sWindow == 2) {
	window.open("../contact/","_self");							
	}

	if (sWindow == 3) {
	window.open("../it_consultancy/","_self");							
	}

	if (sWindow == 4) {
	window.open("../login/","_self");							
	}


}	

///////////////////////////////////end select jumper////////////////////////////////////

//***********************************favourites***********************************

function favourites(){
		if (navigator.platform.indexOf('Mac') > -1){
		alert("Page Help\n===================\nSorry, your browser doesn't\nsupport this feature. To add\nthis page to your favourites\non a Macintosh please use\nthe Command and D keys.");
		}
		else {
		window.external.AddFavorite(location.href, document.title);
		}
		}
///////////////////////////////////end favourites////////////////////////////////////