















































































   s = window.location.pathname;
   s.toLowerCase();
   if ( s.indexOf('.htm') > 0 ) window.location = '/';
   


function IsLocalFile(t) {

    e = t.toLowerCase();

    if(( e.indexOf('file://') > -1) || ( e.indexOf('src="c') > -1)) {
       alert(MsgLocalFile);
    }
}


function SetBG(t) { 
  t.style.background="yellow"; 
}

function ClrBG(t) { 
  t.style.background="transparent"; 
}


var f;

function ShowProfileLink(s) {

        if ( f ) {
          if ( f.closed == false )  { f.close(); }
        }

        f = window.open("about:blank","xxx","left=0,top=0,height=200,width=300");
       	f.document.writeln('<p>'+MsgPlsCopy+'</p>');
       	f.document.writeln('<a href="http://www.azn-love.com/profile.php?'+s+'">http://www.azn-love.com/profile.php?'+s+'</a>');
        f.document.close();
}

function URIencode(s) {
if (encodeURIComponent) {
    return encodeURIComponent(s);
} else {
    return encodeURI(s);
}
}

function ShowProfileLink2(s,sn) {

        if ( f ) {
          if ( f.closed == false )  { f.close(); }
        }

        f = window.open("about:blank","xxx","left=0,top=0,height=300,width=350");
       	f.document.writeln('<p>'+MsgPlsCopy+'</p>');
       	f.document.writeln('<a target=_blank href="http://www.azn-love.com/~'+s+'">http://www.azn-love.com/~'+s+'</a>');
        if ( isNaN( sn ) ) {
          	s = encodeURI(sn);
        	f.document.writeln('<p>'+MsgAltLink+'</p>');
         	f.document.writeln('<a target=_blank href="http://www.azn-love.com/~'+s+'">http://www.azn-love.com/~'+s+'</a>');
        }
        f.document.close();
}

   function ShowBannerCode(domain,lnk,img) {

        if ( f ) {
          if ( f.closed == false )  { f.close(); }
        }

        f = window.open("about:blank","xxx","left=100,top=100,height=200,width=600");
	f.document.writeln('<p>'+MsgPlsCopy+'</p>');
	f.document.writeln('&lt;A HREF="http://'+domain+lnk+'"&gt;&lt;IMG BORDER="0" alt="'+domain+'" SRC="http://'+domain+img+'"&gt;&lt;/A&gt;');	
        f.document.close();
   }

function GetAge(bday) {

  var n = new Date();  
  yy = n.getFullYear();
  mm = n.getMonth()+1;
  dd = n.getDate();

  y = bday.substring(0,4);
  m = bday.substring(5,7);
  d = bday.substring(8,10);

  t = yy - y -1;

  if (( mm > m ) || ((mm == m) && (dd >= d))) {t = t +1;}



  if ((t>13) && (t<99)) {
    return t;
  } else {
    return '';
  }

}


function ShowOpera() {

  if ( window.opera ) {

   document.writeln('Visual Editing not available for Opera Browsers!');
  }
}

var f;

function ShowM(m) {


   if ( f ) {

     if ( f.closed == false )  { f.close(); }

   }
  
   f = window.open("about:blank","xxx","left=200,top=200,width=300,height=300,resizable");

   f.document.writeln('<html><head></head><body onload="gosize(document.images[0]);" style="margin:0px;padding:0px;overflow:visible;">');
   f.document.writeln('<SCRIPT LANGUAGE="JavaScript">');
   f.document.writeln('function gosize(i) {');
   f.document.writeln('window.resizeTo(i.clientWidth+screen.width-screen.availWidth,i.clientHeight+screen.height-screen.availHeight);');
   f.document.writeln('}');
   f.document.writeln('</SCRIPT>');
   f.document.writeln('<embed src="'+m+'" autoplay=true name="img" onload="gosize(this);">');
   f.document.writeln('</body></html>');

//   f.document.close();

} 
function ShowI(m) {


   if ( f ) {

     if ( f.closed == false )  { f.close(); }

   }
  
   f = window.open("about:blank","xxx","left=200,top=200,width=300,height=300,resizable");

   f.document.writeln('<html><head></head><body onload="gosize(document.images[0]);" style="margin:0px;padding:0px;overflow:visible;">');
   f.document.writeln('<SCRIPT LANGUAGE="JavaScript">');
   f.document.writeln('function gosize(i) {');
   f.document.writeln('window.resizeTo(i.clientWidth+screen.width-screen.availWidth,i.clientHeight+screen.height-screen.availHeight);');
   f.document.writeln('}');
   f.document.writeln('</SCRIPT>');
   f.document.writeln('<img src="'+m+'" name="img" onload="gosize(this);">');
   f.document.writeln('</body></html>');
//   f.document.close();

} 

    function LimitImgSize(i) {
      ms = 550;
      if ( i.width > ms ) { 
        i.height = ms / i.width * i.height;
        i.width = ms; 
      }
    }
