function SetPosition(height,width) {
var leftprop, topprop, screenX, screenY, cursorX, cursorY, padAmt

if(navigator.appName == "Microsoft Internet Explorer")
{
	screenY = document.body.offsetHeight
	screenX = window.screen.availWidth
}
else
{ // Navigator coordinates
		screenY = screen.height;
		screenX = screen.width;
}

	cursorX = event.screenX
	cursorY = event.screenY
	padAmtX = 10
	padAmtY = 10
	
	if((cursorY + height + padAmtY) > screenY)	
	// make sizes a negative number to move left/up
	{
		padAmtY = (-30) + (height*-1);	
		// if up or to left, make 30 as padding amount
	}
	if((cursorX + width + padAmtX) > screenX)
	{
		padAmtX = (-30) + (width*-1);	
		// if up or to left, make 30 as padding amount
	}

	if(navigator.appName == "Microsoft Internet Explorer")
	{
		leftprop = cursorX + padAmtX
		topprop = cursorY + padAmtY
	}
	else
	{ // adjust Netscape coordinates for scrolling
		leftprop = (cursorX - pageXOffset + padAmtX)
		topprop = (cursorY - pageYOffset + padAmtY)
	}
	return ",left="+leftprop+",top="+topprop
}



function ScrollIt(){
    window.scrollTo(document.Form1.PageX.value, document.Form1.PageY.value);
    }
function setcoords(){
    var myPageX;
    var myPageY;
    if (document.all){
        myPageX = document.body.scrollLeft;
        myPageY = document.body.scrollTop;
        }
    else{
        myPageX = window.pageXOffset;
        myPageY = window.pageYOffset;
        }
    document.Form1.PageX.value = myPageX;
    document.Form1.PageY.value = myPageY;
    }
    

function TellaFriendPopup(URL) { 
theUrl = window.document.location;


if(document.all) {
	TargetURL=URL + "?TargetURL=" + escape(theUrl)
}
if(document.layers) {
	TargetURL=URL + "?TargetURL=" + theUrl
}

ChildWindow = window.open(TargetURL,'TellaFriend','width=470,height=250,menubar=no,toolbar=no,directories=no,location=yes,scrollbars=yes,status=no,resizable=yes');ChildWindow.focus();
//ChildWindow = window.open('" & TargetURL & "','TellaFriend','width=410,height=300,menubar=no,toolbar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes');ChildWindow.focus();
//return void(0); 
}

function pop1(TargetURL){
popWindow=window.open(TargetURL,"pop1","width=555,height=520,menubar=no,toolbar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes");
}
function popMap(TargetURL){
popWindow=window.open(TargetURL,"pop1","width=555,height=520,menubar=yes,toolbar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes");
}
function PopupAvis(TargetURL){
popWindow=window.open(TargetURL,"Avis","width=600,height=450,menubar=no,toolbar=yes,directories=no,location=no,scrollbars=yes,status=yes,resizable=yes");
}