var tmp_tmp_title = document.title;
document.title = tmp_tmp_title.replace("UNIFEM","UN Women");
function OpenPopup1(URL)
		{
			window.open(URL, '_Blank', 'status=no,location=no,scrollbars=yes, height=500, width=900, MenuBar=yes, Toolbar=yes');
		}
function openPopup(pagePath,iWidth,iHeight,forPrint,useUnique,keepOpen){
			var iWinWidth = (iWidth) ? parseInt(iWidth) : 455;
			var iWinHeight = (iHeight) ? parseInt(iHeight) : 380;
			
			pagePath = String(pagePath);//.toLowerCase()
			// if other arguments exist, the first after url overwrites width of window
			
			
			//if (iWidth) iWinWidth = iWidth;
			//if (iHeight) iWinHeight = iHeight;
						
			var iAvailWidth = screen.availWidth - 40;
			var iAvailHeight = screen.availHeight - 40;
			if (iAvailWidth < iWinWidth) iWinWidth = iAvailWidth;
			if (iAvailHeight < iWinHeight) iWinHeight = iAvailHeight;
			// also center position of window
			var iLeft = (iAvailWidth - iWinWidth)/2;
			var iTop = (iAvailHeight - iWinHeight)/2;
			
			// make a function to generate window name unique or non unique as requested
			// close or do not close opened windows
			// add window to global least level array in opened windows stack
						
			var newWinName = (useUnique) ? getWindowName() : 'newWindow'; 
			
			var GlobalArray = (!keepOpen) ?  getGlobalArray() : new Array();
			
			if (forPrint)
				GlobalArray[GlobalArray.length] = window.open(pagePath,newWinName,'width='+ iWinWidth +',left='+ iLeft +',top='+ iTop +',height='+ iWinHeight +',toolbar=0,status=0,menubar=1,resizable=1,scrollbars=1');
			else
				GlobalArray[GlobalArray.length] = window.open(pagePath,newWinName,'width='+ iWinWidth +',left='+ iLeft +',top='+ iTop +',height='+ iWinHeight +',toolbar=0,status=0,menubar=0,resizable=1,scrollbars=1');
				
			
			GlobalArray[GlobalArray.length-1].focus();	
			
			
		//	if (event)
		//	{
		//		event.cancelBubble = true;
		//		event.returnValue = false;			
		//	}
			
		}
		
		var MenuIsOpen = false;
		
		function openModal(pagePath,iWidth,iHeight,isModal){
			var iWinWidth = (iWidth) ? parseInt(iWidth) : 455;
			var iWinHeight = (iHeight) ? parseInt(iHeight) : 380;
			
			pagePath = String(pagePath).toLowerCase();
			
			var iAvailWidth = screen.availWidth;
			var iAvailHeight = screen.availHeight;
			if (iAvailWidth < iWinWidth) iWinWidth = iAvailWidth;
			if (iAvailHeight < iWinHeight) iWinHeight = iAvailHeight;
			/*
			// also center position of window
			var iLeft = (iAvailWidth - iWinWidth)/2;
			var iTop = (iAvailHeight - iWinHeight)/2;
			*/
			// open either a modal or modless dialog according to isModal
						
			var modalReturn;
				
			if (isModal)
				modalReturn = showModalDialog(pagePath,window,'dialogHeight:'+ iWinHeight+ 'px;dialogWidth:'+ iWinWidth+'px ;center: yes ;resizable: no ;scroll: no;status:no');
			else{
				if (!MenuIsOpen) showModelessDialog(pagePath,window,'dialogHeight:'+ iWinHeight+ 'px;dialogWidth:'+ iWinWidth+'px ;center: yes ;resizable: no ;scroll: yes;help:no; status:no;');
				MenuIsOpen = true;
				// this line means i have to reset menuisopen upon closure of dialog!
				
			}
			
			if (event && isModal)
			{
				event.cancelBubble = true;
				event.returnValue = false;			
			}
			
			
			
		}
		
	var newWin = new Array();
	function getGlobalArray(){
		
		if (window.opener){
			
				if (window.opener.getGlobalArray ){
						//alert(window.opener.getGlobalArray);
					return window.opener.getGlobalArray();
				}else
					return newWin;
		}else
			return newWin;
	}
	function getWindowName(){
		// keep searching for a new unique ID
		
		var newID = window.document.uniqueID;
		if (window.newID){
			newID = window.document.body.uniqueID;
		}
		return newID;
	}
	
	function unloadPopup(){
										  
		// loop thru all opened windows and close only if this is the main window
		if (!window.opener){
			var i = 0;
			var newWinX;
			
			for (i=0; i<newWin.length; i++){
				
				if (window.newWin[i])
					if (!window.newWin[i].closed)
						window.newWin[i].close();
				newWin[i] = null;
			
			}
		}
		
		
		
	}
	var onLoadFocus = true; // set this to false in individual documents
	window.onunload = unloadPopup;
	window.onload = loadPage;
	var loadBodyFunc;
	
	function loadPage(){
		if (loadBodyFunc){
			eval(loadBodyFunc);
		}
		
		
	}
	
	
	
	
	
	
	function openPopupWindow(pagename)
			{
				window.open(pagename,'thispage','width=450,height=400,status=no,location=no,toolbar=no,scrollbars=yes')
			}
// begin absolutely positioned autoscroll area object scripts 

/*
Extension developed by David G. Miles (www.z3roadster.net/dreamweaver)
To add more shock to your site, visit www.DHTML Shock.com
*/

//Begin dHTML Tooltip Timer
var tipTimer;
//End dHTML Tooltip Timer

<!--
function locateObject(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=locateObject(n,d.layers[i].document); 
  
  return x;
}

function hideTooltip(object)
{
if (document.all)
{
	locateObject(object).style.visibility="hidden"
	locateObject(object).style.left = 1;
	locateObject(object).style.top = 1;
return false
}
else if (document.layers)
{
	locateObject(object).visibility="hide"
	locateObject(object).left = 1;
	locateObject(object).top = 1;
	return false
}
else
	return true
}

function showTooltip(object,e, tipContent, backcolor, bordercolor, textcolor, displaytime,direction)
{
	//window.clearTimeout(tipTimer)
	
	if (document.all)
		{
			locateObject(object).style.top = document.body.parentElement.scrollTop + event.clientY + 11
			
			//alert(tipContent);
			locateObject(object).innerHTML='<table style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; border: '+bordercolor+'; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; background-color: '+backcolor+'" width="10" border="0" cellspacing="1" cellpadding="1"><tr><td nowrap><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table> '

			if ((e.x + locateObject(object).clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
				{	
					locateObject(object).style.left = (document.body.clientWidth + document.body.scrollLeft) - locateObject(object).clientWidth-10;
				}
			else
			{
			if (direction == 'rtl')
			locateObject(object).style.left = document.body.scrollLeft + event.clientX -222
			else
			locateObject(object).style.left = document.body.scrollLeft + event.clientX 
			}
		locateObject(object).style.visibility="visible"
		//tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
		window.setTimeout("hideTooltip('"+object+"')", displaytime);
		}
	else if (document.layers)
		{
		locateObject(object).document.write('<table width="10" border="1" cellspacing="1" cellpadding="1"><tr bgcolor="'+bordercolor+'"><td><table width="10" border="0" cellspacing="0" cellpadding="2"><tr bgcolor="'+backcolor+'"><td nowrap><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table><td></tr></table>')
		locateObject(object).document.close()
		locateObject(object).top=e.y+11

		if ((e.x + locateObject(object).clip.width) > (window.pageXOffset + window.innerWidth))
			{
				locateObject(object).left = window.innerWidth - locateObject(object).clip.width-10;
			}
		else
			{
			locateObject(object).left=e.x;
			}
		locateObject(object).visibility="show"
		//tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
		window.setTimeout("hideTooltip('"+object+"')", displaytime);
	}
	else
	{
		return true
	}
}
//-->
/*****************************/						

	
	var GlobalMove = 0
function StopMe(){
	if(GlobalMove == 0){
	m1.stop()
	GlobalMove=1
	}
	else{
	m1.start()
	GlobalMove=0
	}	
}
			function open_win(pagename){
			
			window.open(pagename,'thispage',',width=350,height=115')
			/*window.parent.close()
			alert('The information has been sent') */
			}
        	/***************************/
        	function putFocus()
        	{
        		document.Form1.txtUsername.focus()
        	}
			
			
			
			
function correct(){
	var elem = document.getElementById("Float");
	// getclientboundingrect
	if (elem)
	{
	var rect = elem.parentElement.getBoundingClientRect();
	var rectTable = elem.getBoundingClientRect();
	
	
	var diff = (rect.bottom - rect.top) - (rectTable.bottom -rectTable.top);

	elem.style.pixelTop = parseInt(diff);
	}
}
window.onresize = correct;


function UnderDevelopment () {
alert('This feature is under development');
}
//JS
function ShowHideObject(objid,selectedvalue)
{
	var obj  = document.getElementById (objid);
	
	if (obj)
	{
		if (selectedvalue == 5)
			obj.style.display = 'none';
		else
			//obj.style.display = 'block';
			obj.style.display = '';
	}
}
//JS
//Print Page
function populateContent(){
	// find PrintContent main container
	if (!window.opener) return;
	
	var mainContainer = window.opener.document.getElementById('PrintContent');
		
	if (!mainContainer) return;
	
	var elem = document.getElementById('PrintContent');
	
	if (!elem) return;

	// grab "doPrint" elements
	//var elems = mainContainer.all;
	var elems = mainContainer.childNodes;
		
	doPrintContent(elems,elem);
}

function doPrintContent(cContainer,printElem){

	var sepDiv;
	var ccContainer;

	for (var i=0; i < cContainer.length; i++){

		if (cContainer[i].hasChildNodes())
		{				
			if (cContainer[i].getAttribute("doPrint") == "true")
			{
				prTitle = cContainer[i].getAttribute("prTitle");
				if (prTitle) 
					sepDiv = "<p class='bgGreyLight borderBotGreyDark'>"+ prTitle  + '</p>';
				else
					sepDiv = '';
					
				printElem.innerHTML += sepDiv + cContainer[i].innerHTML;
				//alert(printElem.innerHTML);
			}
			else
			{
				// span children as well
				if (cContainer[i].tagName == "IFRAME"){
					ccContainer = cContainer[i].ownerDocument.frames(cContainer[i].id).document.all;
					doPrintContent(ccContainer,printElem);
				}
				else
				{
					if (cContainer[i].hasChildNodes())
					{
						ccContainer = cContainer[i].childNodes;
						doPrintContent(ccContainer, printElem);
					}
				}
			}
		}
	}
}
function disableLinks(){
	
	var elem = document.getElementById('PrintContent');
	
	if (!elem) return;
	var elems = elem.getElementsByTagName("A");
	for (var i=0; i<elems.length; i++){
		elems[i].onclick = cancelEvent;
		elems[i].removeAttribute("href");
	}
}
function cancelEvent(evt){
	evt.returnValue = false;
	evt.cancelBubble = true;
	
}
