function change(idTab, newTitle, newSwapper) { 
	identity=document.getElementById("nav" + idTab);
	identity.className="current";
	identity=document.getElementById("title");
	identity.className="title-" + newTitle;
	identity=document.getElementById("swapper");
	identity.src="../graphics/inside_valid_" + newSwapper + "06.gif";
}

function PrintTable() {
        var features = "toolbar=yes,location=no,menubar=yes,scrollbars=yes,resizable=yes,0";
        var printReadyElem = document.getElementById("printReady");
		var html = printReadyElem.innerHTML;
		             
        var w = window.open("","mainview",features);
        var d = w.document;
        // Output an HTML document into the new window.
        d.write('<BODY  >');

		d.write(html);
		
        d.write('<A HREF="javascript:self.close()">Close</A>');    
        d.write('</BODY>');
        d.close();    
      
    return;
}
  
function gotoSearch(text) {
	var strSearch = encodeURI(text);
	window.location.href = "/web/general/search.aspx?q=" + strSearch;
}

// Copyright 2003 Eddie Traversa http://www.dhtmlnirvana.com/ free to use as long as this copyright notice stays intact
// This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Original:  AJ Slackmeyer (ajslackmeyer@hotmail.com)

var initSize = 8;

function changeFontSize(inc) {
	var percentArray = new Array('28%','34%','40%','46%','52%','58%','64%','70%','76%','82%','88%','94%','100%','110%','120%','130%','140%','150%','160%','170%','180%');
		
	if((document.getElementById)&& (document.getElementsByTagName('body')[0]!=null)) {
		var myElement = document.getElementsByTagName('body')[0];
		if ((myElement.style)&& (myElement.style.fontSize!=null)) {
			var size = initSize;
			size += inc;
			if (size < 0 ) {
				size = 0;
			}
			if (size > 20 ) {
				size = 20;
			}
						
			if(myElement.style.fontSize == percentArray[initSize]){
				document.getElementsByTagName('body')[0].style.fontSize = percentArray[size];
			}
			else {
				document.getElementsByTagName('body')[0].style.fontSize = defaultSize;      
			}
			
			initSize = size;
		}
		else {	
		return;
		}
	}
	else {
	return;
	}
}



//SAMPLE JAVASCRIPT

//function gotoSearch() 
  //      { 
    //            IsFormComplete("form1"); 
      //          var x = this.document.form1; 
        //        var searchText = x.searchbox.value; 
          //      searchText = escape(searchText); 
            //    var url = "/web/general/search.aspx?q=" + searchText; 
              //  parent.DETAIL.window.location = url; 
	//	}
	
// other supported styles myElement.style.fontSize = "24px"; myElement.style.fontFamily = "Verdana, Arial, Courier New"; myElement.style.textDecoration = "underline"; myElement.style.fontWeight = "normal"; myElement.style.visibility=="hidden";

//if (document.all)
//{     document.onkeydown = function ()
//     {     var key_enter= 13; // 13 = Enter
//          if (key_enter==event.keyCode)
//          {
//          event.keyCode=0;
//          gotoSearch(form1.searchbox.value);
//          return false;
//          }
//     }
//}

//var enablepersist="on" Enable saving state of content structure using session cookies? (on/off)
//var collapseprevious="no" Collapse previously open content when opening present? (yes/no)

//if (document.getElementById){
//document.write('<style type="text/css">')
//document.write('.switchcontent{display:none;}')
//document.write('</style>')
//}

//function getElementbyClass(classname){
//ccollect=new Array()
//var inc=0
//var alltags=document.all? document.all : document.getElementsByTagName("*")
//for (i=0; i<alltags.length; i++){
//if (alltags[i].className==classname)
//ccollect[inc++]=alltags[i]
//}
//}

// <a href="javascript:;" onClick="change('changeme', 'second');">RED</a>