// JavaScript Document
if (screen.width==1024||screen.height==768) //if 640x480
{
	function displayadd(val)
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="580px" class="cursor_pointer" ><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="580px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="150px" ><iframe src="displayadd.php?id='+val+'" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="500px" height="300px" bgcolor="#e3e3e3"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
function maginfo(val)
  { 
	// var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
   // document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="maginfo.php?id='+val+'" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       //strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	  // document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }


function showBox1()
  { 
	// var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
   // document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="homeread.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  function signup()
  { 
	// var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
   // document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="signup_offer.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
   function pubprepresentative()
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="pubprepresentative.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  
  function addagency()
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="adagency.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  function moreservice()
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="moreservice.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
 function magazineread()
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="magzineread.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";

	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  function showBox2()
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '400px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="380px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="380px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="150px"><iframe src="cartempty.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="300px" height="230px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  	function termspop()
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="termspop.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '<?php echo $static_Tenlegs_loc; ?>bg1.jpg';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }

}
else
{
function displayadd(val)
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="580px" class="cursor_pointer" ><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="580px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="150px" ><iframe src="displayadd.php?id='+val+'" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="500px" height="300px" bgcolor="#e3e3e3"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
function maginfo(val)
  { 
	 var strtemp = '<?php echo $static_Tenlegs_loc; ?>white.jpg';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="maginfo.php?id='+val+'" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }


function showBox1()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="homeread.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  function signup()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="signup_offer.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
   function pubprepresentative()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="pubprepresentative.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  
  function addagency()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="adagency.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  function moreservice()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="moreservice.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
 function magazineread()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '200px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="magzineread.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";

	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  function showBox2()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '400px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="380px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="380px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="150px"><iframe src="cartempty.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="300px" height="230px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }
  	function termspop()
  { 
	 var strtemp = '';
    //document.body.style.backgroundImage = "url(" + strtemp + ")";
	var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 1002;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '0';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=0)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 1002;
    div.id = 'box1';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '20px';
    div.style.left = '150px'; 
    div.style.height = '55px';
    div.style.width = '300px';
    div.style.padding = '50px 0px 0px 30px';
    document.body.appendChild(div); 
   
    var a = document.createElement('a');
    a.innerHTML = '<table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="top_left" width="32"></td><td class="top_center" >&nbsp;</td><td class="top_right" width="31"><table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="close.png"  align="top" class="cursor_hand" height="28"/></td></tr></table></td></tr></table><table border="0" cellpadding="0" cellspacing="0" align="center" width="680px" class="cursor_pointer"><tr><td class="center_left"></td><td bgcolor="#e3e3e3" align="center" height="250px"><iframe src="termspop.php" marginheight="0" marginwidth="0" style="overflow:auto" allowtransparency="true" frameborder="0" width="600px" height="430px"></iframe></td><td class="center_right" width="32px"></td></tr><tr><td class="bottom_left" width="18"></td><td class="bottom_center" >&nbsp;</td><td class="bottom_right" width="32"></td></tr></table>';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
       strtemp = '';
	   //document.body.style.backgroundImage = "url(" + strtemp + ")";
	  document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box1'));
	 document.getElementById('fade').className = 'black_overlay1';
    };
    var p = document.createElement('p');
    p.innerHTML = '';
   div.appendChild(a);
   div.appendChild(p);
    document.getElementById('fade').className = 'black_overlay';
   document.getElementById('fade').style.display='block'
  }

}
