function login(baseUrl,strUrl,tk,account){
	// Create a form
	loginForm = document.createElement('FORM');
	loginForm.method = 'post';
	loginForm.action = baseUrl + '/SecuredLogin/multi-site.asp';
	loginForm.setAttribute('name', 'secureLoginForm')
			
	textField = document.createElement('INPUT');
	textField.type = 'hidden';
	textField.setAttribute('value',tk);
	textField.setAttribute('name', 'tk');
	loginForm.appendChild(textField);
		
	textField = document.createElement('INPUT');
	textField.type = 'hidden';
	textField.setAttribute('value',account);
	textField.setAttribute('name', 'account');
	loginForm.appendChild(textField);

	textField = document.createElement('INPUT');
	textField.type = 'hidden';
	textField.setAttribute('value',strUrl);
	textField.setAttribute('name', 'goto');
	loginForm.appendChild(textField);
			
	textField = document.createElement('INPUT');
	textField.type = 'hidden';
	textField.setAttribute('value','LOGIN');
	textField.setAttribute('name', 'action');
	loginForm.appendChild(textField);

	document.body.appendChild(loginForm);
			
	loginForm.submit();
}

function popUpWindow(pgUrl,pgWidth,pgHeight){
	lPos = (window.screen.width - pgWidth) / 2;
	tPos = (window.screen.height - pgHeight) / 2;
	popUp= window.open(pgUrl,"popUp","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + pgWidth + ",height=" + pgHeight + ",top=" + tPos + ",left=" + lPos);
	popUp.focus();
}

