Cost of Illegals
So, today there is a story about the cost of illegal aliens in Gwinnet County Georgia. In this report by the Gwinnett Daily Post says that a Gwinnett County grand jury complained it could not figure out how much illegals are costing the county.
Now I ain't no rocket psychologist but as a Gwinettian I can tell you it is damned expensive. I have 3 kids in public schools. In the lower grades it is not uncommon to overhear elementary school children (kindergarten - 5th grade) translating a teacher's comment into latino.
I know this is not a scientific study, but look at this: http://www.scangwinnett.com/mugshots/. Look at the sheer volume of hispanics. You cannoty tell me
that illegal immigration is not damned expensive.
We are 1,170 miles from Laredo Texas on the Mexican border (according to google) and yet we have a huge population of illegal immigrants. They often do not speak our language and do not want to integrate into the community. We are providing their health care and education yet many are here illegally. It is simply wrong.
Illegal Immigration affects Jobs
According to the Center for Immigration Studies, "Of the 4.1 million new immigrant workers, between 1.4 and 2.7 million are estimated to be illegal immigrants. This means that illegal immigrants accounted for up to 56 percent of the net increase in civilian employment in the United States over the past five years" (full story).
Do you know who this really impacts? Unskilled labor. Your sons and daughters who might want a job while they attend school.
Cross-Browser View/Hide
I just gotta say that this pissed me off to no end. I had code that worked well with IE, Opera and Firefox but Safari just wouldn't work. Most of my work is for Intranets so I could code to IE but once I had to do some public stuff the "squeeze hit the fan" - so to speak.
It turns out that the only way I could get it to work is with a style called hidden. It has one entry: display:none.
I had to change the className of the object to hidden and then change it back later on. I also created an entry called shown that also had one entry: display:block that I could use to show an element.
Now, in order to change it back I needed to know what it's className was. So here is how I solved for "X"....
I created 2 javascript arrays and a counter to keep track of how many I added:
var aclasslist = new Array();
var aidlist = new Array();
var acount=0;
I also created a function called cbtoggle() that accepts on parameter - the objectid. It looks for the element in the arrays
and if it does not find it it adds it and it's className to the arrays. If the className is either hidden or blank it adds the value shown.
This also uses a function called findObj a buddy sent me. It seems to return stuff better that getElementById
Now if you are like me you quit reading and just want the damned code. Here it is:
<style>
.hidden { display:none }
.shown { display:block }
</style>
<a href="javascript:cbtoggle('someelementid')">view/hide element</a>
<div id='someelementid'>some html text and stuff </div>
<script language=javascript>
function findObj(theObj, theDoc) {
var p, i, foundObj;
if(!theDoc) theDoc = document;
if( (p = theObj.indexOf("?")) > 0 && parent.frames.length) {
theDoc = parent.frames[theObj.substring(p+1)].document;
theObj = theObj.substring(0,p);
}
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all [theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
if( ! foundObj ) return false;
return foundObj;
}
var aclasslist = new Array();
var aidlist = new Array();
var acount=0;
function cbtoggle( oid )
{
if( ! findObj(oid ) ) return;
var o = findObj(oid);
if( acount==0 )
{
cbaddid( oid );
}
else
{
if( cbindex(oid)==-1 )
{
cbaddid(oid);
}
}
if( o.className=='hidden' )
{
o.className=cbgetclass( oid );
}
else
o.className='hidden';
}
function cbaddid( oid )
{
aidlist[acount]=oid;
if( findObj(oid).className != '' && findObj(oid).className !='hidden' )
aclasslist[acount]=findObj(oid).className;
else
aclasslist[acount]='shown';
acount++;
}
function cbindex( oid )
{
for( i=0; i < acount; i++ )
{
if( aidlist[i]==oid )
return i;
}
return -1;
}
function cbgetclass( oid )
{
var i=cbindex(oid )
if( i > -1 )
{
return aclasslist[i];
}
return '';
}
</script>
|