//*----------------------------------------------------------------------------*/
//*     (c)Copyright 2010 Gifts And Things, All Rights Reserved                */
//*                                                                            */
//*     This document contains proprietary and confidential information. The   */
//*     contents of this document may not be disclosed to third parties,       */
//*     copied, or duplicated in any form, in whole or in part, without the    */
//*     prior written permission of 1st4Eve-Online.                            */
//*                                                                            */
//*     This software is protected by the copyright laws and international     */
//*     copyright treaties, as well as other intellectual property laws and    */
//*     treaties.                                                              */
//*----------------------------------------------------------------------------*/

aspfilename='';
imageleftoffset=0;
imagename='';
screenname='';
screentext='';

//*---------------------------------------------------------------------------*/
//* Enlarge Functions                                                         */
//*---------------------------------------------------------------------------*/
function enlrge(scnname,imgnme,imgwidth,imgheight)
{
//* imagewidth = imgwidth; */
//* imageheight = imgheight; */
imagewidth = 1;
imageheight = 1;
imagename = imgnme;
screenname = scnname;

OpenWin = this.open("","CtrlWindow",'toolbar=No,menubar=No,location=No,scrollbars=Yes,resizable=No,status=No,width='+imagewidth+',height='+imageheight+',left='+imageleftoffset+',top=0,');
setTimeout('update()',100);
}

function update()
{
doc = OpenWin.document;
doc.write('<HTML>');
doc.write('<HEAD>');
doc.write('<TITLE>'+screenname+'<\/TITLE>');

doc.write('<SCRIPT LANGUAGE="JavaScript">');
doc.write('top.window.moveTo(0,0);');
doc.write('if (document.all)');
doc.write('{');
doc.write('    top.window.resizeTo(screen.availWidth,screen.availHeight);');
doc.write('}');
doc.write('else if (document.layers||document.getElementById)');
doc.write('{');
doc.write('    if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)');
doc.write('    {');
doc.write('        top.window.outerHeight = screen.availHeight;');
doc.write('        top.window.outerWidth = screen.availWidth;');
doc.write('    }');
doc.write('}');
doc.write('</SCRIPT>');

doc.write('<\/HEAD>');

doc.write('<BODY bgcolor="white" onBlur="self.focus()">');
doc.write('<CENTER>');
doc.write('<FORM>');
doc.write('<INPUT TYPE="button" VALUE="Close Window" ONCLICK="window.close()">');
doc.write('<\/form>');
doc.write('<IMG SRC="'+imagename+'">');
doc.write('<\/CENTER>');

doc.write('<\/BODY>');
doc.write('<\/HTML>');
doc.close();
}

//*---------------------------------------------------------------------------*/
//* Text Window Popup Functions                                               */
//*---------------------------------------------------------------------------*/
function txtpopup(scnname,scrntxt,winleft,wintop,winwidth,winheight)
{
windowwidth = winwidth;
windowheight = winheight;
windowleft = winleft;
windowtop = wintop;
screenname = scnname;
screentext = scrntxt;

OpenWin = this.open("","CtrlWindow",'toolbar=No,menubar=No,location=No,scrollbars=No,resizable=No,status=No,width='+windowwidth+',height='+windowheight+',left='+windowleft+',top='+windowtop+',');
setTimeout('txtpopupupdate()',100);

}

function txtpopupupdate()
{
doc = OpenWin.document;
doc.write('<HTML>');
doc.write('<HEAD>');
doc.write('<TITLE>'+screenname+'<\/TITLE>');
doc.write('<LINK REL="stylesheet" TYPE="text\/css" HREF="..\/style\/stylesheet.css">');
doc.write('<\/HEAD>');

doc.write('<BODY bgcolor="black" onBlur="self.focus()">');
doc.write('<CENTER>');
doc.write('<FORM>');
doc.write('<INPUT TYPE="button" VALUE="Close Window" ONCLICK="window.close()">');
doc.write('<\/form>');
doc.write('<\/CENTER>');
doc.write('<LEFT>');
doc.write('<FONT CLASS="textsize11">'+screentext+'<\/FONT>');
doc.write('<\/LEFT>');

doc.write('<\/BODY>');
doc.write('<\/HTML>');
doc.close();
}

//*---------------------------------------------------------------------------*/
//* ASP Window Popup Functions                                                */
//*---------------------------------------------------------------------------*/
function asppopup(winleft,wintop,winwidth,winheight)
{
windowwidth = winwidth;
windowheight = winheight;
windowleft = winleft;
windowtop = wintop;

window.open("popup.aspx","CtrlWindow",'toolbar=No,menubar=No,location=No,scrollbars=No,resizable=No,status=No,width='+windowwidth+',height='+windowheight+',left='+windowleft+',top='+windowtop+',');
}



