function openURL(vLink, vHeight, vWidth)
		{
		    var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;
		
		    if (sLink == '')
		    {
		        return false;
		    }
		
	        winDef = 'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(',');	    
		    winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
		    winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
		    newwin = open(vLink, 'BPortal', winDef);
		
		    if (typeof(vLink.href) != 'undefined')
		    {
		        return false;
		    }
		}
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("input");
	
	for (var i=0; i<inputs.length; i++){
		// test to see if the hint span exists first
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			// the span exists!  on focus, show the hint
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			// when the cursor moves away from the field, hide the hint
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
	// repeat the same tests as above for selects
	var selects = document.getElementsByTagName("select");
	for (var k=0; k<selects.length; k++){
		if (selects[k].parentNode.getElementsByTagName("span")[0]) {
			selects[k].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			selects[k].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
	// repeat the same tests as above for textarea
	var textarea = document.getElementsByTagName("textarea");
	for (var k=0; k<textarea.length; k++){
		if (textarea[k].parentNode.getElementsByTagName("span")[0]) {
			textarea[k].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			textarea[k].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
}
addLoadEvent(prepareInputsForHints);
addLoadEvent(initializeBcmsDesktop);
function initializeBcmsDesktop(){
	document.getElementById("BcmsAdditional").style.display='none';
	}
	
	
	
var sctt_tab_selected = "tabRequire";
function SCTT_change_tab( this_id )
{
	if ( this_id != sctt_tab_selected )
	{
		document.getElementById( this_id ).className = "tab_on"; 
		
		document.getElementById( sctt_tab_selected ).className = "tab_off"; 
				
		sctt_tab_selected = this_id;					
	}
	
	if(sctt_tab_selected=="tabRequire")
	{		
	    document.getElementById("tblRequire").style.display="inline";
	    document.getElementById("tblOptional").style.display="none";
	    document.getElementById("tblHelp").style.display="none";
	}
	else if(sctt_tab_selected=="tabHelp")
	{
	    document.getElementById("tblHelp").style.display="inline";
	    document.getElementById("tblOptional").style.display="none";
	    document.getElementById("tblRequire").style.display="none";
	}	
	else
	{
	    document.getElementById("tblHelp").style.display="none";
	    document.getElementById("tblOptional").style.display="inline";
	    document.getElementById("tblRequire").style.display="none";
	}	
}
