
function applyRadioCheckBoxStyle(formID){
	var elemResizeString = "radio,checkbox";
    var elem = document.forms[formID].elements;
    for(var i = 0; i < elem.length; i++){
	    if (elemResizeString.indexOf(elem[i].type) > -1){
            elem[i].style.backgroundColor = "transparent";
        }
    }
}
var timedWindow;

var winCloseTime = 60000;
function openTimedWindow(sourceFile){
	if(!timedWindow || timedWindow.closed){
		timedWindow = window.open(sourceFile,'','menubar=0,titlebar=0,toolbar=0,scrollbars=1,width=350,height=400');
		//setTimeout('timedWindow.close()',winCloseTime);
	}else{
		// window's already open; bring to front and refresh location
		timedWindow.location=sourceFile;
		
	}	
	timedWindow.focus(top);
}
function openWhatSpeedWindow(sourceFile){
	if(!timedWindow || timedWindow.closed){
		timedWindow = window.open(sourceFile,'','menubar=0,titlebar=0,toolbar=0,scrollbars=1,width=900,height=800');
		//setTimeout('timedWindow.close()',winCloseTime);
	}else{
		// window's already open; bring to front and refresh location
		timedWindow.location=sourceFile;
		
	}	
	timedWindow.focus(top);
}
function openModalWindow(sourceFile){
var modalWindow; 

	if (window.showModalDialog)
	{ 
		modalWindow = window.showModalDialog(sourceFile, 'NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,modal=1,width=400,height=400'); 
	}
	else
	{ 
		modalWindow = window.open(sourceFile, 'NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,modal=1,width=400,height=400');
		modalWindow.focus();
	}
}