function getImageWidth(imgID) {
return eval(imgID).width;
}

function getImageHeight(imgID) {
return eval(imgID).height;
}

var banimg; //Placeholder for the bannerpicker so we can switch from the image selected to the bgcolor.


upArrow = 38; dnArrow = 40;  // names for important keys
pgUp = 33; pgDown = 34;  // names for important keys

function resize(val,orient) {
	thiskey = window.event.keyCode;
	
	if (thiskey == upArrow) {
		if(val==""|"NaN"){val="0"};
	val=parseInt(val)+1;}
	if (thiskey == dnArrow) {
		if(val==""|"NaN"){val="0"};
	val=parseInt(val)-1;}
	if (thiskey == pgUp) {
		if(val==""|"NaN"){val="0"};
	val=parseInt(val)+10;}
	if (thiskey == pgDown) {
		if(val==""|"NaN"){val="0"};
	val=parseInt(val)-10;}
	if(orient==1){
	document.getElementById('header').style.width=val;
	}
	if(orient==2){
	document.getElementById('header').style.height=val;
	}
return val;
}