function doWin(myTitle,myUrl){
// get screen available height
// THIS BIT DETECTS THE AVAILABLE SCREEN SPACE AND ORIGINATES FROM http://www.quirksmode.org/viewport/compatibility.html
var x,y,screenAvailableHeight,myHeight;

if (self.innerHeight) // all except Explorer
{
x = self.innerWidth;
y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
x = document.body.clientWidth;
y = document.body.clientHeight;
}
myHeight=y-100;
// NOW SEND THE MODAL WINDOW
myUrl=myUrl+'?TB_iframe=true&height='+myHeight+'&width=500';
return TB_show(myTitle,myUrl,false);
}
