/**********************************************************************************/
function OpenWin(url,winName,w,h,other)
	{
	var acc = "width=" + w + ",height=" + h + "," + other;
	window.open(url,winName,acc);
	}

/**********************************************************************************/
function CloseWindowRefreshParent()
	{
	window.opener.location.reload(true);
	window.close();
	}

/**********************************************************************************/
function PopulateDropDown(objForm,selectedValue) {
	var selectedArray = eval("ary" + selectedValue);
	// clear all options in target drop down
	while (selectedArray.length < objForm.ModelID.options.length) {
		objForm.ModelID.options[(objForm.ModelID.options.length - 1)] = null;
	}
						
	// add new options to drop down from array
	for (var i=0; i < selectedArray.length; i++) {
		eval("objForm.ModelID.options[i]=" + "new Option" + selectedArray[i]);
	}

	//some clean up for old netscape versions
	if (objForm.MakeID.options[0].value == '') {
		objForm.MakeID.options[0]= null;
		if ( navigator.appName == 'Netscape') {
			if (parseInt(navigator.appVersion) < 4) {
				window.history.go(0);
			}
			else {   	
				if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
				window.history.go(0);
	            }
	        }
	     }
	 }
}
	 
/**********************************************************************************/
function arrangeWindows(){
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	
	if(parent.opener){
		//Move the parent window top the top left
		parent.opener.moveTo(0,0);
		//Resize the parent
		parent.opener.resizeTo(screenWidth/3*2,screenHeight-30);
		
		//get the location of the top right point of the parent
		var parentWidth = (screenWidth/3*2);
		
		//Resize the child
		parent.resizeTo(screenWidth-parentWidth,screenHeight-30)
		
		//Move the child to the top right corner of the parent
		parent.moveTo(parentWidth,0);
	}
}
/**********************************************************************************/
function reLoadTall(){
		parent.location='tall.asp?p=0';
}
/**********************************************************************************/
function obj(id,d)
{
	if (!d){d=document;}
	var o=d.getElementById(id);
	return o; 
}
