// JavaScript Document
var mylinks;
function closemywindow(mylocation){
parent.parent.document.location.href="flowers.php?flora_country="+mylocation;
parent.parent.GB_hide();
}
function gettinglink(thelink){
	mylinks=thelink;	
}
function sendorder(){
theelements=document.myform.elements.length;
var theselected;
//alert(theelements);
if(theelements==1){
	//alert(document.myform.myflower.checked);
	if(document.myform.myflower.checked){
		theselected=0;
	}
}else{
for(i=0;i<theelements;i++){
	//alert(i+"..........document.myform.myflower["+i+"].checked");
	if(document.myform.myflower[i].checked){
		theselected=i;	
	}
}
}
if(theselected==undefined){
	alert("No values selected");
}else{
	parent.parent.document.location.href=mylinks;
	parent.parent.GB_hide();
}
}
function gosearch(thecountry){
document.location.href="flowers.php?flora_country="+thecountry+"&keyword="+document.getElementById('mysearch').value;	
}
function findenter(event,thecountry){
	if(navigator.appName == "Netscape") 
	Key = event.charCode;
    else Key = event.keyCode;
	Key =  event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    if(Key == 13) {
	gosearch(thecountry);	
	}
}