/* =========================================================================

JavaScript Source File -- Created with SAPIEN Technologies PrimalScript 4.0

NAME: 

AUTHOR: Chee Bee , A
DATE  : 9/21/2006

COMMENT: 

============================================================================ */
var turnedOff = false;

function removeCSS(){
	for(i=0;i<document.styleSheets.length;i++){
		void(document.styleSheets.item(i).disabled=true);
	}
	
	var element = document.getElementsByTagName('*');
	
	for( i=0; i < element.length; i++ ){
		void(element[i].style.cssText='');
	}
	//maybe move to
	turnedOff = true;
}


function toggleCss(){
	if (turnedOff){
		var userWillRestore = confirm("Enable CSS?\n\n\It will simply refresh this page to restore CSS formatting.\n");
		if (userWillRestore){
			document.location.reload();
		}
	}else{
		var userWillRemove = confirm("Disable CSS?\n\n\It will only last until you click \"Toggle CSS\" again,\nrefresh this page manually or navigate to any other page.\n");
		if (userWillRemove){
			removeCSS();
		}
	}
}
function submitPage(){
	returnString = "http://validator.w3.org/check?uri="+ document.location;
	var userWillSubmit = confirm("Submit page for XHTML validation?");
	if (userWillSubmit){
		location.href = returnString;
	}
}



