
// ---------- script properties ----------


var results_location = "results.html";


// ---------- end of script properties ----------


function search_form(form1) {
	if (form1.d.value.length > 0) {
		document.cookie = "d=" + escape(form1.d.value);
		window.open(results_location,'main1');
	}
}

function handleEnter(inField, e) {
    var charCode;
    
    if(e && e.which){
        charCode = e.which;
    }else if(window.event){
        e = window.event;
        charCode = e.keyCode;
    }

    if(charCode == 13) {
  
     search_form(form1);
      return false;
    }
}
function handleEnter1(inField, e) {
    var charCode;
    
    if(e && e.which){
        charCode = e.which;
    }else if(window.event){
        e = window.event;
        charCode = e.keyCode;
    }

    if(charCode == 13) {
   
     void(0);
    }
}

 
