function popUser(docsrc) {
	var docwidth = 500, docheight = 400, docleft = ((screen.width/2) - 400), doctop = ((screen.height/2) - 200);
	if (window.winR && window.winR.open && !window.winR.closed){
		winR.focus();
	}
	else
	{
		winR = window.open(docsrc, 'Useragreement', 'toolbars=no,scrollbars=yes,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}


function popUp1(docsrc) {
	var docwidth = 470, docheight = 470, docleft = ((screen.width/2) - 150), doctop = ((screen.width/2) - 250);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Popup1', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popUp2(docsrc) {
	var docwidth = 380, docheight = 450, docleft = ((screen.width/2) - 0), doctop = ((screen.width/2) - 400);
	if (window.win2 && window.win2.open && !window.win2.closed){
		win2.focus();
	}
	else
	{
		win2 = window.open(docsrc, 'popup2', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function country(theURL)
{
	opener.document.location.href=theURL;
	window.close();
}

function MM_openBrWindow(theURL,winName) { //v2.0
	var docwidth = 350, docheight = 450, docleft = ((screen.width/2) - 365), doctop = ((screen.width/2) - 400);
	locwin = window.open(theURL,winName,'toolbars=no,scrollbars=yes,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
}

function closeLocWin()
{
	if (locwin && locwin.open && !locwin.closed){
		locwin.close();
	}
}

function popEnrich(docsrc) {
	var docwidth = 500, docheight = 400, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=yes,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popMap(docsrc) {
	var docwidth = 370, docheight = 400, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=yes,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popBotswana(docsrc) {
	var docwidth = 350, docheight = 420, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popKenya(docsrc) {
	var docwidth = 350, docheight = 470, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popMozambique(docsrc) {
	var docwidth = 350, docheight = 633, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popNamibia(docsrc) {
	var docwidth = 350, docheight = 410, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popSa(docsrc) {
	var docwidth = 350, docheight = 386, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popTanzania(docsrc) {
	var docwidth = 350, docheight = 410, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popZambia(docsrc) {
	var docwidth = 350, docheight = 330, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popZimbabwe(docsrc) {
	var docwidth = 350, docheight = 372, docleft = ((screen.width/2) - 250), doctop = ((screen.height/2) - 200);
	if (window.win && window.win.open && !window.win.closed){
		win.focus();
	}
	else
	{
		win = window.open(docsrc, 'Enrichment', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function info(theURL)
{
	opener.document.location.href=theURL;
}

function virtual_info(theURL,winName) { //v2.0
	var docwidth = 300, docheight = 400, docleft = ((screen.width/2) - 400), doctop = ((screen.width/2) - 450);
	locwin1 = window.open(theURL,winName,'toolbars=no,scrollbars=yes,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
}

function popUp4(docsrc) {
	var docwidth = 530, docheight = 500, docleft = ((screen.width/2) - 200), doctop = ((screen.width/2) - 300);
	if (window.win4 && window.win4.open && !window.win4.closed){
		win4.focus();
	}
	else
	{
		win4 = window.open(docsrc, 'popup4', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}

function popUp5(docsrc) {
	var docwidth = 400, docheight = 400, docleft = ((screen.width/2) - 20), doctop = ((screen.width/2) - 450);
	if (window.win5 && window.win5.open && !window.win5.closed){
		win5.focus();
	}
	else
	{
		win5 = window.open(docsrc, 'popup5', 'toolbars=no,scrollbars=no,location=no,statusbars=no,menubars=no,resizable=no,width=' + docwidth + ',height=' + docheight + ',left=' + docleft + ',top=' + doctop);
	}
}


self.name = "main"; // names current window as "main" //-->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function doContactCheck(){
	var bOK=true;
	var sMsgRoot='Please enter your details for the following field(s): ';
	var sMsg='';
	var sTmp='';
	for(var i=0;i<document.contact_form.length;i++){
		var sName=document.contact_form.elements[i].name;
		var sValue=document.contact_form.elements[i].value;
		if((sName=='fullname'||sName=='email'||sName=='telephone')&&sValue==''){sTmp=sName; bOK=false};
		if(sTmp!='') sMsg+=sTmp+","
		sTmp='';
	}
	if(bOK==true){
		document.contact_form.submit();
	}
	else{
		sMsg=sMsg.slice(0,-1);
		sTmp=sMsg.split(",");
		var j=sTmp.length-1;
		for(var i=0;i<sTmp.length;i++){
			if(i==j&&j==0){sMsgRoot+=sMsg;}
			if(j>0){
				if((i+1)<j) sMsgRoot+=sTmp[i]+', ';
				if((i+1)==j) sMsgRoot+=sTmp[i];
				if(i==j) sMsgRoot+=' and '+sTmp[i];
			}
		}
		alert(sMsgRoot);
	}
}