
var win=null;
function eLAPopup(mypage,myname,scroll,pos)
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=800;
		h=650;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=650;
	}
	var left=0;
	var top=0;

	if(pos=="random"){LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-w)):left;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-h)-75)):top;}
	if(pos=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:left;TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:top;}
	if(pos=="default"){LeftPosition=left;TopPosition=top}
	else if((pos!="center" && pos!="random" && pos!="default") || pos==null){LeftPosition=0;TopPosition=20}


	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}
}


function openelapopup(url) {
	var windowproperty = 'scrollbars,resizable,width=716,height=500';
	var elapopup = null;
	elapopup = window.open(url,'elapopup',windowproperty);
	elapopup.focus();
}


function setSize(width,height) {
	if (document.all) {
		window.resizeTo(width,height);
	}
	else if (document.layers || document.getElementsById) {
		window.outerWidth = width;
		window.outerHeight = height;
	}
}

function eLAStep1()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=900;
		h=650;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=650;
	}

	setSize(w,h);
}

function eLAStep2()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=900;
		h=750;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=700;
	}

	setSize(w,h);
}

function eLAStep3()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=900;
		h=750;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=700;
	}

	setSize(w,h);
}

function eLAStep4()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=900;
		h=750;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=700;
	}

	setSize(w,h);
}

function eLAShort()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=925;
		h=650;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=850;
		h=675;
	}

	setSize(w,h);
}

function eLASignup()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=440;
	} else if (screen.width > 1024) {
		w=900;
		h=650;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=640;
	}

	setSize(w,h);
}

function eLAabout()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=300;
	} else if (screen.width > 1024) {
		w=900;
		h=750;
	} else if (screen.width == 800) {
		w=760;
		h=545;
	} else {
		w=800;
		h=700;
	}

	setSize(w,h);
}

function eLAtellfriend()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=300;
	} else if (screen.width > 1024) {
		w=900;
		h=500;
	} else if (screen.width == 800) {
		w=760;
		h=470;
	} else {
		w=800;
		h=480;
	}

	setSize(w,h);
}

function eLAfeedback()
{

	if (screen.width < 800) {
	//w=screen.width;
	//h=screen.height;
		w=760;
		h=300;
	} else if (screen.width > 1024) {
		w=900;
		h=500;
	} else if (screen.width == 800) {
		w=760;
		h=470;
	} else {
		w=800;
		h=500;
	}

	setSize(w,h);
}

function verisign_popup(url) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=710,height=500');
	self.name = "mainWin";
}

function openhelp(url){
	storywin = window.open(url,'storywin','scrollbars=yes,width=400,height=150');
	storywin.focus();
}