function setImageURL(iName, iUrl) {
	var img = null;
	if (document.images) {
		img = document.images[iName];
		if (img) img.src = iUrl;
	}
}
function PopUp(url,name) {
    var h = 650;
    var w = 825;
    var L = (screen.width - w) / 2;
    var T = (screen.height - h) / 2;
    var hw = window.open(url, name, 'width=' + w + ' , height=' + h + ' , left =' + L + ' , top=' + T + ' , resizable=yes, scrollbars=yes, menubar=yes ');
    	hw.focus();
}

function FullPopUp(url,name) {
    var h = 650;
    var w = 800;
    var L = (screen.width - w) / 2;
    var T = (screen.height - h) / 2;
    var hw = window.open(url, name, 'width=' + w + ' , height=' + h + ' , left =' + L + ' , top=' + T + ' , resizable=yes, scrollbars=yes, toolbar=yes, menubar=yes, status=yes, location=yes, directories=yes');
    	hw.focus();
}
function PopUpDownload(url,name) {
    var h = 650;
    var w = 800;
    var L = (screen.width - w) / 2;
    var T = (screen.height - h) / 2;
    var hw = window.open(url, name, 'width=' + w + ' , height=' + h + ' , left =' + L + ' , top=' + T + ' , resizable=yes, scrollbars=yes ');
    waitToClose();
}

function waitToClose(){
string="closeWindow();";
setTimeout(string,2000);
}
function closeWindow(){
window.close();
}

function PopUpSize(url,name,h,w) {

  var L = (screen.width - w) / 2;
  var T = (screen.height - h) / 2;
  var hw = window.open(url, name, 'width=' + w + ',height=' + h + ',left =' + L + ',top=' + T + 'resizable,scrollbars');
  hw.focus();
}

function toHitList() {
	//window.location = "/Romarin/search.do"
	window.location = "searchHit.jsp";
}

