var txtObj ;
var formObj ;
var rwObj ;

function initObjs() {
	initDisplayVars() ;
	txtObj = document.getElementById('introtext') ; 
	formObj = document.getElementById('inputform') ; 
	rwObj = document.getElementById('rw') ; 
}
function goYahoo() {
	setDisplays()
	window.frames["rw"].location = 'http://shopping.yahoo.com/search/?p='+formObj.brand.value+' '+ formObj.partno.value
}
function goNextag(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.nextag.com/'+formObj.brand.value+'-'+ formObj.partno.value
}
function goStreetprices(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.streetprices.com/x/search.cgi?query='+formObj.brand.value+' '+ formObj.partno.value
}
function goPronto(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.pronto.com/shop/'+formObj.brand.value+' '+ formObj.partno.value
}
function goPricerunner(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.pricerunner.co.uk/search?q='+formObj.brand.value+' '+ formObj.partno.value
}
function goGoogle(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.google.com/products?q='+formObj.brand.value+' '+ formObj.partno.value
}
function goPricegrabber(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.pricegrabber.com/'+formObj.brand.value+' '+ formObj.partno.value + '/products.html/form_keyword='+formObj.brand.value+'-'+ formObj.partno.value + '/st=query/sv=search_top' ; 
}
function goPricewatch(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.pricewatch.com/search?q='+formObj.brand.value+'+'+ formObj.partno.value ; 
}
function goShopping(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www3.shopping.com/xFS?KW='+formObj.brand.value+' '+ formObj.partno.value +'&CLT=SCH' ;
}
function goBizrate(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.bizrate.com/'+formObj.brand.value+'-'+ formObj.partno.value ;
}
function goMysimon(){
	setDisplays() ;
	window.frames["rw"].location = 'http://www.mysimon.com/find/'+formObj.brand.value+'-'+ formObj.partno.value ;
}
function setDisplays(){
	txtObj.style.display = 'none' ;
	rwObj.style.display = 'block' ;
	rwObj.style.height = (bdyH - 150) + 'px' ;
	rwObj.style.backgroundColor = '#FFFFFF' ; 
}

function resetform() {
	document.location.href = '/price.comparison.php';

}



