function openSCWindow(url, windowName) {
	if (!window.focus) {
		return;
	}
	var myWin = window.open("help.html");
	myWin.focus();
	url.target = windowName;
}



//**********Trim results from the keyword list**************
function trimKeyword()
{
var takeTb = dwr.util.getValue("tb");
var temptb = new Array();
temptb = takeTb.split('%');
}
  
 function dispAll()
 {
 var continent = dwr.util.getValue("continent");
 daacList.getData(continent, updateCountryList);  
 }  
//*****************************************************  //   

    function spatial(place)
     {      	          
	SpatialList.getSpatialList(place, createList);
     }  
    function createList(data)
     {
     DWRUtil.removeAllOptions("placeList");
     DWRUtil.addOptions("placeList", data);
     }
	 if (window.addEventListener) {
 	 window.addEventListener("load", init, false);
	 }
	 else if (window.attachEvent) {
 	 window.attachEvent("onload", init);
	 }
	 else {
	 window.onload = init;
  	 }

	function init() {
 	DWRUtil.useLoadingMessage();
 	}
 //*****Display Alert for Help***********************
 function doAlert(){
 alert("Help feature will be available soon!");
 } 
 //*********************************************************
 function completeBound()
 {
 var splitter =new Array();
        splitter[0] = dwr.util.getValue("north");
        splitter[1] = dwr.util.getValue("west");
        splitter[2] = dwr.util.getValue("south");
        splitter[3] = dwr.util.getValue("east");
        
        joiner = new Array();
        joiner = splitter.join(",");
        dwr.util.setValue("complete",joiner);  
        query();  
 }


//Con trolling table in the Full page
function expandcontract(tbodyid,dis) {
  document.getElementById(tbodyid).style.display = dis;
}

function addmoredropdown(i){
var int = i;
document.getElementById("addMore").style.display = "block";
int++;
}
