function popUp(URL, wid) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width="+wid+",height=500');");
}

function getById(id){
	if(document.getElementById){
		return document.getElementById(id);
	}else if(document.all){
		return document.all[id];
	}
	return null;
}
function displayhidden(id) {
	if(id.style.display!='none'){
		id.style.display='none';
	}else{
		id.style.display='block';
		}
	}

function encrypt_email(userid,domain)
	{
		var email = domain +'@' + userid;
		var TempBefore = '';
		var TempAfter = '';
		var NewString = '';
		var Start = 0;
		
		var WhereHash = email.indexOf ('@');
		for (Count = 1; Count <= WhereHash; Count ++)
		{
			TempBefore += email.substring (Start, Count);
			Start++
		}
		Start = WhereHash;
		Start ++
		WhereHash +=2;
		for (Count = WhereHash; Count <=email.length; Count++)
		{
			TempAfter +=email.substring (Start, Count)
			Start++
		}
		NewString = TempAfter +'@' + TempBefore;
		parent.location = 'mailto:'+NewString;
	}
