// General JS Functions 


function popitup(url,vheight,vwidth, vscrollbars) {

	vheight = vheight || '700';
	vwidth = vwidth || '800';
	vscrollbars = vscrollbars || '0';	
	
	newwindow=window.open(url,'DNA','height='+vheight+',width='+vwidth+',scrollbars='+vscrollbars);
	//newwindow=window.open(url,'DNA',height='450',width='400');
	if (window.focus) {newwindow.focus()}
	return false;
}

function showDiv (it, box) {
  var vis = (box.checked) ? "visible" : "hidden";
  document.getElementById(it).style.visibility = vis;
}

function confirmDelete(delUrl, msg) {
	if (confirm(msg)) {
		document.location = delUrl;
	}
}

function confirmCheckbox(id,msg) {	
	if (document.getElementById(id).checked!=true) {
		if (alert(msg)){
       		return true;
	    } else {
    	   return false;
	    }
	}
}


function selectAllText(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).select();
}