var crtl="ctl00_content_";


function popWin(thePage, theWidth, theHeight, doCenter, fromTop, fromLeft){
			if(doCenter == true){
				var theTop = screen.height / 2 - (theHeight / 2) ;
				var theLeft = screen.width / 2 - (theWidth / 2);
			}else{
				var theTop = fromTop;	
				var theLeft = fromLeft;
			}
					
			//  window options zero[0] = off, one[1] = on
			status_ = "status=0,";
			resize_ = "resizable=0,";
			menu_ = "menubar=0,";
			scroll_ = "scrollbars=0,";
			local_ = "location=0,";
			tool_ = "toolbar=0,";
					
			//  the height and width of the window to be poped up
			width_ = "width=" + theWidth + ",";
			height_ = "height=" + theHeight + ",";
					
			//  how far from the left and top to place new window
			left_ = "left=" + theLeft + ",";
			top_ = "top=" + theTop;
					
			window.open(thePage, '',status_ + resize_ + menu_ + scroll_ + local_ + tool_ + width_ + height_ + left_ + top_);
		}
		

		function CheckImageExtention(e){
            var ext=e.value.substring(e.value.length-3);
            if(ext=="jpg" || ext=="bmp" || ext=="png" || ext=="gif")
                return true;
            else{
               alert("Select File with ext. 'bmp','jpg',gif',png'");
               e.focus();
               return false;
            }
        }
