j_limboo 0 Junior Poster in Training

I am newbee to javascript

wanted help!
I have google, yahoo, bing results to open in a frame without my domain name changing. The results for the query is shown in iframe. The results can be anything any domain. I am trying to see if javascript between those open and close head can do any magic.

Click on any results to query on iframe it should open in new window.

Again the results can be any domain

Here is the sample of the code

<html>
<head>
</head>
<body>
<form name="jksearch" action="http://www.google.com/search" method="get" onSubmit="jksitesearch(this)" target="iFrame2">

<b><p>Search Resumes in Google and Bing</p> </b><br />
<input id="hiddenquery" type="hidden" name="q" />
<input name="qfront" type="text" style="width: 200px" value="Search Resumes" />
<br />
<div style="font: bold 11px Verdana;">Google:<input name="se" type="radio" checked>  Bing:<input name="se" type="radio">
<br/>
<br/>
  

  <input type="submit" value="Search" />
</form>

<br/>
<br/>
<br/>

<?php
echo '<input type="button" value="Back To Results" onClick="history.go(-1);">';
echo "<br/>";
echo "<br/>";
echo '<input type="button" value="Previous Resume" onClick="history.go(1);">';
echo "<br/>";
?>


<script type="text/javascript">

var eliminate2="-jobs -apply -sample"
var type="(resume OR cv OR vitae)" 
var file4="(filetype:pdf OR filetype:doc OR filetype:rtf)"
var con2="(phone OR email OR cell OR home OR mobile)" 



var searchaction=[ //form action for the 2 search engines
"http://www.google.com/search",
"http://www.bing.com/search?q=",
]

var queryfieldname=["q","q"] //name of hidden query form for the 3 search engines

function switchaction(cur, index){
cur.form.action=searchaction[index]
document.getElementById("hiddenquery").name=queryfieldname[index]
}

function jksitesearch(curobj){
for (i=0; i< document.jksearch.se.length; i++){ //loop through radio to see which is checked
if (document.jksearch.se[i].checked==true)
switchaction(document.jksearch.se[i], i)
}
document.getElementById("hiddenquery").value=file4+" "+con2+" "+type+" "+curobj.qfront.value+" "+eliminate2
}


</script>



 
                          
                        
                         <div id="iFrame2" style="position:absolute; left:392px; top:311px; z-index:1; width: 646px;">
                
<iframe name="iFrame2" width="600" height="650" src="i_f_display.php" scrolling="yes" frameborder="1"></iframe>
</div>
</body>
</html>