function openLOWindow(URLtoOpen) 
{
 var pos=URLtoOpen.lastIndexOf("/");
 if (pos>=0) 
 {
  var newstr = URLtoOpen.substring(0,pos)
  URLtoOpena = newstr + "/launch.html";
  var pos1=URLtoOpen.lastIndexOf("template_lo18.swf");
  if (pos1>=0) 
  {
   URLtoOpena = newstr + "/template_lo18.swf";
   //alert(URLtoOpen);
  }
  var pos2=URLtoOpen.lastIndexOf("template_lo26.swf");
  if (pos2>=0) 
  {
   URLtoOpena = newstr + "/template_lo26.swf";
   //alert(URLtoOpen);
  }
  URLtoOpen = URLtoOpena;
 }
 if (screen.height <= 480 && screen.width <= 800 )
 {
   newWindow = window.open(URLtoOpen,'LOWin','height='+(screen.availHeight-20) +',width=700,left=0,top=0,toolbar=no,scrollbars=no');
 }
 else
 {
   newWindow = window.open(URLtoOpen,'LOWin','height=500,width=760,left=50,top=50,toolbar=no,scrollbars=no');
 }
 
}
 
// LOcode
//alert("Loaded");
function OpenLO(path) 
{
 //alert("Function");
            if (screen.height <= 480 && screen.width <= 800 )
            {
                        open(path,"WindowReview",'width=700,height='+(screen.availHeight-20) +',left=0,top=0,resize,toolbar=no,scrollbars=no,status=no,menubar=no');
            }
            else
            {
                        open(path,"WindowReview",'width=760,height=500,left=50,top=50,resize,toolbar=no,scrollbars=no,status=no,menubar=no');
            }
}
 

// SIMcode
 
function OpenSIM(path) 
{
            if (screen.height <= 480 && screen.width <= 800 )
            {
                        open(path,"WindowReview",'width=770,height='+(screen.availHeight-20) +',left=0,top=0,resize,toolbar=no,scrollbars=no,status=no,menubar=no');
            }
            else
            {
                        open(path,"WindowReview",'width=770,height=515,left=50,top=50,resize,toolbar=no,scrollbars=no,status=no,menubar=no');
            }
}
