function getRadioValue()

{
 

var ss = document.myca.sSearchString.value;

var ct = document.myca.ct.value;

var appPath = document.myca.appl_path.value;

 

 

// !!!!!!!!!!!!!!!!!!!!!!!

//alert("ss=" + ss);

//alert("appPath=" + appPath);

//alert("ct=" + ct);

 

var url = '';

 

 

if ( hasTags(ss)|| hasTags(ct)|| hasTags(appPath) ){

     alert('The following invalid characters are not allowed\n< & # !\nplease retry');

     return false;

 

}

 

 

if(document.myca.sSearchString.value !=''){

 

      if(document.myca.whosearch[0].checked)  {

               

         url = 'http://www.ca.gov/state/portal/myca_search_results.jsp?sSearchString=' + ss;

      }

      

      if(document.myca.whosearch[1].checked)  {

       url = 'http://www.dhs.ca.gov/common/search/search.asp?sSearchString=' + ss + '&q1=' + ss + '&ct=' + ct + '&appl_path=' + appPath;

      }

 

            

 

      var w = window.open(url,'Users','toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes');            

      w.focus();

      return false;

 

} else { 

     alert('Please enter a search Keyword');

     return false;

}

 

 

 

}

 

 

function hasTags( data ) 

{

      // RCalmann 11-06-06 check for script tags

      

      if ( data.length > 0 ) {

                  if ( data.indexOf("<") != -1 ) return true;

                  if ( data.indexOf("&") != -1 ) return true;

                  if ( data.indexOf("#") != -1 ) return true;

                  if ( data.indexOf("!") != -1 ) return true;

            }

 

      

      return false;

 

}

 

 

 

function OpenWindow(FileToShow,nWidth,nHeight) 

{

var objOpenWindow = window.open(FileToShow, 'YourWindowName', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=' + nWidth + ',height=' + nHeight);

}

