/**
 * @author kberger
 */


function checkboxForother(obj, div, other, fname) { 
// obj is the parent
//div is the hidden text
//other is the id of the other input
//fname is the form input name

 if (!document.layers) { 
 var txt = document.getElementById(other); 
 var dname = document.getElementById(div);
 

 
 if (obj.checked == false) { //obj.value == "Other") { 
 dname.style.display = "none"; 
 txt.name = ""; 
 obj.name = fname; 
 } else { 

  dname.style.display = "inline"; 
 // gives the text field the name of the drop-down, for easy processing 
 txt.name = fname; 
 obj.name = ""; 
 } 
 } 
} 



function checkForother(obj, div, other, fname) { 
// obj is the parent
//div is the hidden text
//other is the id of the other input
//fname is the form input name

 if (!document.layers) { 
 var txt = document.getElementById(other); 
 var dname = document.getElementById(div);
 

 
 if (obj.value == "Other") {  //
  dname.style.display = "inline"; 
 // gives the text field the name of the drop-down, for easy processing 
 txt.name = fname; 
 obj.name = ""; 
 } else { 
  dname.style.display = "none"; 
 txt.name = ""; 
 obj.name = fname; 
 } 
 } 
} 

function popUp(URL) {
rand_no = Math.ceil(Math.random() * 4);

if (rand_no==1)
{
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=576,height=576');");

}
}


