		function switchLang(){
		var url;
		var loc = top.location.href.indexOf('/ukm2');
		if (loc>-1)
		{
			url = top.location.href.replace('ukm2/', '');
		}else{
			if (top.location.port)
			{
				url = top.location.href.replace(top.location.hostname + ':' + top.location.port , top.location.hostname + ':' + top.location.port + '/ukm2');
		}else{
				url = top.location.href.replace(top.location.hostname, top.location.hostname + '/ukm2');
			}
		}
		top.location.replace(url);
	}

function HighlightAll(theField) {
var tempval=eval("document."+theField);
tempval.focus();
tempval.select();
if (document.all&&copytoclip==1&&tempval.createTextRange){
therange=tempval.createTextRange()
if(therange.execCommand)
therange.execCommand("Copy")
else
return;
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}

<!-- Cookie script - Scott Andrew Start-->
<!-- Popup script, Copyright 2005, Sandeep Gangadharan --> 
<!-- For more free scripts go to http://www.sivamdesign.com/scripts/ -->
<!--
function newCookie(name,value,days) {
 var days = 1;   // the number at the left reflects the number of days for the cookie to last
                 // modify it according to your needs
 if (days) {
   var date = new Date();
   date.setTime(date.getTime()+(days*24*60*60*1000));
   var expires = "; expires="+date.toGMTString(); }
   else var expires = "";
   document.cookie = name+"="+value+expires+"; path=/"; }

function readCookie(name) {
   var nameSG = name + "=";
   var nuller = '';
  if (document.cookie.indexOf(nameSG) == -1)
    return nuller;

   var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
  if (c.indexOf(nameSG) == 0) return c.substring(nameSG.length,c.length); }
    return null; }

function eraseCookie(name) {
  newCookie(name,"",1); }

function toMem(frm) {
	if (frm.checker.checked) {

    if (frm.strUserName) newCookie('UserName', frm.strUserName.value);     // add a new cookie as shown at left for every
    if (frm.strUserNameF) newCookie('UserName', frm.strUserNameF.value);     // add a new cookie as shown at left for every

	if (frm.strPassword) newCookie('Password', frm.strPassword.value);   // field you wish to have the script remember
	if (frm.strPasswordF) newCookie('Password', frm.strPasswordF.value);   // field you wish to have the script remember
	}else{
		delMem(frm) ;
	}
}

function delMem(frm) {
  eraseCookie('UserName');   // make sure to add the eraseCookie function for every field
  eraseCookie('Password');

   if (frm.strUserName) frm.strUserName.value = '';   // add a line for every field
   if (frm.strUserNameF) frm.strUserNameF.value = '';   // add a line for every field

   if (frm.strPassword) frm.strPassword.value = ''; 
   if (frm.strPasswordF) frm.strPasswordF.value = ''; 
}

function setLogin(frm){
   if (frm.strUserName) frm.strUserName.value = readCookie('UserName');   // add a line for every field
   if (frm.strUserNameF) frm.strUserNameF.value = readCookie('UserName');   // add a line for every field
   
   if (frm.strPassword) frm.strPassword.value = readCookie('Password');   // add a line for every field
   if (frm.strPasswordF) frm.strPasswordF.value = readCookie('Password');   // add a line for every field
}

<!-- Cookie script - Scott Andrew End-->
//-->

function checkscript() {

var boxesTicked = ""

for (i = document.getElementsByName('sitesearch').length - 1; i >= 0; i--) {

if (document.getElementsByName('sitesearch')[i].checked) {

boxesTicked = boxesTicked + document.getElementsByName('sitesearch')[i].value + "\n"

}

}
}


function CheckJS()
{
{
 /* check for a cookie */
  if (document.cookie == "") 
  {
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
    alert("COOKIES need to be enabled!");

    /* If the user has Cookies disabled an alert will let him know 
        that cookies need to be enabled to log on.*/ 

    document.frmIndex.cookieexists.value ="false"  
  } else {
   /* this sets the value to true and nothing else will happen,
       the user will be able to log on*/
    document.frmIndex.cookieexists.value ="true"
  }
}

/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
document.cookie = 'killme' + escape('nothing')
}

