// JavaScript Document

function googlesubmit(){
		document.google.q.value = document.getElementById('searchfield').value;
		document.google.submit();
		}
		
function yahoosubmit(){
		document.yahoo.p.value = document.getElementById('searchfield').value;
		document.yahoo.submit();
		}
		
function livesubmit(){
		document.live.q.value = document.getElementById('searchfield').value;
		document.live.submit();
		}
		
function asksubmit(){
		document.ask.q.value = document.getElementById('searchfield').value;
		document.ask.submit();
		}
		
		
function cchover(thisvar){
	thisvar.className='togglerhover atStart';
}

function ccout(thisvar){
	thisvar.className='toggler atStart';
}


function highlight(box, obj, pri)
{
     var color1 = '#fdb845';
     var color2 = '';
	 var currentpri = document.getElementById("pricefill").innerHTML;
	 
     document.getElementById(obj).style.background = (box.checked ? color1 : color2);
	 document.getElementById("pricefill").innerHTML = (box.checked ? (parseInt(currentpri) + parseInt(pri)) : (parseInt(currentpri) - parseInt(pri)));

}

function startselect(obj, pri)
{
     var color1 = '#fdb845';
     var color2 = '';
	 var currentpri = document.getElementById("pricefill").innerHTML;
	 
     document.getElementById(obj).style.background = color1;
	 document.getElementById("pricefill").innerHTML = parseInt(currentpri) + parseInt(pri);

}


function hidepain(){
document.getElementById('pain1').style.overflow = "hidden";
document.getElementById('pain2').style.overflow = "hidden";
}

function showpain(){
document.getElementById('pain1').style.overflow = "auto";
document.getElementById('pain2').style.overflow = "auto";
}