//Added
function getHostName(strPath) { 
	var strLocation = "";

  	strLocation = "http://" + document.location.hostname.toLowerCase() + strPath;
	document.location = strLocation;
	return strLocation;
}

function getSecureHostName(strPath) { 
	var strLocation = "";

  	strLocation = "https://" + document.location.hostname.toLowerCase() + strPath;
	document.location = strLocation;
	return strLocation;
}

function enterSubmit(form, e) {
	var keycode;
	var returnCode = true;
	
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	if (form) {
		if(keycode==13) {
			if(loginValidateForm()) {
				form.submit();
			}
			returnCode = false;
		}
	}
	return returnCode;
}

function printPage() {
  if (window.print) {
	  setTimeout('window.print();',100);
	}
}
function form_submit(formName){
	var form = getObj(formName);
	if(form)form.submit();
}

function tabInit(mainCont, navCont, content, panelToShow)
{
    var c = document.getElementById(mainCont);
    var nav = document.getElementById(navCont);
    var content = document.getElementById(content);
    var panel = document.getElementById(panelToShow);
    
    for(i=0; i < content.childNodes.length; i++)
    {
        if(content.childNodes[i] == panel)
        {
            panel.style.display = '';
        }
        else
        {
            content.childNodes[i].style.display = 'none';
        }
    }   
}

function tabShow(element)
{  
	return;
    
    for(i = 0; i < navCont.childNodes.length; i++)
    {  
        if(navCont.childNodes[i].childNodes[0] == activeTab)
        {
            navCont.childNodes[i].childNodes[0].className = 'active';
        }
        else
        {
            navCont.childNodes[i].childNodes[0].className = null;
        }
    }
    
    for(i=0; i < content.childNodes.length; i++)
    {
        if(content.childNodes[i] == panel)
        {
            content.childNodes[i].style.display = '';
        }
        else
        {
            content.childNodes[i].style.display = 'none';
        }
    }
}
