
function ForgotPassword() { 
	var popUpWin = window.open('forgotpassword.aspx','UDD','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=375,height=300,top=150,left=150');
	if (window.focus) { 
		popUpWin.focus();	
	}
}

function MM_findObj(n, d) { //v3.0 
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x; 
} 
/* functions that swaps images. */ 
function mm_swapimage() { //v3.0 
var i,j=0,x,a=mm_swapimage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 
} 
function MM_swapImgRestore() { //v3.0 
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 
} 

/* functions that handle preload. */ 
function MM_preloadImages() { //v3.0 
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
} 


//pop-up windows
function showMe(theURL,winName,theWid,theHgt) {
	newWindow = open(theURL,winName,"toolbar=no,location=0,directories=no,status=yes,menubar=1,scrollbars=no,resizable=1,copyhistory=0,width=" + theWid + ",height=" + theHgt);
}

function popUpTitanDisplay(url) {
	var popUpWinTD = window.open(url,'UDETD','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=700,height=530');
	if (popUpWinTD != null)
	{ 
		popUpWinTD.focus();
	}
}

function popUpVideoViewer(url) {
	var popUpWinVV = window.open(url,'UDEVV','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=400,height=300');
	if (popUpWinVV != null)
	{ 
		popUpWinVV.focus();
	}
}

function popUpAssetViewer(url) {
	var popUpWinAV = window.open(url,'UDEAV','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=800,height=676');
	if (popUpWinAV != null)
	{ 
		popUpWinAV.focus();
	}
}

function popUpAdventureGameMessage(url) {
	var popUpWinAV = window.open(url,'UDEAGM','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=300,height=188');
	if (popUpWinAV != null)
	{ 
		popUpWinAV.focus();
	}
}

function popUpTitanTCGCard(url) {
	var popUpWinAV = window.open(url,"UDETCG","height=472,width=600,location=no,status=no,toolbar=no,resizable=no,scrollbars=,nomenubar=no");
	if (popUpWinAV != null)
	{ 
		popUpWinAV.focus();
	}
}

function ForceNumbersOnly(myfield, e, dec)
{
    var key;
    var keychar;

    if (window.event)
    {
        key = window.event.keyCode;
    }
    else if (e)
    {
        key = e.which;
    }
    else
    {
        return true;
    }
    if(key != 46 && key != 45 && key > 31 && (key < 48 || key > 57))
    {
        return false;
    }
    else
    {
        return true;
    }
}

function RemoveNonNumeric(myfield)
{
    var re = /[^0-9\.\-]/g;
    if(re.test(myfield.value))
    {
        myfield.value = myfield.value.replace(re, '');
        myfield.value = myfield.value.replace(/\./, '');
    }
}

//-->