PositionX = 100;
PositionY = 100;

defaultWidth  = 420;
defaultHeight = 320;

var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();
}}
function comboLinks1 (form,targ) 
{
	url=document.combo1.combo.options[document.combo1.combo.selectedIndex].value
	if (targ=="Self") location.href=url; else {parent.location.href=url;}
}
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}

var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo

if(ie)
{
	Ex = "event.x"
	Ey = "event.y"

	topColor = "#0076A6"
	subColor = "white"
}
if(ns)
{
	Ex = "e.pageX"
	Ey = "e.pageY"
	window.captureEvents(Event.MOUSEMOVE)
	window.onmousemove=overhere

	topColor = "#0076A6"
	subColor = "white"
}
function MoveToolTip(layerName, FromTop, FromLeft, e)
{
	if(ie){eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop))}
	if(ns){eval(doc + layerName + sty + ".top = "  +  eval(FromTop))}
	eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
}
function ReplaceContent(layerName)
{
	if(ie){document.all[layerName].innerHTML = ContentInfo}
	if(ns){with(document.layers[layerName].document){open();write(ContentInfo);close();}}
}
function getXY(id)
{
	var x = event.x;
	var y = event.y;

	if (id = 1)
	{
		overhere(x, y, 1);
	}
	if (id = 0)
	{
		overhere(0, 0, 0);
	}
}
function overhere(x, y, view)
{
	if (view = 1) {eval(doc + "ToolTip" + sty + ".visibility = 'visible'");}
	if (view = 0) {eval(doc + "ToolTip" + sty + ".visibility = 'hidden'");}
	eval(doc + "ToolTip" + sty + ".left = " + x);
	eval(doc + "ToolTip" + sty + ".top = " + y);
}
function closeIt()
{
	document.getElementById('ToolTip').style.visibility = 'hidden';
}
function EnterContent(layerName, TTitle, TContent)
{
	ContentInfo = '<table border="0" width="150" cellspacing="0" cellpadding="0">'+
	'<tr><td width="100%" bgcolor="#000000">'+
	'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
	'<tr><td width="100%" bgcolor='+topColor+'>'+
	'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
	'<tr><td width="100%">'+
	'<font class="tooltiptitle">&nbsp;'+TTitle+'</font>'+
	'</td></tr></table></td></tr>'+
	'<tr><td width="100%" bgcolor='+subColor+'>'+
	'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+
	'<tr><td width="100%">'+
	'<font class="tooltipcontent">'+TContent+'</font>'+
	'</td></tr></table></td></tr></table></td></tr></table>';
	ReplaceContent(layerName)
}
function total()
{
	var iX, iTotal;
	iTotal = 0;
	iTotal = JP[10] + JP[6] + JP[1] + JP[5] + JP[3] + JP[2] + JP[8] + JP[4] + JP[12] + JP[13] + JP[14] + JP[7] + JP[9] + JP[11] + JP[15];
	iTotal = iTotal/100;

	var objstr = "document.forms['aspnetForm'].elements['pc_total']";
    var obj = eval(objstr);
		
		if (obj) 
		{
        	obj.value = num2dollar(iTotal);   
		}
	
	window.setTimeout("total()",1000);
	return iTotal;	
}
function validate()
{
	if (document.frm.user.value == '' || document.frm.user.value == 'Forum Username')
	{
		alert('Please Enter in a Valid Username!');
		document.frm.user.focus();
		return false;
	}
	if (document.frm.pass.value == '' || document.frm.pass.value == '**************')
	{
		alert('Please Enter in a Valid Password');
		document.frm.pass.focus();
		return false;
	}
	else
	{
		return true;
	}
}
function MM_preloadImages() 
{
	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];
		}
	}
}
