function CountryChange(objCountry) {
 jumpto(objCountry.options[objCountry.selectedIndex].value);
}

function NewWindow(url,width,height) {
// var w = window.open(url,'','scrollbars=no,menubar=no,height='+height+',width='+width+',resizable=yes,toolbar=no,location=no,status=no');
 NewGenericWindow(url,width,height,'',null);
}

function NewNamedWindow(url,width,height,title) {
// var w = window.open(url,title,'scrollbars=no,menubar=no,height='+height+',width='+width+',resizable=yes,toolbar=no,location=no,status=no');
 NewGenericWindow(url,width,height,title,null);
}

function NewGenericWindow(url,width,height,title,options) {
 var defaultOptions = {
	scrollbars: "no",
	menubar: "no",
	height: 0,
	width: 0,
	resizable: "yes",
	toolbar: "no",
	location: "no",
	status: "no"
 };

 defaultOptions.width=width;
 defaultOptions.height=height;

 var windowOptions = '';

 if (options) {
	 for (var i in defaultOptions) {
		if (options[i]) defaultOptions[i] = options[i];
		windowOptions += i+'='+defaultOptions[i]+',';
	 }
 }

 var w = window.open(url,'',windowOptions);
}

function jumpto(x){
if (x != "") {
    window.open(x);
    return false;
    }
}

function cleartext(ele){
ele.value="";
ele.focus();
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

