var scr_width = $(window).width();
var scr_height = $(window).height();
var locString = new String(location);
var myRegExp = /\?/;
var answerIdx = locString.search(myRegExp);
if(answerIdx == -1){
     document.location.href=location+"?screen_width="+scr_width+"&screen_height="+scr_height;
   }else{
     document.location.href=location+"&screen_width="+scr_width+"&screen_height="+scr_height;
   }
//alert(w);

/*
<script>
document.write('<iframe width="'+((window.innerWidth?window.innerWidth:document.body.clientWidth) -0) +'" height="'+((window.innerHeight?window.innerHeight:document.body.clientHeight) - 69) +'" src="report.cfm" name="content"></iframe>');
</script>

The following should give you the current height/width of the iframe
with id "Iframemain":

<script language="javascript">
function sn()
{
alert('height is now '+document.getElementById("Iframemain").height)
alert('height is now '+document.getElementById("Iframemain").width)
}
</script>
<input type="button" onClick="sn()" value="Show height/width">

*/
