//open window scripts
function eOpener(page) {
var popwin;
popwin = window.open(page,'edit','toolbar=no,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no,Height=350,Width=502');
popwin.focus();
}
function eOpener2(page) {
var popwin;
popwin = window.open(page,'stocks');
popwin.focus();
}
function eOpener3(page) {
var popwin;
popwin = window.open(page,'image','Height=425,Width=510');
popwin.focus();
}

//used by stock other objects may use it too
//opens a window to submit a form
function PPAnoth(form, url, name, widgets){
  form.action=url ;
  var popupwin;
  popupWin = window.open('', name, widgets);
  popupWin.focus();
  form.submit();
}

//used by votepoll
//opens a window to submit a form
function PollForm(form, url, name, widgets){


var i;

if (form.rdoPollIDChoose.length == null) {

	
	var selectedPoll = form.rdoPollIDChoose.value;
	var zap = (url + selectedPoll);
	
}

else {
		for (i=0; i < form.rdoPollIDChoose.length; i++) {
		  if (form.rdoPollIDChoose[i].checked == true) {
		  var selectedPoll = form.rdoPollIDChoose[i].value;

			
		  var zap = (url + selectedPoll);
			 }
		  }
		 
		
}

var popupwin;
  popupWin = window.open(zap, name, widgets);
  popupWin.focus();

 }

/*
function CurResults(url, name, widgets){

var i;
for (i=0; i < form.rdoPollIDChoose.length; i++) {
  if (form.rdoPollIDChoose[i].checked == true) {
  var selectedPoll = form.rdoPollIDChoose[i].value;
  var zap= url + selectedPoll;
	 }
  }
var popupwin;
popupWin = window.open(zap, name, widgets);
popupWin.focus();
 
}
*/
            
function pollSubPop (url, name, widgets) 
{
    var popupwin;            
    popupWin = window.open(url, name, widgets);
    popupWin.focus();
}
   

//note pad script
function selectText(form) {
form.textarea1.focus();
form.textarea1.select();
}

//useles knowledge q and a script
function setDiv(nm,value){
 if (document.all) { // IE 4 & IE 5
   style=document.all(nm).style
 } 
 else {
        if (document.getElementById) { // IE 5, NN6 & Opera 
            style = document.getElementById(nm).style
        }
       else {
                if (document.layers) { // NN 4
                   style = document.layers[nm]
                }
               else {
                        style = null // all other browsers
               }
       }
 } 
 if (style) {
    if (value) {
       style.visibility= "inherit" // element inherits visibility 
    }
    else {
             style.visibility= "hidden" // hide the element
     }
 }
 return false;
}



          
 

