Here is a neat little popup window script I like to use.

Code:
<script language="javascript" type="text/javascript">
<!--
var newwindow = '';

function popitup_deletecounty(url) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}
	else {
		newwindow=window.open(url,'deletecounty','height=200,width=250, left=230, top=348');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->
</script>
The html href looks like this

PHP Code:
<a href="/dataservices/geoeval_deletecounty.php?pjid=<?php echo $Request_ID;?>&id=<?php echo $Site_ID;?>&geid=<?php echo $GE_ID;?>"
onClick="return popitup_deletecounty('/dataservices/geoeval_deletecounty.php?pjid=<?php echo $Request_ID;?>&id=<?php echo $Site_ID;?>&geid=<?php echo $GE_ID;?>')" 
name="deletecounty" > delete </a>
Can someone help me use the name attribute of the href in the javascript function, ie.

function popitup_namevariable(url)?

I'd like to make the script generic so I can just use it as a source instead of the whole thing and so I can use it multiple times in the same page with different links.

I am new at this so if anyone can give me some pointers it would be much appreciated.

Can someone help me to use t