// finestre popup

function openWindow(url, name, features) { 
	var theWindow= null;    
	theWindow = window.open(url, name, features); 
	theWindow.window.focus();
} 

function openWindow2(url, name, width, height) { 
	var theWindow = null;    
	var features = 'status=yes, scrollbars=yes,resizable=yes,' + ',height=' + height + ',width=' + width;
	theWindow = window.open(url, name, features); 
	theWindow.window.focus();
} 

// email protection

	function Transpose_Email(userid,domain,subject)
	{
		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+'?subject='+subject;
	}
