// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function jumpToPage(jumpURL) {
	window.location = jumpURL;
}

// ===============================

function viewHelp(topic) {
	aWindow=window.open(topic,"", "toolbar=no,status=no,width=400,height=500,scrollbars=yes,resizable=yes");
	}

// ===============================

function viewPhoto(topic) {
	aWindow=window.open(topic,"", "toolbar=no,status=no,width=600,height=400,scrollbars=yes,resizable=yes");
	}

// ===============================

function toggleDisplayBlock(idOf) {
	var element = document.getElementById(idOf);
	if (element != undefined) {
		if (element.style.display == 'none')
		{ element.style.display = 'block'; }
		else
		{ element.style.display = 'none'; }
		}
	}

function displayBlockOff(idOf) {
	var element = document.getElementById(idOf);
	element.style.display = 'none';
	}

function displayBlockOn(idOf) {
	var element = document.getElementById(idOf);
	element.style.display = 'block';
	}

// ===============================

function showPswdAsText() {
	if (document.forms['updatePswdForm'].elements['sas_target[pswd1]'].type == 'text') { 
		document.forms['updatePswdForm'].elements['sas_target[pswd1]'].type = 'password'; 
		document.forms['updatePswdForm'].elements['sas_target[pswd2]'].type = 'password'; 
		}
	else {
		document.forms['updatePswdForm'].elements['sas_target[pswd1]'].type = 'text'; 
		document.forms['updatePswdForm'].elements['sas_target[pswd2]'].type = 'text'; 
		}
	}
